I've been attempting to use the /give command in Minecraft: Pocket Edition (which uses the Bedrock engine). I am on the most recent version: 1.2.10 (I think the most recent is 1.2.10, not sure, but I know I am fully updated)

I am attempting to /give myself a diamond sword with Sharpness 10. I have read that this is possible with commands. Here is the command I am using:

/give @p diamond_sword 1 0 {ench:{id:16,lvl:10}}

The following error is returned:

*Line 1, Column 2 Missing '}' or object member name

Could anyone help me figure out what's wrong. And, if possible, could anyone give me the proper command that would work?

REMEMBER: I am running Minecraft: PE which uses different command syntax than Java (computer) or the consoles. I am running version 1.2.10

marked as duplicate by Virusbomb, Schism, dly, Unionhawk, kalina Mar 1 '18 at 21:21

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • you're definitely not using 1.12, as that is the Java version. Bedrock is currently on 1.2.10 – Plagiatus Feb 28 '18 at 15:55
  • @Plagiatus that is correct, my bad – Isaac Yang Feb 28 '18 at 16:05

The syntax you're using there are in fact Java commands.

The only thing you can add to a items in bedrock without external tools (as of 1.2.10) are can_place_on and can_destroy.

  • Is there any other way to enchant something like that? I know that I could use /enchant but that only allows for enchanting up to the normal in-game levels. – Isaac Yang Feb 28 '18 at 18:00
  • Like i hinted at in my answer, you can use external data editor tools such as mctoolchest to edit an existing item to have that desired enchantment. – Plagiatus Feb 28 '18 at 21:07

Not the answer you're looking for? Browse other questions tagged or ask your own question.