-1

This question already has an answer here:

The new beta 1.0.5 has introduced /give command.
How do I add the enchant attribute?

marked as duplicate by Joachim, Gigazelle, Tim S., pinckerman, Schism Jul 11 at 5:30

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.

  • Just to clarify, are you asking how to to /give a weapon object that has an enchantment on it? – user973 Mar 17 '17 at 21:04
  • Yup in minecraft pocket edition – MasterXplayz Mar 19 '17 at 11:11
0

Components are in JSON format. However, some of the ones on PC don't exactly work as suspected.

Example of JSON format:

{"fieldname":"field content"}

or

{"field":123}
  • Does this make use of the give command? How? Can you illustrate that? – Timmy Jim Jun 13 '17 at 22:12
  • After a couple years, I have determined that my answer is, in fact, probably a bad answer. I was attempting to illustrate the format used in Pocket Edition commands (and also in Java commands). In short, this ain't it, chief, it does not help to answer the question. – Blake Leonard Jun 23 at 17:52
-1

Say you want a sword with max sharpness and unbreaking, this is the command:

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

If it doesn't work, then I don't know.

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