2021-12-13 15:37:51 +01:00
|
|
|
# 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
|
|
|
|
|
2024-09-12 18:13:52 +02:00
|
|
|
To modify the amount of damage dealt by something:
|
2021-12-13 15:37:51 +01:00
|
|
|
|
|
|
|
```lua
|
|
|
|
--obj: an ObjectRef
|
|
|
|
mcl_damage.register_modifier(function(obj, damage, reason)
|
|
|
|
end, 0)
|
2024-09-12 18:13:52 +02:00
|
|
|
```
|