Add iron/gold nugget recipes

This commit is contained in:
Wuzzy 2017-01-04 10:56:38 +01:00
parent 164792e1c0
commit fea3049954
5 changed files with 135 additions and 37 deletions

View File

@ -150,44 +150,71 @@ minetest.register_tool("3d_armor:boots_chain", {
-- Register Craft Recipies -- Register Craft Recipies
local craft_ingreds = { local craft_ingreds = {
leather = "default:wood", leather = { "default:wood" },
steel = "default:steel_ingot", steel = { "default:steel_ingot", "default:iron_nugget" },
gold = "default:gold_ingot", gold = { "default:gold_ingot", "default:gold_nugget" },
diamond = "default:diamond", diamond = { "default:diamond" },
chain = { nil, "default:iron_nugget"} ,
} }
for k, v in pairs(craft_ingreds) do for k, v in pairs(craft_ingreds) do
-- material
local m = v[1]
-- cooking result
local c = v[2]
if m ~= nil then
minetest.register_craft({ minetest.register_craft({
output = "3d_armor:helmet_"..k, output = "3d_armor:helmet_"..k,
recipe = { recipe = {
{v, v, v}, {m, m, m},
{v, "", v}, {m, "", m},
{"", "", ""}, {"", "", ""},
}, },
}) })
minetest.register_craft({ minetest.register_craft({
output = "3d_armor:chestplate_"..k, output = "3d_armor:chestplate_"..k,
recipe = { recipe = {
{v, "", v}, {m, "", m},
{v, v, v}, {m, m, m},
{v, v, v}, {m, m, m},
}, },
}) })
minetest.register_craft({ minetest.register_craft({
output = "3d_armor:leggings_"..k, output = "3d_armor:leggings_"..k,
recipe = { recipe = {
{v, v, v}, {m, m, m},
{v, "", v}, {m, "", m},
{v, "", v}, {m, "", m},
}, },
}) })
minetest.register_craft({ minetest.register_craft({
output = "3d_armor:boots_"..k, output = "3d_armor:boots_"..k,
recipe = { recipe = {
{v, "", v}, {m, "", m},
{v, "", v}, {m, "", m},
}, },
}) })
end
if c ~= nil then
minetest.register_craft({
type = "cooking",
output = c,
recipe = "3d_armor:helmet_"..k,
})
minetest.register_craft({
type = "cooking",
output = c,
recipe = "3d_armor:chestplate_"..k,
})
minetest.register_craft({
type = "cooking",
output = c,
recipe = "3d_armor:leggings_"..k,
})
minetest.register_craft({
type = "cooking",
output = c,
recipe = "3d_armor:boots_"..k,
})
end
end end

View File

@ -386,6 +386,59 @@ minetest.register_craft({
recipe = {{"default:gold_ingot"}}, recipe = {{"default:gold_ingot"}},
}) })
minetest.register_craft({
output = "default:iron_nugget 9",
recipe = {{"default:steel_ingot"}},
})
minetest.register_craft({
type = "cooking",
output = "default:gold_nugget",
recipe = "default:sword_gold",
})
minetest.register_craft({
type = "cooking",
output = "default:gold_nugget",
recipe = "default:axe_gold",
})
minetest.register_craft({
type = "cooking",
output = "default:gold_nugget",
recipe = "default:shovel_gold",
})
minetest.register_craft({
type = "cooking",
output = "default:gold_nugget",
recipe = "default:pick_gold",
})
minetest.register_craft({
type = "cooking",
output = "default:iron_nugget",
recipe = "default:sword_steel",
})
minetest.register_craft({
type = "cooking",
output = "default:iron_nugget",
recipe = "default:axe_steel",
})
minetest.register_craft({
type = "cooking",
output = "default:iron_nugget",
recipe = "default:shovel_steel",
})
minetest.register_craft({
type = "cooking",
output = "default:iron_nugget",
recipe = "default:pick_steel",
})
minetest.register_craft({ minetest.register_craft({
output = 'default:sandstone', output = 'default:sandstone',
recipe = { recipe = {

View File

@ -34,6 +34,12 @@ minetest.register_craftitem("default:charcoal_lump", {
stack_max = 64, stack_max = 64,
}) })
minetest.register_craftitem("default:iron_nugget", {
description = "Iron Nugget",
inventory_image = "default_iron_nugget.png",
stack_max = 64,
})
minetest.register_craftitem("default:gold_nugget", { minetest.register_craftitem("default:gold_nugget", {
description = "Gold Nugget", description = "Gold Nugget",
inventory_image = "default_gold_nugget.png", inventory_image = "default_gold_nugget.png",

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

View File

@ -81,6 +81,12 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
type = "cooking",
output = "default:iron_nugget",
recipe = "farming:hoe_steel",
})
minetest.register_tool("farming:hoe_gold", { minetest.register_tool("farming:hoe_gold", {
description = "Gold Hoe", description = "Gold Hoe",
inventory_image = "farming_tool_goldhoe.png", inventory_image = "farming_tool_goldhoe.png",
@ -103,6 +109,12 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
type = "cooking",
output = "default:gold_nugget",
recipe = "farming:hoe_gold",
})
minetest.register_tool("farming:hoe_diamond", { minetest.register_tool("farming:hoe_diamond", {
description = "Diamond Hoe", description = "Diamond Hoe",
inventory_image = "farming_tool_diamondhoe.png", inventory_image = "farming_tool_diamondhoe.png",