1
0
mirror of https://github.com/moparisthebest/minetest synced 2025-01-10 05:08:07 -05:00
minetest/builtin/client/init.lua
Loïc Blot 22516eee29 CSM: Add on_death, on_hp_modification & oh_damage_taken callbacks (#5093)
* Add on_death callback
* Add on_hp_modification & on_damage_taken callbacks
* move preview code to preview.lua
2017-01-26 22:46:52 +01:00

12 lines
297 B
Lua

-- Minetest: builtin/client/init.lua
local scriptpath = core.get_builtin_path()..DIR_DELIM
local clientpath = scriptpath.."client"..DIR_DELIM
dofile(clientpath .. "register.lua")
dofile(clientpath .. "preview.lua")
core.register_on_death(function()
core.display_chat_message("You died.")
end)