[Help needed]

kutkuhunter98
Member
 
Posts: 18
Joined: Tue May 14, 2013 16:17

[Help needed]

by kutkuhunter98 » Fri Jun 21, 2013 20:46

could anyone write me a code for a nodebox that will be super flat. It is for a really cool mod I am making. Thanks.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Fri Jun 21, 2013 21:29

Like this?
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
drawtype="nodebox",
paramtype = "light",
node_box = {
    type = "fixed",
    fixed = {
        {-0.500000,-0.500000,-0.500000,0.500000,-0.450000,0.500000}, --NodeBox 1
    }
}
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

kutkuhunter98
Member
 
Posts: 18
Joined: Tue May 14, 2013 16:17

by kutkuhunter98 » Fri Jun 21, 2013 21:33

Yes, thank you. now how do you add different textures to a nodebox?
 

kutkuhunter98
Member
 
Posts: 18
Joined: Tue May 14, 2013 16:17

by kutkuhunter98 » Fri Jun 21, 2013 21:36

never mind
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

by Topywo » Fri Jun 21, 2013 21:39

fixed = {-0.5, -0.001, -0.5, 0.5, 0.001, 0.5}

the -0.001 and 0.001 are the Y's.

You can make the flat less flat by enlarging the numbers example:

fixed = {-0.5, -0.01, -0.5, 0.5, 0.01, 0.5}

or you can put it on the bottom:

fixed = {-0.5, -0.5, -0.5, 0.5, -0.498, 0.5}

or top:

fixed = {-0.5, 0.498, -0.5, 0.5, 0.5, 0.5}

You can copy the code from a mod with nodeboxes, like VanessaE's homedecor, and replace (mod)names with the names of your mod and change the numbers behind fixed with one of the examples. Best way is to just try out different formats.

A helpful topic:
http://forum.minetest.net/viewtopic.php?id=2333

Edit: yeah, never mind too :-)
Last edited by Topywo on Fri Jun 21, 2013 21:40, edited 1 time in total.
 

kutkuhunter98
Member
 
Posts: 18
Joined: Tue May 14, 2013 16:17

by kutkuhunter98 » Sat Jun 22, 2013 05:46

how do I get this to turn to attach to the wall when I look at the wall. when I look at the wall and place this, it is sideways and coming off the wall


minetest.register_node("mod:wall_red", {
tiles = {"mod_wall_red.png"},
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
drawtype="nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.50, - 0.50, -0.50, -0.40, 0.50, 0.50}, --NodeBox 2
}
}
})
 

User avatar
Dan Duncombe
Member
 
Posts: 904
Joined: Thu May 09, 2013 21:11

by Dan Duncombe » Sat Jun 22, 2013 09:49

Try using drawtype = "signlike", and paramtype2 = "wallmounted",
Some Mods: Castles Prefab Camouflage
My Games: Nostalgia Realtest Revamped
Servers: See above games.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 3 guests

cron