Page 1 of 1

SPRAY paint mod

PostPosted: Sat Jan 12, 2013 02:16
by chase programer
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

PostPosted: Sat Jan 12, 2013 02:51
by jojoa1997
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.

PostPosted: Sat Jan 12, 2013 02:55
by jojoa1997
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

PostPosted: Sat Jan 12, 2013 02:55
by chase programer
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

PostPosted: Sat Jan 12, 2013 03:00
by Aqua
Have a look at this: Click Here

PostPosted: Sat Jan 12, 2013 14:05
by rubenwardy