Add toolranks support

This commit is contained in:
Lone_Wolf 2017-11-16 20:16:01 -08:00 committed by GitHub
parent 1bb06f0060
commit 5fe75f6408
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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