Page 3 of 3

Posted: Wed Sep 18, 2013 15:44
by thefamilygrog66
Here's the nodebox info for my Lava Lamps [lavalamp] mod - an attempt at making vertical cylinders, I suppose!

Code: Select all

node_box = {
    type = "fixed",
    fixed = {
        -- base
        { -0.1875, -0.5, -0.1875, 0.1875, -0.3125, 0.1875, },
        { -0.125, -0.5, -0.25, 0.125, -0.3125, -0.1875, },
        { -0.25, -0.5, -0.125, -0.1875, -0.3125, 0.125, },
        { 0.1875, -0.5, -0.125, 0.25, -0.3125, 0.125, },
        { -0.125, -0.5, 0.1875, 0.125, -0.3125, 0.25, },
        -- lamp
        { -0.125, -0.3125, -0.125, 0.125, 0.5, 0.125, },
        { -0.0625, -0.3125, -0.1875, 0.0625, 0.5, -0.125, },
        { -0.0625, -0.3125, 0.125, 0.0625, 0.5, 0.1875, },    
        { -0.1875, -0.3125, -0.0625, 0.125, 0.5, 0.0625, },
        { 0.125, -0.3125, -0.0625, 0.1875, 0.5, 0.0625, },    
    },
},
Image

Posted: Wed Sep 18, 2013 16:35
by thefamilygrog66
super_tnt wrote:Can I make a request for my upcoming mod? I'd like 3 cylinders, one for up and down, 2 for the 2 lying down. I looked at the barrel but it wasn't centred and I'm unsure of how to centre this, also it should be able to stack next to each other.
The round trees from tonyka's 3dforniture mod were also cylindrical:

Code: Select all

node_box = {
        type = "fixed",
        fixed = {
            {-0.35,-0.5,-0.4,0.35,0.5,0.4},
            {-0.4,-0.5,-0.35, 0.4,0.5,0.35},
            {-0.25,-0.5,-0.45,0.25,0.5,0.45},
            {-0.45,-0.5,-0.25, 0.45,0.5,0.25},
            {-0.15,-0.5,-0.5,0.15,0.5,0.5},
            {-0.5,-0.5,-0.15, 0.5,0.5,0.15},
        },
    },

Posted: Wed Sep 18, 2013 17:30
by super_tnt
Oh ok, that worked nicely.

Re: Basic node_box model examples

Posted: Sun Mar 22, 2015 08:24
by dgm5555
I'm making an anvil with a base texture that I want different to the head, and a chest and cauldren which I want inside texture different to outside. Is there any way of having different textures for different cubics within a node coded in lua, or do I have to make a 3d model for this?

Also is there a way of rotating/mirroring a texture in the node definition rather than having to do it manually (eg for a door where the hinges are mirrored on front/back of the door)?

Re: Basic node_box model examples

Posted: Wed Mar 25, 2015 14:15
by Hybrid Dog
dgm5555 wrote:Also is there a way of rotating/mirroring a texture in the node definition rather than having to do it manually (eg for a door where the hinges are mirrored on front/back of the door)?
http://dev.minetest.net/texture

Re: Basic node_box model examples

Posted: Thu Mar 26, 2015 23:05
by dgm5555
@HybridDog Brilliant thanks, I'd never found that page