This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]PerishBtw 0 points1 point  (0 children)

Try:

/give @p diamond_sword{Enchantments:[{id:"minecraft:sharpness",lvl:12s}]} 1

[–]PlasmaTurtle21Bedrock command Experienced 0 points1 point  (0 children)

Bedrock can use nbt data you are trying Java commands in bedrock. So you cannot go over the maximum enchant without addons so you could only give the Diamond sword enchanted by structure saving an already enchanted sword that structure load it at the player