- Posts: 190
- Joined: Wed Mar 14, 2018 23:14
- In-game: Extex
I'm pretty sure at some point I saw something like this somewhere
Code: Select all
minetest.register_on_damage_player(function(player, hp, type)
local current_hp = player:get_hp()
if type.fall then
I'm probably getting the name wrong but if you know what it actually is or another way to negate fall damage please let me know
Last edited by Extex
on Sun Aug 18, 2019 16:36, edited 1 time in total.
Player of PK, RIP. Creator of the light_tool
mods. Working on another mod which should be coming soon!
- Posts: 123
- Joined: Fri May 03, 2019 16:46
minetest.register_on_player_hpchange is what you're looking for.
Users browsing this forum: No registered users and 1 guest