mojira.dev
MCPE-36368

Cannot give custom enchants

Whenever i try to give myself a custom enchanted diamond sword or wooden one i simply get the issue Line 1 Column 2 Missing '}' or object member name

 

command is 

/give @p diamond_sword 1 0 {ench:[id:16,lvl1090}]}

Comments 1

I'm sorry but this is not a bug. Bedrock edition currently doesn't support changing NBT tags.

The fifth parameter for the /give command is not NBT, it's JSON. As such, property names must be quoted (that's why you get "Missing '}' or object member name"). And the only supported components are "minecraft:can_destroy" and "minecraft:can_place_on" (so no lvl1090 enchantments without using third party tools).

Correct usage:

/give @s diamond_pickaxe 1 0 {"minecraft:can_destroy":{"blocks":["cobblestone"]}}

Carlos Gonzalez

(Unassigned)

Unconfirmed

Xbox

1.5.2.1

Retrieved