[Solved] Is there a: minetest.register_on_damage_player?

Post Reply
User avatar
Posts: 190
Joined: Wed Mar 14, 2018 23:14
GitHub: Extex101
In-game: Extex

[Solved] Is there a: minetest.register_on_damage_player?

by Extex » Post

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 and motorbike mods. Working on another mod which should be coming soon!

Posts: 123
Joined: Fri May 03, 2019 16:46

Re: Is there a: minetest.register_on_damage_player?

by Eran » Post

minetest.register_on_player_hpchange is what you're looking for.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests