2018-04-18 22:49:22 +00:00
|
|
|
local full_ores = {
|
2020-03-13 21:58:42 +00:00
|
|
|
diamond = "default:diamond",
|
|
|
|
mese = "default:mese_crystal",
|
2021-01-06 20:57:55 +00:00
|
|
|
--bronze = "default:bronze_ingot",
|
2020-03-13 21:58:42 +00:00
|
|
|
steel = "default:steel_ingot",
|
|
|
|
stone = "default:cobble",
|
|
|
|
}
|
|
|
|
|
2020-08-26 21:37:23 +00:00
|
|
|
local sword_materials = {
|
2020-10-13 15:42:41 +00:00
|
|
|
steel = "default:steel_ingot",
|
2020-08-26 21:37:23 +00:00
|
|
|
diamond = "default:diamond",
|
2021-02-07 20:53:20 +00:00
|
|
|
mese = "default:mese_crystal",
|
2018-04-18 22:30:38 +00:00
|
|
|
}
|
|
|
|
|
2021-02-07 20:53:20 +00:00
|
|
|
-- Rocket <== Gold ingot x5 + Coal lump x4
|
2020-03-14 22:48:50 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "shooter_rocket:rocket",
|
2021-02-07 20:53:20 +00:00
|
|
|
items = { "default:gold_ingot 5", "default:coal_lump 4" },
|
2020-03-14 22:48:50 +00:00
|
|
|
always_known = false,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2021-02-07 20:53:20 +00:00
|
|
|
-- Rocket <== Mese x1 + Coal lump x4
|
2020-03-14 22:48:50 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "shooter_rocket:rocket",
|
2021-02-07 20:53:20 +00:00
|
|
|
items = { "default:mese 1", "default:coal_lump 4" },
|
2020-03-14 22:48:50 +00:00
|
|
|
always_known = false,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2019-01-11 11:14:31 +00:00
|
|
|
-- Swords
|
2020-08-26 21:37:23 +00:00
|
|
|
for material, craft_material in pairs(sword_materials) do
|
2018-04-18 22:30:38 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
2020-08-26 21:37:23 +00:00
|
|
|
output = "default:sword_" .. material,
|
|
|
|
items = { "default:stick", craft_material .. " 2" },
|
2018-04-18 22:30:38 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
end
|
2018-04-18 22:49:22 +00:00
|
|
|
|
2019-01-11 11:14:31 +00:00
|
|
|
-- Pickaxes
|
2020-03-13 21:58:42 +00:00
|
|
|
for ore, ore_item in pairs(full_ores) do
|
2018-04-18 22:49:22 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
2020-03-13 21:58:42 +00:00
|
|
|
output = "default:pick_" .. ore,
|
|
|
|
items = { "default:stick 2", ore_item .. " 3" },
|
2018-04-18 22:49:22 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
end
|
2018-04-18 22:30:38 +00:00
|
|
|
|
2021-02-07 20:53:20 +00:00
|
|
|
--Mese block <== Mese crystal x9
|
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "default:mese",
|
|
|
|
items = { "default:mese_crystal 9" },
|
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2019-01-11 11:14:31 +00:00
|
|
|
-- Mese crystal x9 <== Mese block
|
2018-04-18 23:45:21 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "default:mese_crystal 9",
|
2021-02-07 20:53:20 +00:00
|
|
|
items = { "default:mese" },
|
2018-04-18 23:45:21 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2019-02-28 03:48:50 +00:00
|
|
|
-- Furnace <== group:stone x8
|
2018-04-18 22:30:38 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "default:furnace",
|
2019-02-28 03:48:50 +00:00
|
|
|
items = { "group:stone 8" },
|
2019-01-09 13:44:42 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2019-01-11 11:14:31 +00:00
|
|
|
-- Team door
|
2018-04-18 22:30:38 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "doors:door_steel",
|
2018-04-22 11:05:05 +00:00
|
|
|
items = { "default:steel_ingot 6" },
|
2018-04-18 22:30:38 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2019-10-28 18:03:48 +00:00
|
|
|
-- Reinforced Cobblestone
|
2019-03-05 13:08:14 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
2021-01-06 20:57:55 +00:00
|
|
|
output = "ctf_map:reinforced_cobble 2",
|
|
|
|
items = { "default:cobble 6", "default:steel_ingot" },
|
2019-03-05 13:08:14 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2019-03-19 16:54:43 +00:00
|
|
|
-- Wood x4
|
2018-04-18 22:30:38 +00:00
|
|
|
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,
|
|
|
|
})
|
|
|
|
|
2019-01-11 11:14:31 +00:00
|
|
|
-- Stick x4
|
2018-04-18 22:30:38 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "default:stick 4",
|
2021-02-04 14:30:01 +00:00
|
|
|
items = { "group:wood" },
|
2018-04-18 22:49:22 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2019-01-11 11:14:31 +00:00
|
|
|
-- Torch x5
|
2018-04-18 22:49:22 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "default:torch 5",
|
2018-08-03 13:25:09 +00:00
|
|
|
items = { "default:stick", "default:coal_lump" },
|
2018-04-18 22:49:22 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2019-01-11 11:14:31 +00:00
|
|
|
-- Ammo <== Tin ingot x3 + Coal lump x2
|
2018-04-18 22:49:22 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
2019-01-11 11:14:31 +00:00
|
|
|
output = "shooter:ammo",
|
2021-01-06 20:57:55 +00:00
|
|
|
items = { "default:tin_ingot 2", "default:coal_lump" },
|
2018-08-03 13:25:09 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2019-01-11 11:14:31 +00:00
|
|
|
-- Ammo <== Steel ingot x3 + Coal lump x2
|
2018-08-03 13:25:09 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
2021-01-06 20:57:55 +00:00
|
|
|
output = "shooter:ammo 2",
|
|
|
|
items = { "default:steel_ingot 2", "default:coal_lump 2" },
|
2018-08-03 13:25:09 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2020-04-22 02:01:27 +00:00
|
|
|
-- 7.62mm sniper rifle (unloaded)
|
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "sniper_rifles:rifle_762",
|
2021-02-04 14:30:01 +00:00
|
|
|
items = { "default:steel_ingot 10", "default:mese_crystal", "group:wood 2" },
|
2020-10-12 15:01:23 +00:00
|
|
|
always_known = false,
|
2020-04-22 02:01:27 +00:00
|
|
|
level = 1
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Magnum sniper rifle (unloaded)
|
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "sniper_rifles:rifle_magnum",
|
2021-02-04 14:30:01 +00:00
|
|
|
items = { "default:steel_ingot 10", "default:coal_lump 5", "default:diamond", "group:wood 2" },
|
2020-10-12 15:01:23 +00:00
|
|
|
always_known = false,
|
2020-04-22 02:01:27 +00:00
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2019-01-11 11:14:31 +00:00
|
|
|
-- Wooden ladder x4
|
2018-08-03 13:25:09 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
2019-01-11 11:14:31 +00:00
|
|
|
output = "default:ladder 4",
|
|
|
|
items = { "default:stick 8" },
|
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Stick x2 <== Wooden ladder
|
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "default:stick 2",
|
|
|
|
items = { "default:ladder" },
|
2018-08-03 13:25:09 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2019-10-28 18:03:48 +00:00
|
|
|
-- Traps
|
2018-12-12 17:57:34 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "ctf_traps:spike 1",
|
2021-01-06 20:57:55 +00:00
|
|
|
items = { "default:steel_ingot 4" },
|
2018-12-12 17:57:34 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
2021-02-04 14:30:01 +00:00
|
|
|
output = "ctf_traps:dirt 5",
|
2018-12-12 17:57:34 +00:00
|
|
|
items = { "default:dirt 5", "default:coal_lump" },
|
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
2021-02-04 14:30:01 +00:00
|
|
|
output = "ctf_traps:cobble 4",
|
2021-01-06 20:57:55 +00:00
|
|
|
items = { "default:cobble 4", "default:coal_lump" },
|
2018-12-12 17:57:34 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "ctf_traps:stone 1",
|
|
|
|
items = { "default:stone 5", "default:coal_lump" },
|
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
2021-01-06 20:57:55 +00:00
|
|
|
output = "ctf_traps:damage_cobble",
|
|
|
|
items = { "ctf_traps:cobble", "ctf_traps:spike" },
|
2018-12-12 17:57:34 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
2019-03-19 16:54:43 +00:00
|
|
|
|
|
|
|
-- Shovels
|
2020-03-13 21:58:42 +00:00
|
|
|
for ore, ore_item in pairs(full_ores) do
|
2020-10-13 23:23:09 +00:00
|
|
|
local show = true
|
|
|
|
if ore == "diamond" or ore == "mese" or ore == "bronze" then
|
|
|
|
show = false
|
|
|
|
end
|
|
|
|
|
2019-03-19 16:54:43 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
2020-03-13 21:58:42 +00:00
|
|
|
output = "default:shovel_" .. ore,
|
|
|
|
items = { "default:stick 2", ore_item },
|
2020-10-13 23:23:09 +00:00
|
|
|
always_known = show,
|
2019-03-19 16:54:43 +00:00
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Axes
|
2020-03-13 21:58:42 +00:00
|
|
|
for ore, ore_item in pairs(full_ores) do
|
2020-10-13 23:23:09 +00:00
|
|
|
local show = true
|
|
|
|
if ore == "diamond" or ore == "mese" or ore == "bronze" then
|
|
|
|
show = false
|
|
|
|
end
|
|
|
|
|
2019-03-19 16:54:43 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
2020-03-13 21:58:42 +00:00
|
|
|
output = "default:axe_" .. ore,
|
2020-10-13 23:23:09 +00:00
|
|
|
items = { "default:stick 2", ore_item},
|
|
|
|
always_known = show,
|
2019-03-19 16:54:43 +00:00
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
end
|
2020-05-05 17:30:47 +00:00
|
|
|
|
|
|
|
--
|
|
|
|
--- Grenade Crafts
|
|
|
|
--
|
|
|
|
|
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "grenades:frag 1",
|
2021-02-04 14:30:01 +00:00
|
|
|
items = { "default:steel_ingot 5", "default:iron_lump", "group:wood", "default:coal_lump",},
|
2020-05-05 17:30:47 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
2020-10-26 21:24:03 +00:00
|
|
|
-- crafting.register_recipe({
|
|
|
|
-- type = "inv",
|
|
|
|
-- output = "grenades:frag_sticky 1",
|
|
|
|
-- items = { "grenades:frag", "default:stick 4" },
|
|
|
|
-- always_known = true,
|
|
|
|
-- level = 1,
|
|
|
|
-- })
|
2020-09-13 03:10:40 +00:00
|
|
|
|
2020-05-05 17:30:47 +00:00
|
|
|
crafting.register_recipe({
|
|
|
|
type = "inv",
|
|
|
|
output = "grenades:smoke 1",
|
2021-02-04 14:30:01 +00:00
|
|
|
items = { "default:steel_ingot 5", "default:coal_lump 5", "group:wood" },
|
2020-05-05 17:30:47 +00:00
|
|
|
always_known = true,
|
|
|
|
level = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- crafting.register_recipe({
|
|
|
|
-- type = "inv",
|
|
|
|
-- output = "grenades:flashbang 1",
|
|
|
|
-- items = { "default:steel_ingot 5", "default:torch 5" },
|
|
|
|
-- always_known = true,
|
|
|
|
-- level = 1,
|
|
|
|
-- })
|