1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2024-11-05 09:50:27 +01:00

don't use inventory/wield image on youngtrees:bamboo.

let the engine show the nodebox instead.
This commit is contained in:
Vanessa Ezekowitz 2014-08-18 19:16:09 -04:00
parent bc48ee59e3
commit 809a91e619

View File

@ -1,41 +1,33 @@
abstract_youngtrees = {} abstract_youngtrees = {}
minetest.register_node("youngtrees:bamboo", { minetest.register_node("youngtrees:bamboo", {
description = "Young Bamboo Tree", description = "Young Bamboo Tree",
drawtype="nodebox", drawtype="nodebox",
tiles = {"bamboo.png"}, tiles = {"bamboo.png"},
inventory_image = "bamboo.png", paramtype = "light",
wield_image = "bamboo.png",
paramtype = "light",
walkable = false, walkable = false,
is_ground_content = true, is_ground_content = true,
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
{-0.058251,-0.500000,-0.413681,0.066749,0.500000,-0.282500}, --NodeBox 1 {-0.058251,-0.500000,-0.413681,0.066749,0.500000,-0.282500}, --NodeBox 1
{-0.058251,-0.500000,-0.103123,0.066749,0.500000,0.038672}, --NodeBox 2 {-0.058251,-0.500000,-0.103123,0.066749,0.500000,0.038672}, --NodeBox 2
{-0.058251,-0.500000,0.181227,0.066749,0.500000,0.342500}, --NodeBox 3 {-0.058251,-0.500000,0.181227,0.066749,0.500000,0.342500}, --NodeBox 3
} }
}, },
groups = {snappy=3,flammable=2}, groups = {snappy=3,flammable=2},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
drop = 'trunks:twig_1' drop = 'trunks:twig_1'
}) })
minetest.register_node("youngtrees:youngtree2_middle",{ minetest.register_node("youngtrees:youngtree2_middle",{
description = "Young Tree 2 (middle)", description = "Young Tree 2 (middle)",
drawtype="nodebox", drawtype="nodebox",
tiles = {"youngtree2branch.png"}, tiles = {"youngtree2branch.png"},
inventory_image = "youngtree2branch.png", inventory_image = "youngtree2branch.png",
wield_image = "youngtree2branch.png", wield_image = "youngtree2branch.png",
paramtype = "light", paramtype = "light",
walkable = false, walkable = false,
is_ground_content = true, is_ground_content = true,
node_box = { node_box = {
type = "fixed", type = "fixed",