HELP

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

HELP

by chase programer » Mon Oct 14, 2013 21:24

Hey Can Someone help me with this code and dose it work for just a mod?

minetest.register_tool("default:energy_pickaxe", {
description = "superpickaxe",
inventory_image = "default_tool_energypickaxe.png",
tool_capabilities = {
full_punch_interval = 0.7,
max_drop_level=1,
groupcaps={
snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=4000, maxlevel=3},
},
damage_groups = {fleshy=100},
}
})


Sorry if im spaming
Back and ready to help with this amazing community that i lost.
 

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

by Topywo » Mon Oct 14, 2013 22:30

1. Did you try it. (hint: delete your debug.txt and open it after each error)

Did you see the answers on this question:
https://forum.minetest.net/viewtopic.php?id=6298
 

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

by chase programer » Tue Oct 15, 2013 21:27

Topywo wrote:1. Did you try it. (hint: delete your debug.txt and open it after each error)

Did you see the answers on this question:
https://forum.minetest.net/viewtopic.php?id=6298


I dont understand ("delete your debug.txt and open it ")
Back and ready to help with this amazing community that i lost.
 

User avatar
LionsDen
Member
 
Posts: 525
Joined: Thu Jun 06, 2013 03:19

by LionsDen » Tue Oct 15, 2013 22:00

He means to delete the file debug.txt from your bin directory. Then start up a game of minetest and when the error happens, open the newly created debug.txt and very near the bottom of the file will be some error lines if there are errors.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Wed Oct 16, 2013 10:54

chase programer wrote:"default:energy_pickaxe"

You are trying to define an item in the default mod namespace. You can't do that.
If your mod is named 'mymod', use "mymod:energy_pickaxe"
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 


Return to WIP Mods

Who is online

Users browsing this forum: Bing [Bot] and 10 guests

cron