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

Command block display tag does not allow spaces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.12
    • Operating System: Windows 7 Professional
      Bug only occurs for me on 1.12. Other versions work fine.
      I was unable to find my Java version.
    • Unconfirmed
    • Creative

      I was trying to make a compass that will teleport the player when dropped. I have a repeating, testfor command block that tests for the dropped compass. Its command is: /testfor @e[type=Item] {Item:{id:minecraft:compass}}. It gives me the error: Data tag parsing failed: Expected '}' but got ':' at: {Item:{id:minecraft:<==[HERE]. Then i changed it to: /testfor @e[type=Item] {Item:{id:compass}}. After dropping a compass and checking the command block , I got an error that said item.item.compass dis not match the required data structure. This did not make sense because it should have detected the compass. Or is there some new way that the testfor is used? Now for the reason this post was made. The final block at the end of the chain is supposed to give the compass back to the player and I have: /give @p minecraft:compass 1 0 {display:{Name:Teleport Circle}}. Then I got the error: Data parsing failed: Expected '}' but got 'C' at: {display:{Name:Teleport C<==[HERE]. When I remove the space to make the command: /give @p minecraft:compass 1 0 {display:{Name:TeleportCircle}}. The give command works perfectly fine. This bug doesn't allow me to use spaces and it is aggravating. I'm so mad! I...I just need some space and time alone to cool off. (The image show the error with my command.)

            Unassigned Unassigned
            RealHerobrain David Moncir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: