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

Can't specify NBTData for /execute target entity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 14w07a
    • None
    • Windows 7 Home Premium x64, Java Version 7 Update 51 (build 1.7.0_51-b13)
    • Unconfirmed

      At the moment I'm building a minigame using the new snapshot. I realized, that you can't specify NBTData for the target-entity when using /execute.

      When I entered the Command "/execute @e[type=Item] {Item:{id:minecraft:grass}} say hi" ("say hi" is only for testing) I expected every Grassblock-Item on the map to say "hi". Instead I got the message "/execute <entity> <x> <y> <z> <command>".

      It works using the testfor-command "/testfor @e[type=Item] {Item:{id:minecraft:grass}}", but when using this you can't do things relative to the Item.

            Unassigned Unassigned
            Black500 Adrian Freund
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: