From 5431359e73e0a66f781c88fd6231060dc32714ee Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Fri, 28 Jul 2017 08:46:48 +0100 Subject: [PATCH] add toolranks support to lava pick --- depends.txt | 1 + lava_flan.lua | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/depends.txt b/depends.txt index 58b4e62..d0aea36 100644 --- a/depends.txt +++ b/depends.txt @@ -2,3 +2,4 @@ default mobs intllib? lucky_block? +toolranks? diff --git a/lava_flan.lua b/lava_flan.lua index fe67510..7287a1f 100644 --- a/lava_flan.lua +++ b/lava_flan.lua @@ -168,3 +168,12 @@ minetest.register_craft({ {"", "default:obsidian_shard", ""}, } }) + +-- Add [toolranks] mod support if found +if minetest.get_modpath("toolranks") then + +minetest.override_item("mobs:pick_lava", { + original_description = "Lava Pickaxe", + description = toolranks.create_description("Lava Pickaxe", 0, 1), + after_use = toolranks.new_afteruse}) +end