
loot spawn ~ ~ ~ loot minecraft:raredroptable/raredroptable
execute as @p[tag=KyuGive,tag=KyuLuck] run loot spawn ~ ~ ~ loot minecraft:raredroptable/raredroptable

tag @e[type=item,nbt={Item:{id:"minecraft:torch",Count:1b,tag:{display:{Lore:["\"strpud\""]}}}}] add Pud
execute at @e[tag=Pud] run execute at @p[tag=KyuGive] positioned ~ ~-1 ~ run summon area_effect_cloud ~ ~1 ~ {Particle:mobSpell,Radius:4f,Duration:200,Color:7672338,effects:[{id:"minecraft:strength",amplifier:2,duration:1200}],Potion:"minecraft:water"}

tag @e[type=item,nbt={Item:{id:"minecraft:sand",Count:1b,tag:{display:{Lore:["\"abspud\""]}}}}] add Pud2
execute at @e[tag=Pud2] run execute at @p[tag=KyuGive] positioned ~ ~-1 ~ run summon area_effect_cloud ~ ~1 ~ {Particle:mobSpell,Radius:4f,Duration:200,Color:16577536,effects:[{id:"minecraft:absorption",amplifier:2,duration:2400}],Potion:"minecraft:water"}

tag @e[type=item,nbt={Item:{id:"minecraft:glass",Count:1b,tag:{display:{Lore:["\"healpud\""]}}}}] add Pud3
execute at @e[tag=Pud3] run execute at @p[tag=KyuGive] positioned ~ ~-1 ~ run summon area_effect_cloud ~ ~1 ~ {Particle:mobSpell,Radius:4f,Duration:30,Color:16515316,effects:[{id:"minecraft:regeneration",amplifier:0,duration:101}],Potion:"minecraft:water"}



execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:glass",Count:1b,tag:{display:{Lore:["\"healpud\""]}}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Short Regen Puddle!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:torch",Count:1b,tag:{display:{Lore:["\"strpud\""]}}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Strength Puddle!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:sand",Count:1b,tag:{display:{Lore:["\"abspud\""]}}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Absorption Puddle!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:trident",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Trident!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:gold_ingot",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Gold Ingot!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:gold_ingot",Count:3b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: 3 Gold Ingots!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:gold_block",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Gold Block!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:iron_block",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Iron Block!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:diamond",Count:2b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: 2 Diamonds!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:diamond_block",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Diamond Block!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:netherite_scrap",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Netherite Scrap!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:netherite_ingot",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Netherite Ingot!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:netherite_block",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Netherite Block!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:golden_apple",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Golden Apple!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:enchanted_golden_apple",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Enchanted Golden Apple!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:tnt",Count:5b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: 5 TNT!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:saddle",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Saddle!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:brewing_stand",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Brewing Stand!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:totem_of_undying",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Totem of Undying!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:ghast_tear",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Ghast Tear!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:ender_pearl",Count:3b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: 3 Ender Pearls!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:elytra",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Elytra!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:golden_carrot",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Golden Carrot!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:golden_carrot",Count:5b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: 5 Golden Carrots!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:emerald",Count:2b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: 2 Emeralds!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:experience_bottle",Count:6b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: 6 Experience Bottles!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:experience_bottle",Count:64b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: 64 Experience Bottles!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{cadeyrnwrath:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Cadeyrn's Wrath!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{ankhshield:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Ankh Shield!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{forbiddenrod:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: THE FORBIDDEN ROD!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{fireresist10min:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Fire Resist Potion!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{paladinshield:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Paladin's Shield!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{attackdamageshield:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Damage Shield!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{heavyshield:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Heavy Shield!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{agileshield:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Agile Shield!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{reaperarrow:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Reaper's Arrow!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyumushyhouse:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Mushy!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyuoverload:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Overload Potion!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyuxptrinket:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: You know what I like a lot more than additional drops? ","color":"blue"},{"text":"Knowledge!","color":"blue","italic":true}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyudayextender:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Dawn's Daylight!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{getmeouttahere:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: GETMOUTOUTTAHEEEEEEEEEEERE!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyuenchantedshard:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Enchanted Shard!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyuslowfall:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Slowfall!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyugoggles:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Night Vision Goggles!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyunaturegift:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Nature's Gift!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyudubloon:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Lucky Dubloon!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyulavaboots:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Lava-Wandering Boots!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyuspices:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Sussy Spices!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyuvoidtrinket:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Eye of the Void!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{id:"minecraft:beetroot",Count:1b}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: I'm not even sorry. Deserved, tbh.","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyubread:2b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Bread!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyugem:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Soul Gem!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyuclock:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Oak's Clock!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyufalcon:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Some odd meat...","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyusheep:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: sheemps","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyuexcal:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Totes Excalibur!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyutalkingsword:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: what","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyutear:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Lunar Tear!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyustairs:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Stairs! Go take a walk, yeah?","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyurailgun:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: The Destroyer of all things...","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{kyubun:1b}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: Bun!","color":"blue"}]
execute if entity @e[type=item,distance=..10,nbt={Item:{tag:{Enchantments:[{id:"minecraft:lure"}]}}}] run tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop: A Spell Page!","color":"blue"}]
playsound block.enchantment_table.use block @a[tag=KyuGive] ~ ~ ~ 5 1.5 1

kill @e[type=item,distance=..10,tag=Pud]
kill @e[type=item,distance=..10,tag=Pud2]
kill @e[type=item,distance=..10,tag=Pud3]


tp @e[distance=..9,type=item] @p[limit=1,tag=KyuGive]

