
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:5,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:22,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:10,Amplifier:0,Duration:101}],Potion:"minecraft:water"}

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]
tellraw @a[tag=KyuGive] ["",{"text":"You've received an additional drop!","color":"blue"}]
playsound block.enchantment_table.use block @a[tag=KyuGive] ~ ~ ~ 5 1.5 1

