mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-10 00:59:35 +01:00
basic mcl_damage API
This commit is contained in:
parent
f528b31d48
commit
836570af60
1 changed files with 12 additions and 0 deletions
12
mods/CORE/mcl_damage/API.md
Normal file
12
mods/CORE/mcl_damage/API.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# 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.
|
Loading…
Reference in a new issue