ContentCreator-1.3.91.jar
Curse Maven Snippet
What's new
-Added support for the creation of custom enchantments, as well as defining the created enchants' rarity, function, compatibility, and more. Thank you to tttsaurus for the PR.
Examples and additional information below:
.
.
.
.
.
=================================================================
#loader preinit import contentcreator.enchantment.Enchantment; import contentcreator.enchantment.EnchantmentType; import contentcreator.enchantment.EquipmentSlot; import contentcreator.enchantment.Rarity;
var e1 as Enchantment = Enchantment.create("test1", Rarity.common, EnchantmentType.armor, [EquipmentSlot.chest]); e1.setCurse(true).register();
var e2 as Enchantment = Enchantment.create("test2", Rarity.common, EnchantmentType.armor, [EquipmentSlot.chest]); e2.setTreasure(true).register();
=================================================================
For additional information: https://github.com/fullskele/ContentCreator/blob/main/src/main/java/surreal/contentcreator/common/enchantment/EnchantmentBase.java
This mod has no additional files

