1 -- Minetest: builtin/client/init.lua
2 local scriptpath = core.get_builtin_path()..DIR_DELIM
3 local clientpath = scriptpath.."client"..DIR_DELIM
4 local commonpath = scriptpath.."common"..DIR_DELIM
6 dofile(clientpath .. "register.lua")
7 dofile(commonpath .. "after.lua")
8 dofile(commonpath .. "chatcommands.lua")
9 dofile(clientpath .. "chatcommands.lua")
10 dofile(commonpath .. "vector.lua")
12 core.register_on_death(function()
13 core.display_chat_message("You died.")
14 local formspec = "size[11,5.5]bgcolor[#320000b4;true]" ..
15 "label[4.85,1.35;" .. fgettext("You died.") .. "]button_exit[4,3;3,0.5;btn_respawn;".. fgettext("Respawn") .."]"
16 core.show_formspec("bultin:death", formspec)
19 core.register_on_formspec_input(function(formname, fields)
20 if formname == "bultin:death" then