68e005814f
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.
25 lines
384 B
Lua
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",
|
|
})
|