File Details
ContentCreator-1.3.91.jar
- R
- Nov 15, 2024
- 286.54 KB
- 1.8K
- 1.12.2+1
- Forge
File Name
ContentCreator-1.3.91.jar
Supported Versions
- 1.12.2
- 1.12
Curse Maven Snippet
-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

