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

Testforblock command with nbt tag doesnt work in an Execute command.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.8
    • None
    • Win 7 java jre 7 nvidea gforce 9600 gtm intel centrino dual 1.8 Ghz
    • Unconfirmed

      Running an testforblock in an execute command with nbt tags always causes error message.

      [19:35:20] Failed to execute 'testforblock ~ ~1 ~ minecraft:dropper 1 {Items:[0:{Slot:1b,id:minecraft:prismarine_crystals,Count:1b,Damage:0s},{Slot:3b,id:minecraft:blaze_rod,Count:1b,Damage:0s},{Slot:4b,id:minecraft:leather_chestplate,Count:1b,Damage:0s},{Slot:5b,id:minecraft:blaze_rod,Count:1b,Damage:0s},{Slot:7b,id:minecraft:prismarine_crystals,Count:1b,Damage:0s}]}' as entity.ItemFrame.name
      

      What I expected to happen was...:
      Describe what you thought should happen here

      I can run the testforblock just fine on it self it detects what i want but as soon as i put it in the execute command i get the above error.

      Aslong as i run the testforblock without nbt tags it works fine.
      I used it to test for a nearby chest it works just fine.

      To reproduce try this.
      first put this command into commandblock.

      execute @e[Type=Zombie] ~ ~ ~ testforblock ~ ~1 ~ minecraft:dropper 1 {Items:[0:{Slot:1b,id:minecraft:prismarine_crystals,Count:1b,Damage:0s},{Slot:3b,id:minecraft:blaze_rod,Count:1b,Damage:0s},{Slot:4b,id:minecraft:leather_chestplate,Count:1b,Damage:0s},{Slot:5b,id:minecraft:blaze_rod,Count:1b,Damage:0s},{Slot:7b,id:minecraft:prismarine_crystals,Count:1b,Damage:0s}]}
      

      In the above case i used to detect a zombie doesnt work.
      Does not work with players also.
      I hope it isnt just me or my comp why it doesnt work as it should.

      then run it, error message should pop up.

            Unassigned Unassigned
            Zassi12 Zassi12
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: