Since this last post was created after the last backup of forum, the toolranks mods here is not compatible anymore with moreores and farming_redo with minetest 5.x.
I have forked too toolrank_extender for compatibility with gemtools, gloopblocks, octu, titanium :
Code: Select all
if minetest.get_modpath("toolranks") then
-- Bacon Mod support.
if minetest.get_modpath("bacon") then
minetest.override_item("bacon:pick", {
original_description = "Bacon Pickaxe",
description = toolranks.create_description("Bacon Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("bacon:axe", {
original_description = "Bacon Axe",
description = toolranks.create_description("Bacon Axe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("bacon:shovel", {
original_description = "Bacon Shovel",
description = toolranks.create_description("Bacon Shovel", 0, 1),
after_use = toolranks.new_afteruse})
end
-- Glooptest Support.
if minetest.get_modpath("glooptest") then
minetest.override_item("glooptest:pick_alatro", {
original_description = "Alatro Pickaxe",
description = toolranks.create_description("Alatro Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("glooptest:axe_alatro", {
original_description = "Alatro Axe",
description = toolranks.create_description("Alatro Axe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("glooptest:shovel_alatro", {
original_description = "Alatro Shovel",
description = toolranks.create_description("Alatro Shovel", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("glooptest:pick_arol", {
original_description = "Arol Pickaxe",
description = toolranks.create_description("Arol Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("glooptest:axe_arol", {
original_description = "Arol Axe",
description = toolranks.create_description("Arol Axe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("glooptest:shovel_arol", {
original_description = "Arol Shovel",
description = toolranks.create_description("Arol Shovel", 0, 1),
after_use = toolranks.new_afteruse})
end
-- Magma and Ice MP mod support
if minetest.get_modpath("magmatools") then
minetest.override_item("magmatools:pick_magma", {
original_description = "Magma Pickaxe",
description = toolranks.create_description("Magma Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("magmatools:axe_magma", {
original_description = "Magma Axe",
description = toolranks.create_description("Magma Axe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("magmatools:shovel_magma", {
original_description = "Magma Shovel",
description = toolranks.create_description("Magma Shovel", 0, 1),
after_use = toolranks.new_afteruse})
end
if minetest.get_modpath("icetools") then
minetest.override_item("icetools:pick_ice", {
original_description = "Ice Pickaxe",
description = toolranks.create_description("Ice Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("icetools:axe_ice", {
original_description = "Ice Axe",
description = toolranks.create_description("Ice Axe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("icetools:shovel_ice", {
original_description = "Ice Shovel",
description = toolranks.create_description("Ice Shovel", 0, 1),
after_use = toolranks.new_afteruse})
end
if minetest.get_modpath("technic_aluminum") then
minetest.override_item("technic_aluminum:pick_aluminum", {
original_description = "Ice Pickaxe",
description = toolranks.create_description("Aluminum Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("technic_aluminum:axe_aluminum", {
original_description = "Ice Axe",
description = toolranks.create_description("Aluminum Axe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("technic_aluminum:shovel_aluminum", {
original_description = "Ice Shovel",
description = toolranks.create_description("Aluminum Shovel", 0, 1),
after_use = toolranks.new_afteruse})
-- Gemtools Support.
if minetest.get_modpath("gemtools") then
minetest.override_item("gemtools:pick_emerald", {
original_description = "Emerald Pickaxe",
description = toolranks.create_description("Emerald Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("gemtools:pick_ruby", {
original_description = "Ruby Pickaxe",
description = toolranks.create_description("Ruby Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("gemtools:pick_saphire", {
original_description = "Saphire Pickaxe",
description = toolranks.create_description("Saphire Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("gemtools:axe_emerald", {
original_description = "Emerald Axe",
description = toolranks.create_description("Emerald Axe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("gemtools:axe_ruby", {
original_description = "Ruby Axe",
description = toolranks.create_description("Ruby Axe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("gemtools:axe_saphire", {
original_description = "Saphire Axe",
description = toolranks.create_description("Saphire Axe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("gemtools:shovel_emerald", {
original_description = "Emerald Shovel",
description = toolranks.create_description("Emerald Shovel", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("gemtools:shovel_ruby", {
original_description = "Ruby Axe",
description = toolranks.create_description("Ruby Axe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("gemtools:shovel_saphire", {
original_description = "Saphire Shovel",
description = toolranks.create_description("Saphire Shovel", 0, 1),
after_use = toolranks.new_afteruse})
end
-- Gloopblocks support
if minetest.get_modpath("gloopblocks") then
minetest.override_item("gloopblocks:pick_cement", {
original_description = "Ciment Pickaxe",
description = toolranks.create_description("Ciment Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("gloopblocks:pick_evil", {
original_description = "Evil Pickaxe",
description = toolranks.create_description("Evil Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("gloopblocks:axe_cement", {
original_description = "Ciment Pickaxe",
description = toolranks.create_description("Ciment Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("gloopblocks:axe_evil", {
original_description = "Evil Axe",
description = toolranks.create_description("Evil Axe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("gloopblocks:shovel_cement", {
original_description = "Ciment Shovel",
description = toolranks.create_description("Ciment Shovel", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("gloopblocks:shovel_evil", {
original_description = "Evil Shovel",
description = toolranks.create_description("Evil Shovel", 0, 1),
after_use = toolranks.new_afteruse})
end
-- Octu support
if minetest.get_modpath("octu") then
minetest.override_item("octu:pick_octu", {
original_description = "Octu Pickaxe",
description = toolranks.create_description("Octu Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("octu:axe_octu", {
original_description = "Octu Axe",
description = toolranks.create_description("Octu Axe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("octu:shovel_octu", {
original_description = "Octu Shovel",
description = toolranks.create_description("Octu Shovel", 0, 1),
after_use = toolranks.new_afteruse})
end
-- Titanium support
if minetest.get_modpath("titanium") then
minetest.override_item("titanium:pick", {
original_description = "Titanium Pickaxe",
description = toolranks.create_description("Titanium Pickaxe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("titanium:axe", {
original_description = "Titanium Axe",
description = toolranks.create_description("Titanium Axe", 0, 1),
after_use = toolranks.new_afteruse})
minetest.override_item("titanium:shovel", {
original_description = "Titanium Shovel",
description = toolranks.create_description("Titanium Shovel", 0, 1),
after_use = toolranks.new_afteruse})
end
end