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

Data Tag Parsing Failed: Expected Token

XMLWordPrintable

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

      So I've been trying to get this command to work for some time now, maybe someone can help me out. The point of the command is to set the scoreboard value of hasItem to one if a player right clicks a sign with an apple in their inventory. Here is the code:

      /give @p sign 1 0 {
          BlockEntityTag: {
              Text1: "{text:\"[Sell]\",clickEvent:{action:\"run_command\",value:\"/scoreboard players set @p hasItem 1 {Inventory:[{id:\\"minecraft:apple\\"}]}\"}}"
          },
          display: {Name: "Has Apple"}
      }
      

      I'm getting the following error:

      [01:09:15] Data tag parsing failed: Unexpected token 'm' at: minecraft:apple\\"}]}\"}}"

      Any ideas as to why?

            Unassigned Unassigned
            dcgruenig Daniel Gruenig
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: