Skip to content
Snippets Groups Projects
Commit a0f0a70b authored by Peter Nerlich's avatar Peter Nerlich
Browse files

add potato salad pickaxe

by popular demand
parent fb35f665
No related branches found
No related tags found
No related merge requests found
local break_immediately = {times = {[3] = 0.01}, uses = 1, leveldiff = 0, maxlevel = 0}
minetest.register_tool("kif_custom:pick_salad", {
description = "Pickaxe from questionable quality",
inventory_image = "kif_custom_tool_picksalad.png",
tool_capabilities = {
max_drop_level = 0,
groupcaps = {
crumbly = break_immediately,
cracky = break_immediately,
snappy = break_immediately,
choppy = break_immediately,
fleshy = break_immediately,
explody = break_immediately,
oddly_breakable_by_hand = break_immediately,
},
},
sound = {breaks = "kif_custom_salad_splotch"},
})
minetest.register_craft({
output = "kif_custom:pick_salad",
recipe = {
{"farming:potato_salad", "farming:potato_salad", "farming:potato_salad"},
{"", "default:stick", ""},
{"", "default:stick", ""}
}
})
...@@ -18,3 +18,6 @@ end ...@@ -18,3 +18,6 @@ end
-- /spawn command -- /spawn command
dofile(MP.."/chat/spawn.lua") dofile(MP.."/chat/spawn.lua")
-- by popular demand
dofile(MP.."/additional_stuff/salad_pickaxe.lua")
File added
textures/kif_custom_tool_picksalad.png

5.9 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment