Browse Source

add toolranks support to lava pick

pull/5/head
TenPlus1 2 years ago
parent
commit
5431359e73
2 changed files with 10 additions and 0 deletions
  1. +1
    -0
      depends.txt
  2. +9
    -0
      lava_flan.lua

+ 1
- 0
depends.txt View File

@@ -2,3 +2,4 @@ default
mobs
intllib?
lucky_block?
toolranks?

+ 9
- 0
lava_flan.lua View File

@@ -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

Loading…
Cancel
Save