blockgame/mods/bg_api/utils_node.lua
trans_soup a973bbdbf8 initial commit.
created a few proof-of-concept mechanics. took some textures from
minetest game. implemented basic tree growth and stacking in-world
crafting.
2023-10-11 09:17:21 +02:00

12 lines
316 B
Lua

local reg_simple_node = function (name, desc, groups)
local my_modname = minetest.get_current_modname()
return minetest.register_node(my_modname .. ":" .. name, {
description = desc,
tiles = {
my_modname .. "_" .. name .. ".png",
},
groups = groups,
})
end
blockgame.reg_simple_node = reg_simple_node