Give yourself a command block. Open it and type:give @p minecraft:diamond_sword 1 0 {ench:[{id:16,lvl:1000040},{id:19,lvl:3},{id:20,lvl:2},{id:21,lvl:1000},{id:34,lvl:100}]}. ~Acx07
P.S: to give yourself a command block, type: /give YourNameHere minecraft:command_block.
For best practice: the "lvl" tag has a tag-type of "short", which means its minimum and maximum values are -32768 and 32767. Going over those values will result in an overflow, giving you a value you aren't expecting (very well going into negatives, rendering the sharpness enchantment useless). 1000040 overflows to 17000.
As such, you should not input values that go over these limits. You can find all tag-types with their data limits here. You're also missing a curly bracket to start the first enchantment:
Give yourself a command block. Open it and type:give @p minecraft:diamond_sword 1 0 {ench:[{id:16,lvl:1000040},{id:19,lvl:3},{id:20,lvl:2},{id:21,lvl:1000},{id:34,lvl:100}]}. ~Acx07
P.S: to give yourself a command block, type: /give YourNameHere minecraft:command_block.
For best practice: the "lvl" tag has a tag-type of "short", which means its minimum and maximum values are -32768 and 32767. Going over those values will result in an overflow, giving you a value you aren't expecting (very well going into negatives, rendering the sharpness enchantment useless). 1000040 overflows to 17000.
As such, you should not input values that go over these limits. You can find all tag-types with their data limits here. You're also missing a curly bracket to start the first enchantment:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
It's actually /give @p minecraft:diamond_sword 1 0 {ench:[{id:16,lvl:1000040},{id:19,lvl:3},{id:20,lvl:2},{id:21,lvl:1000},{id:34,lvl:100}]}
OMG!!!!!!! IT WORKED!!!!! Thanks dude. The sword is awesome. When I figured out that it worked I totally freaked out. Thanks.
it can be at most level 32767
the attack damage will be +40965.75
Oh my gosh.
Does this enchant work on any minecraft version e.g 1.16.221? If so,this sword would be epic.
yes you can still get a sword like this, but the command is a little different:
summon minecraft:armor_stand ~ ~0.5 ~ {NoBasePlate:1b,ShowArms:1b,ArmorItems:[{id:leather_boots,Count:1b,tag:{Unbreakable:1b,display:{color:11546150}}},{id:leather_leggings,Count:1b,tag:{Unbreakable:1b,display:{color:11546150}}},{id:leather_chestplate,Count:1b,tag:{Unbreakable:1b,display:{color:11546150}}},{id:player_head,Count:1b,tag:{SkullOwner:"Rocker09871",display:{Name:'{"text":"ror","color":"yellow"}'}}}],HandItems:[{id:potion,Count:1b,tag:{Enchantments:[{id:fortune,lvl:32767}],Potion:"water",display:{Name:'[{"text":"Vegan ","color":"green","bold":true,"italic":false},{"text":"Water","color":"blue","bold":true,"italic":false}]'}}},{id:potion,Count:1b,tag:{Enchantments:[{id:fortune,lvl:32767}],Potion:"water",display:{Name:'[{"text":"Vegan ","color":"green","bold":true,"italic":false},{"text":"Water","color":"blue","bold":true,"italic":false}]'}}}],Pose:{RightArm:[-30f,-20f,20f],LeftArm:[-70f,30f],Head:[30f,0f]}}