forked from Mineclonia/Mineclonia
Add iron/gold nugget recipes
This commit is contained in:
parent
164792e1c0
commit
fea3049954
|
@ -150,44 +150,71 @@ minetest.register_tool("3d_armor:boots_chain", {
|
|||
-- Register Craft Recipies
|
||||
|
||||
local craft_ingreds = {
|
||||
leather = "default:wood",
|
||||
steel = "default:steel_ingot",
|
||||
gold = "default:gold_ingot",
|
||||
diamond = "default:diamond",
|
||||
leather = { "default:wood" },
|
||||
steel = { "default:steel_ingot", "default:iron_nugget" },
|
||||
gold = { "default:gold_ingot", "default:gold_nugget" },
|
||||
diamond = { "default:diamond" },
|
||||
chain = { nil, "default:iron_nugget"} ,
|
||||
}
|
||||
|
||||
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({
|
||||
output = "3d_armor:helmet_"..k,
|
||||
recipe = {
|
||||
{v, v, v},
|
||||
{v, "", v},
|
||||
{m, m, m},
|
||||
{m, "", m},
|
||||
{"", "", ""},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "3d_armor:chestplate_"..k,
|
||||
recipe = {
|
||||
{v, "", v},
|
||||
{v, v, v},
|
||||
{v, v, v},
|
||||
{m, "", m},
|
||||
{m, m, m},
|
||||
{m, m, m},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "3d_armor:leggings_"..k,
|
||||
recipe = {
|
||||
{v, v, v},
|
||||
{v, "", v},
|
||||
{v, "", v},
|
||||
{m, m, m},
|
||||
{m, "", m},
|
||||
{m, "", m},
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "3d_armor:boots_"..k,
|
||||
recipe = {
|
||||
{v, "", v},
|
||||
{v, "", v},
|
||||
{m, "", m},
|
||||
{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
|
||||
|
||||
|
||||
|
|
|
@ -386,6 +386,59 @@ minetest.register_craft({
|
|||
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({
|
||||
output = 'default:sandstone',
|
||||
recipe = {
|
||||
|
|
|
@ -34,6 +34,12 @@ minetest.register_craftitem("default:charcoal_lump", {
|
|||
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", {
|
||||
description = "Gold Nugget",
|
||||
inventory_image = "default_gold_nugget.png",
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 295 B |
|
@ -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", {
|
||||
description = "Gold Hoe",
|
||||
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", {
|
||||
description = "Diamond Hoe",
|
||||
inventory_image = "farming_tool_diamondhoe.png",
|
||||
|
|
Loading…
Reference in New Issue