SPRAY paint mod

chase programer
Member
 
Posts: 117
Joined: Thu Jan 03, 2013 16:56

SPRAY paint mod

by chase programer » Sat Jan 12, 2013 02:16

Ok i dont have a code but i need to ask u if you can make one i meen like i see lots of peeps asking for codes and plz dont block this one plz
Back and ready to help with this amazing community that i lost.
 

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

by jojoa1997 » Sat Jan 12, 2013 02:51

This is from VanessaE's homedecor mod.
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('homedecor:ceiling_paint', {
    description = "Textured Ceiling Paint",
    drawtype = 'signlike',
    tiles = { 'homedecor_ceiling_paint.png' },
    inventory_image = 'homedecor_ceiling_paint_roller.png',
    wield_image = 'homedecor_ceiling_paint_roller.png',
    sunlight_propagates = true,
    paramtype = 'light',
    walkable = false,
    groups = { snappy = 3 },
    sounds = default.node_sound_leaves_defaults(),
        selection_box = {
            type = "wallmounted",
                         --wall_top = <default>
                         --wall_bottom = <default>
                         --wall_side = <default>
                        },
})

Mainly she made the image one thing, and she made the inventory image and weild image another. So what you hold is the spray can and what you set the tile to is the paint. Also the drawtype is "signlike" so the paint can be flat.
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

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

by jojoa1997 » Sat Jan 12, 2013 02:55

Welcome to modding. I am willing to help because i know what it is like to be a beginner modder. This link might help you it tells you how to make nodes(blocks), tools, items and alot more.Minetest API
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

chase programer
Member
 
Posts: 117
Joined: Thu Jan 03, 2013 16:56

by chase programer » Sat Jan 12, 2013 02:55

jojoa1997 wrote:This is from VanessaE's homedecor mod.
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('homedecor:ceiling_paint', {
    description = "Textured Ceiling Paint",
    drawtype = 'signlike',
    tiles = { 'homedecor_ceiling_paint.png' },
    inventory_image = 'homedecor_ceiling_paint_roller.png',
    wield_image = 'homedecor_ceiling_paint_roller.png',
    sunlight_propagates = true,
    paramtype = 'light',
    walkable = false,
    groups = { snappy = 3 },
    sounds = default.node_sound_leaves_defaults(),
        selection_box = {

            type = "wallmounted",
                         --wall_top = <default>
                         --wall_bottom = <default>
                         --wall_side = <default>
                        },
})

Mainly she made the image one thing, and she made the inventory image and weild image another. So what you hold is the spray can and what you set the tile to is the paint. Also the drawtype is "signlike" so the paint can be flat.






Thx helper lol lets work togetther
Back and ready to help with this amazing community that i lost.
 

User avatar
Aqua
Member
 
Posts: 641
Joined: Wed Aug 22, 2012 09:11

by Aqua » Sat Jan 12, 2013 03:00

Have a look at this: Click Here
Hi there ^.~
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sat Jan 12, 2013 14:05

 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 8 guests