minetest.register_node("bushes:BushQuarterBranches2", {
description = "BushQuarterBranches2",
drawtype = "nodebox",
tiles = {
"blank.png",
"blank.png",
"BlockBranch1Lsm.png",
"BlockBranch1Rsm.png",
"blank.png",
"blank.png"
},
node_box = {
type = "fixed",
fixed = {
{-1/2, -1/2, -1/2, -1/2, 1/2, 1/2},
{1/2, -1/2, -1/2, 1/2, 1/2, 1/2}
},
},
selection_box = {
type = "fixed",
fixed = {-1/2, -1/2, -1/2, 1/2, 1/2, 1/2},
},
inventory_image = "BlockBranch1Rsm.png",
paramtype = "light",
groups = {tree=1, snappy=3, flammable=2, leaves=1},
sounds = default.node_sound_leaves_defaults(),
})
ak399g wrote:drawtype = glasslike?
Mossmanikin wrote:How about something like thisYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.register_node("bushes:BushQuarterBranches2", {
description = "BushQuarterBranches2",
drawtype = "nodebox",
tiles = {
"blank.png",
"blank.png",
"BlockBranch1Lsm.png",
"BlockBranch1Rsm.png",
"blank.png",
"blank.png"
},
node_box = {
type = "fixed",
fixed = {
{-1/2, -1/2, -1/2, -1/2, 1/2, 1/2},
{1/2, -1/2, -1/2, 1/2, 1/2, 1/2}
},
},
selection_box = {
type = "fixed",
fixed = {-1/2, -1/2, -1/2, 1/2, 1/2, 1/2},
},
inventory_image = "BlockBranch1Rsm.png",
paramtype = "light",
groups = {tree=1, snappy=3, flammable=2, leaves=1},
sounds = default.node_sound_leaves_defaults(),
})
The panes are two-sided, but maybe it's even cooler like that.
EDIT: gramma
Neuromancer wrote:That's better, but don't nodeboxes hurt performance?
Mossmanikin wrote:Neuromancer wrote:That's better, but don't nodeboxes hurt performance?
Complex nodeboxes hurt performance. I'm not sure about something as simple as this.
Neuromancer wrote:Is there any way to get them at a right angle to each other instead of parallel?
node_box = {
type = "fixed",
fixed = {
-- {left,bottom,front,right,top,back}
{0, -1/2, -1/2, 0, 1/2, 1/2},
{-1/2, -1/2, 0, 1/2, 1/2, 0}
},
},
minetest.register_node("default:glass", {
description = "Glass",
drawtype = "glasslike",
tiles = {"default_glass.png"},
inventory_image = minetest.inventorycube("default_glass.png"),
paramtype = "light",
sunlight_propagates = true,
groups = {cracky=3,oddly_breakable_by_hand=3},
sounds = default.node_sound_glass_defaults(),
})tiles = {"default_glass.png"},Users browsing this forum: No registered users and 10 guests