Page 1 of 1

HELP

PostPosted: Mon Oct 14, 2013 21:24
by chase programer
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

PostPosted: Mon Oct 14, 2013 22:30
by Topywo
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

PostPosted: Tue Oct 15, 2013 21:27
by chase programer
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 ")

PostPosted: Tue Oct 15, 2013 22:00
by LionsDen
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.

PostPosted: Wed Oct 16, 2013 10:54
by kaeza
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"