More textures

This commit is contained in:
Signal 2025-09-12 20:10:48 -04:00
parent 2cba471550
commit 75d98b2c74
4 changed files with 69 additions and 16 deletions

View file

@ -36,13 +36,31 @@ function say(msg)
minetest.chat_send_all("# Server: "..msg)
end
rgt = {}
local ns = rgt
function ns.register_node(name, def)
local alias
if not name:find(":") then
alias = name
name = "red_glazed_terracotta:"..name
end
minetest.register_node(":"..name, def)
if alias then
minetest.register_alias(alias, name)
end
end
minetest.register_on_joinplayer(function(p)
if p:get_player_name() == "singleplayer" then
minetest.change_player_privs(p:get_player_name(), {
fast = true,
fly = true,
noclip = true,
server = true
server = true,
give = true,
})
end
end)