Dinamic Damage
by Benjamin_Nicro · 2026-09-05 · Data packs

This Datapack allows you to customize your damage, removing the player's normal damage and replacing it with dynamic damage, allowing you to have base damage stats, critical hit probability, critical hit damage, damage amplification, and strength modifier. Within the code, in the function dynamic_damage:weapon/sword/damage/set_damage , you can find the explanation. Simply put, your damage is handled on a scale of tens; that is, 10 base damage is equal to 1 damage in-game. Similarly, your multipliers can be adjusted: base damage, critical hit chance, the critical hit damage multiplier, and final damage. This data is unique to each player, so you can have multiple players with different stats. This only works with weapons that have special tags. The tag is applied with the function /function dynamic_damage:main/set and only applies to swords, spears, axes, and tridents. You can modify damage with the following values: "scoreboard players set @s dd.damage.base X" to modify the base damage per hit. Every 10 you enter increases the damage by 1. For example, 70 points = 7 damage. It works with decimals, so you can enter 75 to have 7.5 damage. "scoreboard players set @s dd.crit.chance X"
