Since English is not my native language, I have used AI translation, which may not fully capture the original intent. Please forgive any discrepancies.
This mod adds a damage lock mechanism to the game, which caps the damage at a set value when any type of damage exceeds the maximum allowed by the damage lock.
Configurable file content:
- Global:
· Enable/Disable Damage Lock (Global)
· Enable/Disable General Damage Lock (including all damage types)
· Maximum allowed damage for General Damage Lock (0 to 65536)
- Local:
Entity:
· Enable/Disable Entity Damage Lock (including players, arrows, falling anvils, etc.)
· Maximum allowed damage for Entity Damage Lock (0 to 65536)
Player:
· Enable/Disable Player Damage Lock
· Maximum allowed damage for Player Damage Lock (0 to 65536)
· Maximum allowed damage for spawning Damage Indicator particles (-65535 to 65536; When a player deals a large amount of damage to a high-health entity at once, a large number of particles are spawned, causing lag)
Non-Entity:
· Enable/Disable Non-Entity Damage Lock
· Maximum allowed damage for Non-Entity Damage Lock (0 to 65536)
- Whitelist:
· Enable/Disable Damage Type Whitelist (damage types within this whitelist are not affected by damage lock)
· Enable/Disable Default Damage Type Whitelist
· Damage Type Whitelist Table
· Enable/Disable Entity Hurt Whitelist (entities within this whitelist are not affected by damage lock when they hurt)
· Entity Hurt Whitelist Table
· Enable/Disable Entity Attack Whitelist (entities within this whitelist are not affected by damage lock on the damage amount they cause)
· Entity Attack Whitelist Table
Note: The priority of damage lock from highest to lowest is [Whitelist -> General Damage Lock -> Player Damage Lock -> Entity Damage Lock -> Non-Entity Damage Lock]