Can a player give an enchanted item on Xbox One? [duplicate]
I found all info for this question here: How do I give players already enchanted Tools/Armour/Weapons
I get an error when typing The following:
/give @p diamond_sword 1 0 {ench:[{id:17,lvl:2},{id:19,lvl:30}]}The error:
x Line 1, Column 2: Missing '}' or object member name
Can the "component:json" field be used on Xbox One or PC only?
02 Answers
The Give and Enchant command are not available on Xbox One.
I believe this is the case for all commands - the console editions do not support commands just yet.
EDIT: It appears that you are right that the problem with this command is that the console editions (or "Bedrock Edition") do not support that particular command (emphasis mine):
3components: json (optional)[Bedrock Edition only]
Like DataTags but only supportsCanPlaceOnandCanDestroyfunctions (for example,/give @p iron_shovel 1 0 {"minecraft:can_destroy":{"blocks":["grass"]}})
For Id:19, lvl 999 is too high for an xbox.
I tried on my xbox one (update aquatic) to get sharpness 999 but said it must be a max of 5; 999 is not a valid lvl. It might work if you change it to a lower lvl.