From de9b6f764858ccf1f0bf1c5b055a2a85344a983b Mon Sep 17 00:00:00 2001 From: Lone_Wolf Date: Wed, 15 Nov 2017 15:55:40 -0800 Subject: [PATCH] Update init.lua --- init.lua | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/init.lua b/init.lua index 2329538..e6677a0 100644 --- a/init.lua +++ b/init.lua @@ -54,6 +54,34 @@ tool_capabilities = { }, sound = {breaks = "default_tool_breaks"}, }) +if not minetest.global_exists("mobs_monster") then +minetest.register_tool("lavastuff:pick", { + description = ("Lava Pickaxe"), + inventory_image = "lavastuff_pick.png", + tool_capabilities = { + full_punch_interval = 0.7, + max_drop_level=3, + groupcaps={ + cracky = {times={[1]=1.80, [2]=0.80, [3]=0.40}, uses=50, maxlevel=3}, + }, + damage_groups = {fleshy=5}, + }, +}) +end +if minetest.global_exists("mobs_monster") then +minetest.register_tool("::mobs:pick_lava", { +description = ("Lava Pickaxe"), +inventory_image = "lavastuff_pick.png", +tool_capabilities = { + full_punch_interval = 0.7, + max_drop_level=3, + groupcaps={ + cracky = {times={[1]=1.80, [2]=0.80, [3]=0.40}, uses=50, maxlevel=3}, + }, + damage_groups = {fleshy=5}, +}, +}) +end minetest.register_tool("lavastuff:shovel", { description = "Lava Shovel", inventory_image = "lavastuff_shovel.png", @@ -94,6 +122,14 @@ minetest.register_craft({ {'default:obsidian_shard'}, } }) +minetest.register_craft({ + output = "lavastuff:pick", + recipe = { + {"lavastuff:ingot", "lavastuff:ingot", "lavastuff:ingot"}, + {"", "default:obsidian_shard", ""}, + {"", "default:obsidian_shard", ""}, + } +}) minetest.register_craft({ output = 'lavastuff:shovel', recipe = { @@ -110,6 +146,16 @@ minetest.register_craft({ {'', 'default:obsidian_shard', ''}, } }) +if minetest.global_exists ("mobs_monster") then +minetest.register_craft({ + output = "mobs:pick_lava", + recipe = { + {"lavastuff:ingot", "lavastuff:ingot", "lavastuff:ingot"}, + {"", "default:obsidian_shard", ""}, + {"", "default:obsidian_shard", ""}, + } +}) +end -- -- Armor