Vanilla Custom Enchanting API icon

Vanilla Custom Enchanting API -----

API for creating vanilla-like Enchantments like Datapacks could do in 1.21.3



Add Enchantment Effects
Your now able to add some Enchantment-Effects that modify Attributes from the Player. Attributes apply depending on which slot-groups are present.

To apply a new Attribute-Enchanting Effect you can add following to the EnchantmentBuilder:

ENCHANTMENT_BUILDER.effect(new AttributeEnchantEffect(Attribute.GENERIC_MAX_HEALTH, new LevelBasedValue.Linear(1f,1f), AttributeEnchantEffect.Operation.ADD_VALUE))

The LevelBasedValue allows to modify the impact of the Enchanting-level and has some variations:
Clamped,
Fraction,
LevelsSquared,
Linear,
Lookup,
Constant
----------, Oct 23, 2024
Resource Information
Author:
----------
Total Downloads: 268
First Release: Oct 22, 2024
Last Update: Apr 27, 2025
Category: ---------------
All-Time Rating:
1 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings