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

Damage tag not working in /testfor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 14w30b
    • Minecraft 14w21b, Minecraft 14w25b, Minecraft 14w26c
    • None
    • ASUS Computer, Windows 8.1, Java 7 Update 60
    • Community Consensus

      I was creating a map, when I encountered a problem in testing for dropped items with damage values. It looks like the Damage tag doesn't work in /testfor. I dropped a sand item, then used /testfor @e[type=Item] {Item:{id:minecraft:sand,Damage:0s,Count:1}}. Minecraft responded with, "item.tile.sand.default did not match the required data structure". I tried the same thing with red sand. I used, "/testfor @e[type=Item] {Item:{id:minecraft:sand,Damage:1s,Count:1}}" This time minecraft said, "item.tile.sand.red did not match the required data structure" I am pretty sure this is a bug. I tested everything multiple times.

            Unassigned Unassigned
            _Supercat8835_ Jira Acount
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: