diff --git a/additional_stuff/salad_pickaxe.lua b/additional_stuff/salad_pickaxe.lua new file mode 100644 index 0000000000000000000000000000000000000000..928e515cc83a3d38beddf3be14c1aaedb7a96d9e --- /dev/null +++ b/additional_stuff/salad_pickaxe.lua @@ -0,0 +1,29 @@ + +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", ""} + } +}) diff --git a/init.lua b/init.lua index 2c16f1ca84169dfe373f05ab768896cebb60324e..bc605651008a4364c5fc06a1ef0333d41385653b 100644 --- a/init.lua +++ b/init.lua @@ -18,3 +18,6 @@ end -- /spawn command dofile(MP.."/chat/spawn.lua") + +-- by popular demand +dofile(MP.."/additional_stuff/salad_pickaxe.lua") diff --git a/sounds/kif_custom_salad_splotch.ogg b/sounds/kif_custom_salad_splotch.ogg new file mode 100644 index 0000000000000000000000000000000000000000..2d531ffcafcb9533ed8ace6b3d468820c02daae3 Binary files /dev/null and b/sounds/kif_custom_salad_splotch.ogg differ diff --git a/textures/kif_custom_tool_picksalad.png b/textures/kif_custom_tool_picksalad.png new file mode 100644 index 0000000000000000000000000000000000000000..2bc7568164155db05df93c630b8ee1f0920d8e32 Binary files /dev/null and b/textures/kif_custom_tool_picksalad.png differ