1 -- CSM death formspec. Only used when clientside modding is enabled, otherwise
2 -- handled by the engine.
4 core.register_on_death(function()
5 core.display_chat_message("You died.")
6 local formspec = "size[11,5.5]bgcolor[#320000b4;true]" ..
7 "label[4.85,1.35;" .. fgettext("You died") ..
8 "]button_exit[4,3;3,0.5;btn_respawn;".. fgettext("Respawn") .."]"
9 core.show_formspec("bultin:death", formspec)
12 core.register_on_formspec_input(function(formname, fields)
13 if formname == "bultin:death" then