Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-97939

“Missing ‘}’ or object member name”

XMLWordPrintable

    • Creative
    • Unconfirmed
    • Nintendo Switch

      Ok. So I was on creative mode and I was trying to get the command block to give a player an enchanted netherite sword, and I got an error message saying “Missing ‘}’ or object member name”. This is the syntax I used:

      /give @p netherite_sword 1 1 {[ench:

      {id: 1, lvl: 1}

      ]}

      How to reproduce:

      1. Type this command into a command block:  /give @p netherite_sword 1 1 {[ench: {id: sharpness, lvl: 1}

        ]}

      1. Activate the command block. 

      Expected results: The command block should give the player a netherite sword enchanted with sharpness. 

      Observed results: It sends you an error messsage saying “Missing ‘}’ or object member name.”

            leo190 Leo28456
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: