There Isn't Really a Way to Add Custom Enchantments on Vanilla Bedrock Edition
...However, there are two ways that I have thought of:
- You can use the
/execute
command and check to see if someone is holding a certain item and give them a status effect until they aren't holding it anymore, as shown.
Example
execute as @a[s1000, hasitem={item=diamond_sword,location=slot.weapon.mainhand}] at @s run /effect @s 1 25 true
Or, you can also do this (and this is honestly the easiest way in my opinion):
- Use a Behavior Pack and make your custom enchantments from there (there are many types of Behavior packs that you could use; just choose one that suits you the most.).
Overall, even though there isn't a simple way to do this, there are many loopholes that you can use, and there are many options to choose from.
Sources