I don't directly know what is causing that. However I found some old code from my sea modpack that I've tried out. I don't see strange shadows and I don't go through the node (tested it also with one of the later minetest versions). Just look for the differences with your code. I hope it helps!
Code: Select all
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()
})
If you want to see it working, you can download the nodebox version 0.2.1 of the sea modpack (under the spoiler older versions)
Edit: Typo's.