#Custom Enchantment
1 messages · Page 1 of 1 (latest)
1.21+? misode has a good resource for generating the definitions https://misode.github.io/enchantment/
if you need a custom effect you'll have to extend EnchantmentEntityEffect and register it:
for 1.20.1 just follow this guide (the before 1.21 section)
you need to make an enchantment class and then regester it
I am kinda a noob aswell, but I have been making a mod that adds a variety of enchants to 1.20.1. I cant guarantee that this code is the most well written, but it works.
https://github.com/XeO3-git/Expanded-Enchantments/tree/main
this is a mod for minecraft java edition that adds many new enchantments - XeO3-git/Expanded-Enchantments
oooh! I didnt know about this! this looks useful
Thx will try
how would i use the enchantment to increase a value declared in the unique custom item class
not sure how to do the above and also make my enchantment unique to the custom item class
(BoomtubeItem and BlastEnchantment)
maybe use EnchantmentHelper.getLevel in a method thats called every tick and if the level > 0 do something
(in the custom item's class)
override the isAcceptableItem method
Does that work?
idk, I'm new myself, but I usually scoure youtube and minecraft code for it, try checking around items like the crossbow(multishot) or swords(fire aspect)
i dont think the enchantment scaling thing worked but the enchantment is appliable and exists