Add toolranks support
This commit is contained in:
parent
1bb06f0060
commit
5fe75f6408
23
init.lua
23
init.lua
@ -357,3 +357,26 @@ end
|
||||
output = "lavastuff:slab 4",
|
||||
recipe = {'lavastuff:block', 'lavastuff:block'}
|
||||
})
|
||||
|
||||
--
|
||||
--Toolranks support
|
||||
--
|
||||
|
||||
if minetest.get_modpath("toolranks") then
|
||||
minetest.override_item("lavastuff:sword", {
|
||||
original_description = "Lava Sword",
|
||||
description = toolranks.create_description("Lava Sword", 0, 1),
|
||||
after_use = toolranks.new_afteruse})
|
||||
inetest.override_item("lavastuff:pick", {
|
||||
original_description = "Lava Pickaxe",
|
||||
description = toolranks.create_description("Lava Pickaxe", 0, 1),
|
||||
after_use = toolranks.new_afteruse})
|
||||
inetest.override_item("lavastuff:axe", {
|
||||
original_description = "Lava Axe",
|
||||
description = toolranks.create_description("Lava Axe", 0, 1),
|
||||
after_use = toolranks.new_afteruse})
|
||||
inetest.override_item("lavastuff:shovel", {
|
||||
original_description = "Lava Shovel",
|
||||
description = toolranks.create_description("Lava Shovel", 0, 1),
|
||||
after_use = toolranks.new_afteruse})
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user