Need help (=

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

Need help (=

by chase programer » Tue May 14, 2013 21:34

can someone give me the code for a pickaxe,shovel and sword

If you can thx you (=
Back and ready to help with this amazing community that i lost.
 

User avatar
doyousketch2
Member
 
Posts: 82
Joined: Tue Feb 05, 2013 16:06
GitHub: doyousketch2
In-game: Sketch2

by doyousketch2 » Tue May 14, 2013 22:26

find your minetest directory, wherever it's located
you'll want to scroll to this file:

minetest/games/common/mods/default/init.lua

you'll need to look for the part that defines the item

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_tool("default:pick_wood", {
    description = "Wooden Pickaxe",
    inventory_image = "default_tool_woodpick.png",
    tool_capabilities = {
        full_punch_interval = 1.2,
        max_drop_level=0,
        groupcaps={
            cracky = {times={[3]=1.60}, uses=10, maxlevel=1},
        },
        damage_groups = {fleshy=2},
    },
})


plus the part that registers the craft

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_craft({
    output = 'default:pick_wood',
    recipe = {
        {'group:wood', 'group:wood', 'group:wood'},
        {'', 'default:stick', ''},
        {'', 'default:stick', ''},
    }
})


you'll find the pickaxes, shovels and swords all in there.
 

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

by chase programer » Tue May 14, 2013 22:38

doyousketch2 wrote:find your minetest directory, wherever it's located
you'll want to scroll to this file:

minetest/games/common/mods/default/init.lua

you'll need to look for the part that defines the item

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_tool("default:pick_wood", {
    description = "Wooden Pickaxe",
    inventory_image = "default_tool_woodpick.png",
    tool_capabilities = {
        full_punch_interval = 1.2,
        max_drop_level=0,
        groupcaps={
            cracky = {times={[3]=1.60}, uses=10, maxlevel=1},
        },
        damage_groups = {fleshy=2},
    },
})


plus the part that registers the craft

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_craft({
    output = 'default:pick_wood',
    recipe = {
        {'group:wood', 'group:wood', 'group:wood'},
        {'', 'default:stick', ''},
        {'', 'default:stick', ''},
    }
})


you'll find the pickaxes, shovels and swords all in there.


thx
Back and ready to help with this amazing community that i lost.
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 9 guests

cron