MineClone2/mods/CORE/mcl_damage/API.md

13 lines
372 B
Markdown
Raw Normal View History

2021-05-09 16:54:54 +02:00
# mcl_damage
This mod provide damage handling.
## mcl_damage.register_modifier(func, priority)
Register damage modifier.
* func: function, called with (obj, damage, reason)
This function can modify damage, based on mcl reason.
* priority: int, define call order of registered functions
You should make use higher values for important or most used functions.