Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

You cannot give a vanilla Minecraft Bedrock item a level-255 enchantment with a command. Bedrock’s /enchant command checks each enchantment’s normal maximum. For example, Sharpness accepts levels 1–5, Protection 1–4, and Unbreaking 1–3. Entering 255 is outside those supported ranges.

The Java Edition command often shared online does not work in Bedrock either. Java and Bedrock use different command and item-data systems.

Why the usual command does not work

This command is valid only for current Java Edition syntax, not vanilla Bedrock:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
/give @p minecraft:netherite_sword[enchantments={sharpness:255}]

Bedrock’s /give command does not support Java’s enchantments={...} item component for creating arbitrary enchantment levels. Bedrock documents /give in this general form:

/give <player> <item> [amount] [data] [components]

Its components can handle certain item properties, such as minecraft:can_destroy, but they do not provide a vanilla way to attach a level-255 Sharpness, Protection, or other standard enchantment.

What happens with /enchant on Bedrock?

The normal Bedrock command is:

/enchant <player> <enchantmentName> [level]

For example, this gives a nearby player the highest normal Sharpness level:

/enchant @p sharpness 5

This command does not bypass enchantment limits. The following is not a valid vanilla solution:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
/enchant @p sharpness 255

Depending on the Bedrock version and context, the command may report an invalid level, fail to execute, or refuse to apply the enchantment. It will not produce a genuine level-255 vanilla enchantment.

Highest normal Bedrock enchantment levels

Enchantment Maximum level Example
Sharpness 5 /enchant @p sharpness 5
Protection 4 /enchant @p protection 4
Efficiency 5 /enchant @p efficiency 5
Fortune 3 /enchant @p fortune 3
Looting 3 /enchant @p looting 3
Unbreaking 3 /enchant @p unbreaking 3

The command requires cheats in a single-player world or suitable permissions on a server. To enable cheats in an existing Bedrock world, open the pause menu, select Settings, open the Game section, and enable Activate Cheats. Enabling cheats disables achievements for that world.

Available ways to create a similar effect in Bedrock

1. Use the maximum normal enchantment

If you only need a powerful item and do not specifically need the number 255, use the normal maximum:

/give @p diamond_sword 1/enchant @p sharpness 5/enchant @p looting 3/enchant @p unbreaking 3

Apply the commands while the target player is holding the appropriate item. Bedrock will still enforce whether an enchantment is compatible with the held item.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

2. Install a Bedrock add-on

A behavior-pack or add-on can create custom weapons, custom damage behavior, effects, or other mechanics that imitate an overpowered enchantment. This is a modification of the game’s behavior, not a vanilla level-255 enchantment created by /give.

Use an add-on from a source you trust, check that it supports your Bedrock version, and make a backup before applying it to an important world. Add-ons may stop working after a game update.

3. Use an external world or inventory editor

Some external tools can modify Bedrock world or player data. Their support varies by platform, file format, and game version. They may also corrupt a world, remove achievements, or violate the rules of a server or Realm.

This is not a command-based solution, and it is particularly unsuitable for multiplayer unless the server owner explicitly permits it. Always make a copy of the world before editing its files.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do not use old Java commands from tutorials

Several commands still appear in search results but belong to older Java Edition versions or use Java-only syntax.

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

The older curly-brace NBT form is not the current format for modern Java item commands and is not a Bedrock command. The newer Java 1.21.5+ format is also not portable to Bedrock:

/give @p minecraft:diamond_sword[enchantments={sharpness:255}]

That command is useful when the instructions specifically say Java Edition 1.21.5 or newer. It does not work as a vanilla Bedrock equivalent.

Why level 255 is not available through normal gameplay

Enchanting tables, villagers, loot, and ordinary anvil use only produce supported enchantment levels. Level 255 is a command or data-manipulation value in Java, not a level obtainable through standard Minecraft gameplay.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Even where a high enchantment value can be stored, the gameplay effect is not guaranteed to increase forever. Individual enchantments can have separate limits or implementation behavior, so a stored value of 255 does not automatically mean 255 times the normal effect.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Quick troubleshooting

  1. Check the edition. The Java command with square-bracket enchantment components is not a Bedrock command.
  2. Check permissions. Cheats must be enabled in a single-player world, and servers require command permission.
  3. Check the item in your hand. /enchant applies to the selected item and refuses incompatible enchantments.
  4. Use the supported maximum. Replace 255 with the enchantment’s Bedrock maximum, such as 5 for Sharpness or 4 for Protection.
  5. Do not mix add-on instructions with vanilla commands. An add-on may add custom behavior, but that does not make Java item-component syntax valid in Bedrock.

FAQ

Can I use /enchant @p sharpness 255 in Minecraft Bedrock?

No. Bedrock’s vanilla /enchant command enforces the supported level range. Sharpness is limited to level 5, so level 255 will not be applied.

Does /give @p netherite_sword[enchantments={sharpness:255}] work on Bedrock?

No. That is Java Edition item-component syntax. Bedrock does not provide the same vanilla enchantments component for arbitrary enchantment levels.

What is the highest Sharpness level I can get with a Bedrock command?

Sharpness 5, using /enchant @p sharpness 5 while holding a compatible item.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Can a Bedrock add-on provide level-255 enchantments?

An add-on can create custom items or behavior that imitates an extremely powerful enchantment. That is different from creating a standard vanilla level-255 enchantment through /give or /enchant.

Do cheats need to be enabled?

Yes. Commands require cheats in a single-player Bedrock world, or the appropriate command permissions on a server. Enabling cheats disables achievements in that world.

The Bottom Line

There is no vanilla Bedrock command for a genuine level-255 enchantment. Use /enchant with the normal maximum, such as /enchant @p sharpness 5, or use a compatible add-on or external editor if you need a custom overpowered effect. Commands using Java’s [enchantments={...}] syntax should not be used as Bedrock instructions.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.