mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-13 22:43:43 +01:00
15 lines
459 B
Markdown
15 lines
459 B
Markdown
|
# mcl_damage
|
||
|
|
||
|
This mod is intended to overall minetest's native damage system, to provide a better integration between features that deals with entities' health.
|
||
|
|
||
|
WARNING: Not using it inside your mods may cause strange bugs (using the native damage system may cause conflicts with this system).
|
||
|
|
||
|
## Callbacks
|
||
|
|
||
|
To modify the amount of damage made by something:
|
||
|
|
||
|
```lua
|
||
|
--obj: an ObjectRef
|
||
|
mcl_damage.register_modifier(function(obj, damage, reason)
|
||
|
end, 0)
|
||
|
```
|