Nodebox Trasparency

User avatar
LorenzoVulcan
Member
 
Posts: 437
Joined: Mon Mar 12, 2012 06:46

Nodebox Trasparency

by LorenzoVulcan » Sun Dec 23, 2012 21:21

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?
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Sun Dec 23, 2012 21:22

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.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
LorenzoVulcan
Member
 
Posts: 437
Joined: Mon Mar 12, 2012 06:46

by LorenzoVulcan » Sun Dec 23, 2012 21:24

jojoa1997 wrote:Try getting rid of paramtype2.

Nothing happen.
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Sun Dec 23, 2012 21:26

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.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
LorenzoVulcan
Member
 
Posts: 437
Joined: Mon Mar 12, 2012 06:46

by LorenzoVulcan » Sun Dec 23, 2012 21:27

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.
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 

User avatar
Casimir
Member
 
Posts: 1101
Joined: Fri Aug 03, 2012 16:59

by Casimir » Sun Dec 23, 2012 21:28

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.
 

User avatar
LorenzoVulcan
Member
 
Posts: 437
Joined: Mon Mar 12, 2012 06:46

by LorenzoVulcan » Sun Dec 23, 2012 21:29

Casimir wrote:This works:
Your upper side was lower than the bottom. I just exchanged them.

Thanks,Solved! ;) I'm so silly!
Developer of the BlockForge 2# Project!
Official thread: http://minetest.net/forum/viewtopic.php?pid=54290#p54290
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 9 guests

cron