Please see code below:
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("Cheesuweapons:Starsword", {
description = "Starsword",
inventory_image = "starsword.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level=1,
groupcaps={
fleshy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=10, maxlevel=2},
snappy={times={[2]=0.70, [3]=0.30}, uses=40, maxlevel=1},
choppy={times={[3]=0.70}, uses=40, maxlevel=0}
}
}
})
minetest.register_craft({
output = 'Cheesuweapons:Starsword',
recipe = {
{'material', 'default_torch', 'material'},
{'material', 'default_stick', 'material'},
{'material', 'default_stick', 'material'},
}
})