Mojira Archive
MC-145443

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

Invalid

Kai Bogdanksi

2019-03-07, 01:01 PM

2019-03-07, 07:59 PM

2019-03-07, 07:59 PM

0

0

Unconfirmed

Minecraft 1.13.2

-