[rp] Crafting recipes for tools to use the same amounts as default tools
This commit is contained in:
parent
d4b5fb3aba
commit
447c26d9a5
44
tools.lua
44
tools.lua
@ -26,6 +26,16 @@ minetest.register_tool("drwho_tardis:pick_dalek", {
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
groups = {pickaxe = 1}
|
||||
})
|
||||
if _drwho_tardis.GAMETYPE == "rp" then
|
||||
crafting.register_craft({
|
||||
output = "drwho_tardis:pick_dalek",
|
||||
items = {
|
||||
"drwho_tardis:dalekanium_ingot 3",
|
||||
"rp_default:fiber 4",
|
||||
i.stick.." 3",
|
||||
}
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
output = "drwho_tardis:pick_dalek",
|
||||
recipe = {
|
||||
@ -34,6 +44,7 @@ minetest.register_craft({
|
||||
{"", i.stick, ""}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Shovel
|
||||
minetest.register_tool("drwho_tardis:shovel_dalek", {
|
||||
@ -50,6 +61,16 @@ minetest.register_tool("drwho_tardis:shovel_dalek", {
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
groups = {shovel = 1}
|
||||
})
|
||||
if _drwho_tardis.GAMETYPE == "rp" then
|
||||
crafting.register_craft({
|
||||
output = "drwho_tardis:shovel_dalek",
|
||||
items = {
|
||||
"drwho_tardis:dalekanium_ingot 3",
|
||||
"rp_default:fiber 4",
|
||||
i.stick.." 3",
|
||||
}
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
output = "drwho_tardis:shovel_dalek",
|
||||
recipe = {
|
||||
@ -58,6 +79,7 @@ minetest.register_craft({
|
||||
{i.stick}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Axe
|
||||
minetest.register_tool("drwho_tardis:axe_dalek", {
|
||||
@ -74,6 +96,16 @@ minetest.register_tool("drwho_tardis:axe_dalek", {
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
groups = {axe = 1}
|
||||
})
|
||||
if _drwho_tardis.GAMETYPE == "rp" then
|
||||
crafting.register_craft({
|
||||
output = "drwho_tardis:axe_dalek",
|
||||
items = {
|
||||
"drwho_tardis:dalekanium_ingot 3",
|
||||
"rp_default:fiber 4",
|
||||
i.stick.." 3",
|
||||
}
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
output = "drwho_tardis:axe_dalek",
|
||||
recipe = {
|
||||
@ -82,6 +114,7 @@ minetest.register_craft({
|
||||
{"", i.stick, ""}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Sword
|
||||
minetest.register_tool("drwho_tardis:sword_dalek", {
|
||||
@ -98,6 +131,16 @@ minetest.register_tool("drwho_tardis:sword_dalek", {
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
groups = {sword = 1}
|
||||
})
|
||||
if _drwho_tardis.GAMETYPE == "rp" then
|
||||
crafting.register_craft({
|
||||
output = "drwho_tardis:sword_dalek",
|
||||
items = {
|
||||
"drwho_tardis:dalekanium_ingot 3",
|
||||
"rp_default:fiber 4",
|
||||
i.stick.." 3",
|
||||
}
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
output = "drwho_tardis:sword_dalek",
|
||||
recipe = {
|
||||
@ -106,6 +149,7 @@ minetest.register_craft({
|
||||
{i.stick}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- Toolranks support
|
||||
if minetest.get_modpath("toolranks") then
|
||||
|
Loading…
x
Reference in New Issue
Block a user