1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 18:20:36 +01:00

Add toolranks support for nether tools

This commit is contained in:
sys4-fr 2017-12-03 13:29:55 +01:00
parent e97ddeba7b
commit 28baf0bfaf
4 changed files with 117 additions and 22 deletions

View File

@ -20,3 +20,4 @@ doors?
darkage?
dye?
cherry_tree?
nether?

View File

@ -21,7 +21,7 @@ local mods =
"beds", "boats", "bucket",
"nyancat", "moreores", "moreblocks",
"maptools", "doors", "flowers",
"carts"
"carts", "nether"
}
for _,mod in ipairs(mods) do

94
mods/nalc/nether.lua Normal file
View File

@ -0,0 +1,94 @@
-- Nether Toolranks
if minetest.get_modpath("nether") and minetest.get_modpath("toolranks") then
-- Nether Pickaxes
minetest.override_item(
"nether:pick_mushroom",
{
original_description = "Nether Mushroom Pickaxe",
description = toolranks.create_description("Nether Mushroom Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:pick_wood",
{
original_description = "Nether Wood Pickaxe",
description = toolranks.create_description("Nether Wood Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:pick_netherrack",
{
original_description = "Netherrack Pickaxe",
description = toolranks.create_description("Netherrack Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:pick_netherrack_blue",
{
original_description = "Blue Netherrack Pickaxe",
description = toolranks.create_description("Blue Netherrack Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:pick_white",
{
original_description = "Siwtonic Pickaxe",
description = toolranks.create_description("Siwtonic Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
-- Nether Axes
minetest.override_item(
"nether:axe_netherrack",
{
original_description = "Netherrack Axe",
description = toolranks.create_description("Netherrack Axe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:axe_netherrack_blue",
{
original_description = "Blue Netherrack Axe",
description = toolranks.create_description("Blue Netherrack Axe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:axe_white",
{
original_description = "Siwtonic Axe",
description = toolranks.create_description("Siwtonic Axe", 0, 1),
after_use = toolranks.new_afteruse
})
-- Nether Shovels
minetest.override_item(
"nether:shovel_netherrack",
{
original_description = "Netherrack Shovel",
description = toolranks.create_description("Netherrack Shovel", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:shovel_netherrack_blue",
{
original_description = "Blue Netherrack Shovel",
description = toolranks.create_description("Blue Netherrack Shovel", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nether:shovel_white",
{
original_description = "Siwtonic Shovel",
description = toolranks.create_description("Siwtonic Shovel", 0, 1),
after_use = toolranks.new_afteruse
})
end

View File

@ -79,25 +79,25 @@ minetest.register_tool(
-- Toolranks
if minetest.get_modpath("toolranks") then
minetest.override_item(
"nalc:pick_gold",
{
original_description = "Golden Pickaxe",
description = toolranks.create_description("Golden Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nalc:axe_gold",
{
original_description = "Golden Axe",
description = toolranks.create_description("Golden Axe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nalc:shovel_gold",
{
original_description = "Golden Shovel",
description = toolranks.create_description("Golden Shovel", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nalc:pick_gold",
{
original_description = "Golden Pickaxe",
description = toolranks.create_description("Golden Pickaxe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nalc:axe_gold",
{
original_description = "Golden Axe",
description = toolranks.create_description("Golden Axe", 0, 1),
after_use = toolranks.new_afteruse
})
minetest.override_item(
"nalc:shovel_gold",
{
original_description = "Golden Shovel",
description = toolranks.create_description("Golden Shovel", 0, 1),
after_use = toolranks.new_afteruse
})
end