blockgame/mods/bg_tree/node.lua
trans_soup 568e8059f9 refactor: more wrappers
create more wrappers for built-in functions and use them instead.
2023-10-13 09:31:55 +02:00

64 lines
1.2 KiB
Lua

local modname = minetest.get_current_modname()
blockgame.register_node(modname .. ":log", {
description = "Log",
tiles = {
modname .. "_log_top.png",
modname .. "_log_top.png",
modname .. "_log.png",
},
groups = {
woody = 1,
},
})
blockgame.register_node(modname .. ":log_alive", {
description = "Growing Log",
tiles = {
modname .. "_log_top_alive.png",
modname .. "_log_top_alive.png",
modname .. "_log_alive.png",
},
groups = {
woody = 1,
planty = 1,
},
drop = modname .. ":log",
})
blockgame.reg_simple_node("sapling", "Sapling", {
planty = 1,
})
blockgame.register_node(modname .. ":leaves", {
description = "Leaves",
drawtype = "glasslike",
tiles = {
modname .. "_leaves.png",
},
paramtype = "light",
sunlight_propagates = true,
groups = {
planty = 1,
},
})
blockgame.register_node(modname .. ":leaves_alive", {
description = "Growing Leaves",
drawtype = "glasslike",
tiles = {
modname .. "_leaves_alive.png",
},
paramtype = "light",
sunlight_propagates = true,
groups = {
planty = 1,
},
drop = modname .. ":leaves",
})
blockgame.reg_simple_node("nut", "Nut", {
woody = 1,
})
blockgame.reg_simple_node("root", "Root", {
woody = 1,
})