mod doesn't work anymore
I was working on this mod in 0.4.7 but it doesn't seem to work anymore
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_chatcommand("spawn",
{
params = "",
description = "respawn",
func = function(name)
local spawn_point = minetest.string_to_pos(minetest.setting_get("static_spawnpoint"))
local player = minetest.get_player_by_name(name)
player:setpos(spawn_point);
end
})