Enchantment Damage Multiplied

Quick rating

Community listing page, reviews may not be monitored by the author.

Enchantment Damage Multiplied

No reviews yet

Makes enchantment damage bonuses used by vanilla player melee attacks share selected minecraft:generic.attack_damage AttributeModifier operations.

Mod Loaders
Minecraft

About

Description

Enchantment Damage Multiplied

A focused Forge 1.20.1 mod that applies selected generic.attack_damage attribute modifier operations to the enchantment damage bonus in vanilla player melee attacks.

Damage model

The mod scales the value returned by EnchantmentHelper.getDamageBonus(ItemStack, MobType) in Player.attack. It preserves Minecraft's operation order: ADDITION modifiers first, then each MULTIPLY_BASE modifier using the same adjusted base, and finally each MULTIPLY_TOTAL modifier in sequence. A zero enchantment bonus remains zero.

Scope

Modded enchantments that contribute through the same getDamageBonus path are included. Custom damage paths are outside this mod's scope. Projectile damage, including arrows and thrown tridents, is not modified. The mod does not change the player's live ATTACK_DAMAGE attribute.

Configuration

The Forge COMMON config is generated at config/enchantment_damage_multiplied-common.toml:

enabled = true
addition = false
multiply_base = true
multiply_total = true

enabled is the master switch. addition, multiply_base, and multiply_total independently control the corresponding ATTACK_DAMAGE modifier operation when scaling the enchantment bonus. Forge watches the common config and applies valid changes while running; a restart is normally unnecessary.

License

GNU General Public License v3.0.