execute if entity @e[type=item,nbt={Item:{id:"minecraft:paper",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/name

execute if entity @e[type=item,nbt={Item:{id:"minecraft:red_dye",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/dye_1
execute if entity @e[type=item,nbt={Item:{id:"minecraft:orange_dye",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/dye_2
execute if entity @e[type=item,nbt={Item:{id:"minecraft:yellow_dye",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/dye_3
execute if entity @e[type=item,nbt={Item:{id:"minecraft:lime_dye",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/dye_4
execute if entity @e[type=item,nbt={Item:{id:"minecraft:green_dye",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/dye_5
execute if entity @e[type=item,nbt={Item:{id:"minecraft:blue_dye",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/dye_6
execute if entity @e[type=item,nbt={Item:{id:"minecraft:light_blue_dye",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/dye_7
execute if entity @e[type=item,nbt={Item:{id:"minecraft:purple_dye",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/dye_8
execute if entity @e[type=item,nbt={Item:{id:"minecraft:magenta_dye",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/dye_9
execute if entity @e[type=item,nbt={Item:{id:"minecraft:white_dye",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/dye_10
execute if entity @e[type=item,nbt={Item:{id:"minecraft:gray_dye",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/dye_11
execute if entity @e[type=item,nbt={Item:{id:"minecraft:black_dye",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/dye_12

execute if entity @e[type=item,nbt={Item:{id:"minecraft:ender_pearl",count:1}},distance=..0.5] run function vanilla_refresh:block/lodestone/set/teleport
