Page 1 of 1

Nodebox Trasparency

PostPosted: Sun Dec 23, 2012 21:21
by LorenzoVulcan
Image

This happens with a node with nodebox.

Here's the code:

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("lulzpack:smithery", {
    description = "Smithery",
    tiles = {"electrofurnace_front.png"},
    drawtype="nodebox",
    groups = {cracky=1},
    paramtype = "light",
    paramtype2 = "facedir",
    is_ground_content = true,
    light_source=10,
    sounds = default.node_sound_stone_defaults(),
    on_construct =..
    can_dig = ...
    selection_box = {
        type = "fixed",
        fixed = { -0.5, 0, -0.5 , 0.5, -0.5, 0.5}
    },
    node_box = {
        type = "fixed",
        fixed = { -0.5, 0, -0.5 , 0.5, -0.5, 0.5}
    }
})


Can anyone help me?

PostPosted: Sun Dec 23, 2012 21:22
by jojoa1997
LorenzoVulcan wrote:Image

This happens with a node with nodebox.

Here's the code:

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("lulzpack:smithery", {
    description = "Smithery",
    tiles = {"electrofurnace_front.png"},
    drawtype="nodebox",
    groups = {cracky=1},
    paramtype = "light",
    paramtype2 = "facedir",
    is_ground_content = true,
    light_source=10,
    sounds = default.node_sound_stone_defaults(),
    on_construct =..
    can_dig = ...
    selection_box = {
        type = "fixed",
        fixed = { -0.5, 0, -0.5 , 0.5, -0.5, 0.5}
    },
    node_box = {
        type = "fixed",
        fixed = { -0.5, 0, -0.5 , 0.5, -0.5, 0.5}
    }
})


Can anyone help me?

Try getting rid of paramtype2.

PostPosted: Sun Dec 23, 2012 21:24
by LorenzoVulcan
jojoa1997 wrote:Try getting rid of paramtype2.

Nothing happen.

PostPosted: Sun Dec 23, 2012 21:26
by jojoa1997
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("lulzpack:smithery", {
    description = "Smithery",
    tiles = {"electrofurnace_front.png"},
    drawtype="nodebox",
    groups = {cracky=1},
    paramtype = "light",
    light_source=10,
    sounds = default.node_sound_stone_defaults(),
    on_construct =..
    can_dig = ...
    selection_box = {
        type = "fixed",
        fixed = { -0.5, 0, -0.5 , 0.5, -0.5, 0.5}
    },
    node_box = {
        type = "fixed",
        fixed = { -0.5, 0, -0.5 , 0.5, -0.5, 0.5}
    }
})

Try this.

PostPosted: Sun Dec 23, 2012 21:27
by LorenzoVulcan
jojoa1997 wrote:
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("lulzpack:smithery", {
    description = "Smithery",
    tiles = {"electrofurnace_front.png"},
    drawtype="nodebox",
    groups = {cracky=1},
    paramtype = "light",
    light_source=10,
    sounds = default.node_sound_stone_defaults(),
    on_construct =..
    can_dig = ...
    selection_box = {
        type = "fixed",
        fixed = { -0.5, 0, -0.5 , 0.5, -0.5, 0.5}
    },
    node_box = {
        type = "fixed",
        fixed = { -0.5, 0, -0.5 , 0.5, -0.5, 0.5}
    }
})

Try this.


That's the same.

PostPosted: Sun Dec 23, 2012 21:28
by Casimir
This works:
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
    selection_box = {
        type = "fixed",
        fixed = { -0.5, -0.5, -0.5 , 0.5, 0, 0.5}
    },
    node_box = {
        type = "fixed",
        fixed = { -0.5, -0.5, -0.5 , 0.5, 0, 0.5}
    }

Your upper side was lower than the bottom. I just exchanged them.

PostPosted: Sun Dec 23, 2012 21:29
by LorenzoVulcan
Casimir wrote:This works:
Your upper side was lower than the bottom. I just exchanged them.

Thanks,Solved! ;) I'm so silly!