Basic node_box model examples

User avatar
thefamilygrog66
Member
Posts: 170
Joined: Mon Jul 09, 2012 19:08
Location: Ontario, Canada

by thefamilygrog66 » Post

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

User avatar
thefamilygrog66
Member
Posts: 170
Joined: Mon Jul 09, 2012 19:08
Location: Ontario, Canada

by thefamilygrog66 » Post

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},
        },
    },

super_tnt
Member
Posts: 21
Joined: Mon Sep 02, 2013 17:56

by super_tnt » Post

Oh ok, that worked nicely.
Last edited by super_tnt on Wed Sep 18, 2013 18:37, edited 1 time in total.

dgm5555
Member
Posts: 245
Joined: Tue Apr 08, 2014 19:45

Re: Basic node_box model examples

by dgm5555 » Post

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)?

User avatar
Hybrid Dog
Member
Posts: 2834
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: Basic node_box model examples

by Hybrid Dog » Post

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

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

dgm5555
Member
Posts: 245
Joined: Tue Apr 08, 2014 19:45

Re: Basic node_box model examples

by dgm5555 » Post

@HybridDog Brilliant thanks, I'd never found that page

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests