Page 1 of 1

Strange node behavior - help

PostPosted: Tue Sep 11, 2012 14:51
by nomohakon
Hi, i created 1 node wide walkway with sides (for those who dont use fly mode) but i run in this:
Image
it should look like this:
Image
It happens only on blocks placed on clear sunlight on steel (as far as i can tell). Oh and the "missing" side is walk-through (not desired btw).
Your 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("hakon:test", {
    description = 'Servisni lavka',
    drawtype = "nodebox",
    light_propagates = true,
    sunlight_propagates = true,
    tiles = {"kostka.png"},
    paramtype = 'light',
    paramtype2 = 'facedir',
    node_box = {
        type = "fixed",
        fixed = {
        {-0.50, -0.50, -0.50,   -0.44,  0.50,  0.50},
        {-0.50,  0.44, -0.50,    0.50,  0.50,  0.50},
        { 0.50, -0.50,  0.50,    0.44,  0.50, -0.50},
        },
    },
    selection_box = {
        type = "fixed",
        fixed = {
        {-0.50, -0.50, -0.50,   -0.44,  0.50,  0.50},
        {-0.50,  0.44, -0.50,    0.50,  0.50,  0.50},
        { 0.50, -0.50,  0.50,    0.44,  0.50, -0.50},
        },
    },
    walkable = true,
    groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
})

What i did wrong?

OT: one day...
Image

PostPosted: Tue Sep 11, 2012 15:06
by Jordach
Is that my metals mod in the background?

EDIT: The lighting error is down to Minetest, its to do with the damn nodeboxes, stairs do this if you use them as a roof.

PostPosted: Tue Sep 11, 2012 15:29
by nomohakon
With the light problem i can live, but falling from this height... Maybe i put in the numbers wrong?

EDIT: mod is steel. by minetesting

PostPosted: Tue Sep 11, 2012 15:31
by Jordach
I'm no good with nodeboxes, but they have to be somewhat thick.

PostPosted: Tue Sep 11, 2012 17:00
by nomohakon
Problem solved.
Image
Your 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("hakon:test", {
    description = 'Servisni lavka',
    drawtype = "nodebox",
    light_propagates = true,
    sunlight_propagates = true,
    tiles = {"kostka.png"},
    paramtype = 'light',
    paramtype2 = 'facedir',
    node_box = {
        type = "fixed",
        fixed = {
        {-0.50, -0.50, -0.50,   -0.4375,  0.50,  0.50},
        {-0.50, -0.50, -0.50,    0.50, -0.4375,  0.50},
        { 0.4375, -0.50, -0.50,    0.50,  0.50,  0.50},
        },
    },
    selection_box = {
        type = "fixed",
        fixed = {
        {-0.50, -0.50, -0.50,   -0.4375,  0.50,  0.50},
        {-0.50, -0.50, -0.50,    0.50, -0.4375,  0.50},
        { 0.4375, -0.50, -0.50,    0.50,  0.50,  0.50},
        },
    },
    walkable = true,
    groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
})