blockgame/mods/bg_tree/node.lua
trans_soup 68e005814f refactor sapling support checking.
saplings now only check for groups, not specific nodes, when determining
whether they are supported. the previously checked nodes are now in the
new group that's being checked.
2023-10-19 15:08:53 +02:00

25 lines
384 B
Lua

local modname = minetest.get_current_modname()
load_file("node_log")
load_file("node_leaves")
blockgame.register_node("nut", {
groups = {
woody = 1,
},
})
blockgame.register_node("root", {
groups = {
woody = 1,
},
})
blockgame.register_node("root_alive", {
description = "Growing Root",
groups = {
woody = 1,
supports_sapling = 1,
},
drop = modname .. ":root",
})