Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-145443

Detect item with tag when dropped

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.13.2
    • None
    • Unconfirmed

      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

            Unassigned Unassigned
            Kyungi Kai Bogdanksi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: