mirror of
https://github.com/moparisthebest/minetest
synced 2025-01-10 05:08:07 -05:00
22516eee29
* Add on_death callback * Add on_hp_modification & on_damage_taken callbacks * move preview code to preview.lua
12 lines
297 B
Lua
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)
|
|
|