capturetheflag/mods/ctf_crafting/init.lua

114 lines
2.3 KiB
Lua
Raw Normal View History

2018-04-18 22:49:22 +00:00
local full_ores = {
2018-04-18 22:30:38 +00:00
{"stone", "default:cobble"},
{"steel", "default:steel_ingot"},
{"bronze", "default:bronze_ingot"},
{"mese", "default:mese_crystal"},
{"diamond", "default:diamond"},
}
local lim_ores = {
{"stone", "default:cobble"},
{"steel", "default:steel_ingot"},
}
2018-04-18 22:49:22 +00:00
for _, orex in pairs(full_ores) do
2018-04-18 22:30:38 +00:00
crafting.register_recipe({
type = "inv",
output = "default:sword_" .. orex[1],
items = { "default:stick", orex[2] .. " 2" },
always_known = true,
level = 1,
})
end
2018-04-18 22:49:22 +00:00
crafting.register_recipe({
type = "inv",
output = "shooter:arrow_white 5",
items = { "default:stick 5", "default:cobble" },
always_known = true,
level = 1,
})
for _, orex in pairs(full_ores) do
crafting.register_recipe({
type = "inv",
output = "default:pick_" .. orex[1],
items = { "default:stick 2", orex[2] .. " 3" },
always_known = true,
level = 1,
})
end
2018-04-18 22:30:38 +00:00
for _, orex in pairs(lim_ores) do
crafting.register_recipe({
type = "inv",
output = "default:shovel_" .. orex[1],
items = { "default:stick 2", orex[2] },
always_known = true,
level = 1,
})
end
for _, orex in pairs(lim_ores) do
crafting.register_recipe({
type = "inv",
output = "default:axe_" .. orex[1],
items = { "default:stick 2", orex[2] .. " 2" },
always_known = true,
level = 1,
})
end
2018-04-18 23:45:21 +00:00
crafting.register_recipe({
type = "inv",
output = "default:mese_crystal 9",
items = { "default:mese"},
always_known = true,
level = 1,
})
2018-04-18 22:30:38 +00:00
crafting.register_recipe({
type = "inv",
output = "default:furnace",
items = { "default:cobble 10" },
always_known = true,
level = 1,
})
crafting.register_recipe({
type = "inv",
output = "doors:door_steel",
2018-04-18 22:49:22 +00:00
items = { "default:steel 6" },
2018-04-18 22:30:38 +00:00
always_known = true,
level = 1,
})
crafting.register_recipe({
type = "inv",
output = "default:wood 4",
2018-04-18 22:49:22 +00:00
items = { "group:tree" },
2018-04-18 22:30:38 +00:00
always_known = true,
level = 1,
})
crafting.register_recipe({
type = "inv",
output = "default:stick 4",
2018-04-18 22:49:22 +00:00
items = { "default:wood" },
always_known = true,
level = 1,
})
crafting.register_recipe({
type = "inv",
output = "default:torch 5",
items = { "default:stick", "default:coal_lump"},
always_known = true,
level = 1,
})
crafting.register_recipe({
type = "inv",
output = "default:ladder 5",
items = { "group:wood 7"},
2018-04-18 22:30:38 +00:00
always_known = true,
level = 1,
})