a973bbdbf8
created a few proof-of-concept mechanics. took some textures from minetest game. implemented basic tree growth and stacking in-world crafting.
12 lines
316 B
Lua
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
|