2023-10-11 07:17:21 +00:00
|
|
|
local modname = minetest.get_current_modname()
|
|
|
|
|
2023-10-11 16:26:48 +00:00
|
|
|
minetest.register_node(modname .. ":log", {
|
|
|
|
description = "Log",
|
|
|
|
tiles = {
|
|
|
|
modname .. "_log_top.png",
|
|
|
|
modname .. "_log_top.png",
|
|
|
|
modname .. "_log.png",
|
|
|
|
},
|
|
|
|
groups = {
|
|
|
|
woody = 1,
|
|
|
|
},
|
2023-10-11 07:17:21 +00:00
|
|
|
})
|
2023-10-11 16:23:09 +00:00
|
|
|
minetest.register_node(modname .. ":log_alive", {
|
|
|
|
description = "Growing Log",
|
|
|
|
tiles = {
|
2023-10-11 16:26:48 +00:00
|
|
|
modname .. "_log_top_alive.png",
|
|
|
|
modname .. "_log_top_alive.png",
|
2023-10-11 16:23:09 +00:00
|
|
|
modname .. "_log_alive.png",
|
|
|
|
},
|
|
|
|
groups = {
|
|
|
|
woody = 1,
|
|
|
|
planty = 1,
|
|
|
|
},
|
|
|
|
drop = modname .. ":log",
|
|
|
|
})
|
2023-10-11 07:17:21 +00:00
|
|
|
|
|
|
|
blockgame.reg_simple_node("sapling", "Sapling", {
|
|
|
|
planty = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node(modname .. ":leaves", {
|
|
|
|
description = "Leaves",
|
|
|
|
drawtype = "glasslike",
|
|
|
|
tiles = {
|
|
|
|
modname .. "_leaves.png",
|
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
groups = {
|
|
|
|
planty = 1,
|
|
|
|
},
|
2023-10-11 16:23:09 +00:00
|
|
|
})
|
|
|
|
minetest.register_node(modname .. ":leaves_alive", {
|
|
|
|
description = "Growing Leaves",
|
|
|
|
drawtype = "glasslike",
|
|
|
|
tiles = {
|
|
|
|
modname .. "_leaves_alive.png",
|
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
groups = {
|
|
|
|
planty = 1,
|
2023-10-11 07:17:21 +00:00
|
|
|
},
|
2023-10-11 16:23:09 +00:00
|
|
|
drop = modname .. ":leaves",
|
2023-10-11 07:17:21 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
blockgame.reg_simple_node("nut", "Nut", {
|
|
|
|
woody = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
blockgame.reg_simple_node("root", "Root", {
|
|
|
|
woody = 1,
|
|
|
|
})
|