90 lines
2.8 KiB
Lua
90 lines
2.8 KiB
Lua
local shared = ...
|
|
local S = shared.S
|
|
|
|
local crafting_tabe = assert(loadfile(core.get_modpath(core.get_current_modname()) .. "/workbench.lua"))(
|
|
S("Power Workbench"),
|
|
{"powerguns_crafting_table_top.png",
|
|
"powerguns_generator_bottom.png",
|
|
"powerguns_crafting_table_side.png",}
|
|
)
|
|
|
|
crafting_tabe.register_craft({
|
|
output = "powerguns:gunsteel_ingot",
|
|
recipe = {
|
|
{"default:steel_ingot", "default:tin_ingot", "default:coal_lump"},
|
|
}
|
|
},true)
|
|
|
|
crafting_tabe.register_craft({
|
|
output = "powerguns:ultra_gunsteel_ingot",
|
|
recipe = {
|
|
{"default:mese_crystal"},
|
|
{"default:gold_ingot", "powerguns:gunsteel_ingot", "default:gold_ingot"},
|
|
{"default:diamond"},
|
|
}
|
|
},true)
|
|
|
|
crafting_tabe.register_craft({
|
|
output = "powerguns:gun_power_core",
|
|
recipe = {
|
|
{"powerguns:gunsteel_ingot", "default:goldblock", "powerguns:gunsteel_ingot"},
|
|
{"default:diamondblock", "default:mese", "default:diamondblock"},
|
|
{"powerguns:gunsteel_ingot", "default:goldblock", "powerguns:gunsteel_ingot"},
|
|
}
|
|
},true)
|
|
|
|
crafting_tabe.register_craft({
|
|
output = "powerguns:pistol",
|
|
recipe = {
|
|
{"default:steel_ingot", "powerguns:gun_power_core", "default:steel_ingot"},
|
|
{"powerguns:gunsteel_ingot", "powerguns:gunsteel_ingot", "powerguns:gunsteel_ingot"},
|
|
{"default:mese_crystal_fragment", "default:steel_ingot"},
|
|
}
|
|
})
|
|
|
|
crafting_tabe.register_craft({
|
|
output = "powerguns:forcegun",
|
|
recipe = {
|
|
{"powerguns:gunsteel_ingot", "default:diamondblock", "default:mese"},
|
|
{"powerguns:gunsteel_ingot", "powerguns:gunsteel_ingot", "powerguns:gunsteel_ingot"},
|
|
{"powerguns:gun_power_core", "default:steel_ingot"},
|
|
}
|
|
})
|
|
|
|
crafting_tabe.register_craft({
|
|
output = "powerguns:rifle",
|
|
recipe = {
|
|
{"powerguns:ultra_gunsteel_ingot", "powerguns:gun_power_core", "powerguns:ultra_gunsteel_ingot"},
|
|
{"powerguns:gun_power_core", "powerguns:ultra_gunsteel_ingot", "default:gold_ingot"},
|
|
{"default:gold_ingot", "default:mese", "powerguns:ultra_gunsteel_ingot"},
|
|
}
|
|
})
|
|
|
|
crafting_tabe.register_craft({
|
|
output = "powerguns:shotgun",
|
|
recipe = {
|
|
{"powerguns:ultra_gunsteel_ingot", "powerguns:gun_power_core", "powerguns:ultra_gunsteel_ingot"},
|
|
{"powerguns:gun_power_core", "powerguns:gun_power_core", "powerguns:ultra_gunsteel_ingot"},
|
|
{"powerguns:ultra_gunsteel_ingot", "powerguns:ultra_gunsteel_ingot"},
|
|
}
|
|
})
|
|
|
|
crafting_tabe.register_craft({
|
|
output = "powerguns:generator",
|
|
recipe = {
|
|
{"default:gold_ingot", "default:gold_ingot", "default:gold_ingot"},
|
|
{"powerguns:gunsteel_ingot", "powerguns:gun_power_core", "powerguns:gunsteel_ingot"},
|
|
{"powerguns:gunsteel_ingot", "powerguns:gunsteel_ingot", "powerguns:gunsteel_ingot"},
|
|
}
|
|
})
|
|
|
|
core.register_craft({
|
|
output = "powerguns:workbench",
|
|
recipe = {
|
|
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
|
{"default:steel_ingot", "default:diamondblock", "default:steel_ingot"},
|
|
{"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
|
|
}
|
|
})
|
|
|