blockgame/mods/bg_tree/node.lua

52 lines
807 B
Lua

local modname = minetest.get_current_modname()
blockgame.reg_simple_node("log", "Log", {
woody = 1,
})
blockgame.reg_simple_node("sapling", "Sapling", {
planty = 1,
})
blockgame.reg_simple_node("plank", "Plank", {
woody = 1,
})
minetest.register_node(modname .. ":leaves", {
description = "Leaves",
drawtype = "glasslike",
tiles = {
modname .. "_leaves.png",
},
paramtype = "light",
sunlight_propagates = true,
groups = {
planty = 1,
},
drop = {
max_items = 2,
items = {
{
rarity = 16,
items = {modname .. ":nut 3"}
},
{
rarity = 8,
items = {modname .. ":nut 2"}
},
{
rarity = 4,
items = {modname .. ":nut"}
},
},
},
})
blockgame.reg_simple_node("nut", "Nut", {
woody = 1,
})
blockgame.reg_simple_node("root", "Root", {
woody = 1,
})