90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!
Changelog
Major update to make the library compatible with 1.21.5
Additions
- New item data components:
combat-plus:melee_weapon
- Holds two floats, weapon damage and offhand damage.
- All Melee and Dual weapons are expected to use this data component.
- Combat+ mods can use this component to acquire damage values for callbacks (interface values from MeleeWeapon should always be preferred).
combat-plus:cooldown_group
- Takes an identifier and sets what group the item should use when on cooldown.
combat-plus:max_use_time
- Determines how many ticks an item can be used for.
- This component was moved from Dual Swords.
- New enchantment component type: data component enchantment effects!
- Enchantments can grant temporary data components to items.
- The component is added when the item is enchanted and lost when the enchantment is removed.
- Currently supports:
- Cooldown Group
- Max Use Time
- Blocks Attacks
- New attribute: Protection Effectiveness
- Treated as a multiplier, this determines how effective protection enchantments are on the entity.
- Default value of 1 (normal effectiveness).
Changes
- Callbacks for blocking attacks now accept a damage source instead of the attacking entity.
Bugfixes
- Tridents are no longer unbreakable with KeepLoyaltyTridents.
- When using
KeepLoyaltyTridents
, only tridents with Loyalty will go on cooldown.