Detect item with tag when dropped
I gave myself an item: /give @p egg{Tags:["STVindicator"]}
then I used a repeating commandblock to detect if the item is dropped:
execute if entity @e[type=minecraft:item,tag=STVindicator,nbt=\{OnGround:1b}] run say hi
("say hi" is just a test command)
also I tried:
execute if entity @e[type=minecraft:item,nbt=\{OnGround:1b}] run say hi
for this it worked.
thanks for help
2019-03-07, 01:01 PM
2019-03-07, 07:59 PM
2019-03-07, 07:59 PM
0
0
-