theblob wrote:The nodeboxes are working great, but now I have another issue; the player falls through the node when walking on top of it. I set walkable to true, but that didn't fix it. The player only goes through the node from the top, not the sides. Any ideas on what could be wrong?
Topywo wrote:theblob wrote:The nodeboxes are working great, but now I have another issue; the player falls through the node when walking on top of it. I set walkable to true, but that didn't fix it. The player only goes through the node from the top, not the sides. Any ideas on what could be wrong?
I don't know if it's the best solution, but you could try:
climbable = true,
Although one probably still can climb into it then.
minetest.register_node("seaplants:stemsgreen", {
description = 'Stems green',
tiles = {
"default_sand.png", -- up
"default_sand.png", -- down
"seaplants_yellowgreenlight.png", -- right
"seaplants_greenyellowdark.png", -- left
"seaplants_greenyellowlight.png", -- front
"seaplants_yellowgreendark.png", -- back
},
drawtype = "nodebox",
sunlight_propagates = true,
-- light_source = 1,
paramtype = 'light',
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
-- stem_bottom
{-0.02, 0.500, -0.01, 0.02, 1, 0.01},
{-0.0175, 0.500, -0.0125, 0.0175, 1, 0.0125},
{-0.015, 0.500, -0.015, 0.015, 1, 0.015},
{a lot more like this]
{-0.0075+d, 1.5+h, -0.0125+d, 0.0075+d, 2+h, 0.0125+d},
{-0.005+d, 1.5+h, -0.015+d, 0.005+d, 2+h, 0.0150+d},
-- block
{-0.502, 0.50, -0.502, 0.502, 0.502, 0.502},
{-0.502, -0.502, -0.502, 0.50, 0.502, 0.502},
{-0.502, -0.502, -0.502, 0.502, 0.50, 0.502},
{-0.502, -0.502, -0.502, 0.502, 0.502, 0.50},
{-0.50, -0.502, -0.502, 0.502, 0.502, 0.502},
{-0.502, -0.502, -0.50, 0.502, 0.502, 0.502}
},
},
selection_box = {
type = "fixed",
fixed = {
-- block
{-0.502, 0.50, -0.502, 0.502, 0.502, 0.502},
{-0.502, -0.502, -0.502, 0.50, 0.502, 0.502},
{-0.502, -0.502, -0.502, 0.502, 0.50, 0.502},
{-0.502, -0.502, -0.502, 0.502, 0.502, 0.50},
{-0.50, -0.502, -0.502, 0.502, 0.502, 0.502},
{-0.502, -0.502, -0.50, 0.502, 0.502, 0.502}
},
},
drop = "seaplants:chewstickgreen",
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
sounds = default.node_sound_leaves_defaults()
}) Users browsing this forum: No registered users and 8 guests