123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478 |
- local tool_repair ={
- {'default:axe_steel', 'default:steel_ingot'},
- {'default:pick_steel', 'default:steel_ingot'},
- {'default:shovel_steel', 'default:steel_ingot'},
- {'default:sword_steel', 'default:steel_ingot'},
- {'farming:hoe_steel', 'default:steel_ingot'},
- {'mobs:shears', 'default:steel_ingot'},
- {'default:axe_bronze', 'default:bronze_ingot'},
- {'default:pick_bronze', 'default:bronze_ingot'},
- {'default:shovel_bronze', 'default:bronze_ingot'},
- {'default:sword_bronze', 'default:bronze_ingot'},
- {'default:axe_mese', 'default:mese_crystal'},
- {'default:pick_mese', 'default:mese_crystal'},
- {'default:shovel_mese', 'default:mese_crystal'},
- {'default:sword_mese', 'default:mese_crystal'},
- {'3d_armor:boots_bronze', 'default:bronze_ingot'},
- {'3d_armor:boots_steel', 'default:steel_ingot'},
- {'3d_armor:boots_gold', 'default:gold_ingot'},
- {'3d_armor:chestplate_bronze', 'default:bronze_ingot'},
- {'3d_armor:chestplate_steel', 'default:steel_ingot'},
- {'3d_armor:chestplate_gold', 'default:gold_ingot'},
- {'3d_armor:helmet_bronze', 'default:bronze_ingot'},
- {'3d_armor:helmet_steel', 'default:steel_ingot'},
- {'3d_armor:helmet_gold', 'default:gold_ingot'},
- {'3d_armor:leggings_bronze', 'default:bronze_ingot'},
- {'3d_armor:leggings_gold', 'default:gold_ingot'},
- {'3d_armor:leggings_steel', 'default:steel_ingot'},
- {'shields:shield_bronze', 'default:bronze_ingot'},
- {'shields:shield_steel', 'default:steel_ingot'},
- {'shields:shield_gold', 'default:gold_ingot'},
- {'castle_weapons:battleaxe', 'default:steel_ingot'},
- {'castle_weapons:crossbow', 'default:steel_ingot'},
- {'stations:hammer', 'default:steel_ingot'},
- {'epic:pick_titanium', 'epic:titanium_ingot'},
- {'epic:shovel_titanium', 'epic:titanium_ingot'},
- {'epic:axe_titanium', 'epic:titanium_ingot'},
- {'epic:sword_titanium', 'epic:titanium_ingot'},
- {'epic:helmet_titanium', 'epic:titanium_ingot'},
- {'epic:boots_titanium', 'epic:titanium_ingot'},
- {'epic:chestplate_titanium', 'epic:titanium_ingot'},
- {'epic:leggings_titanium', 'epic:titanium_ingot'},
- {'epic:shield_titanium', 'epic:titanium_ingot'},
- {'epic:shovel_soft', 'default:tin_ingot'},
- {'farming:scythe', 'epic:titanium_ingot'},
- {'torch_bomb:torch_crossbow_steel', 'default:steel_ingot'},
- {'torch_bomb:torch_crossbow_bronze', 'default:bronze_ingot'}
- }
- for i in ipairs (tool_repair) do
- local tool = tool_repair[i][1]
- local material = tool_repair[i][2]
- -- no stations.dual_register_recipe() to ignore registering repair recipes...
- --
- simplecrafting_lib.register('anvil', {
- input = {
- [tool] = 1,
- [material] = 1,
- },
- output = tool,
- })
- end
- --Steel Tools
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:steel_ingot'] = 3,
- ['group:stick'] = 1,
- },
- output = 'default:pick_steel',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:steel_ingot'] = 3,
- ['group:stick'] = 1,
- },
- output = 'default:axe_steel',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:steel_ingot'] = 1,
- ['default:stick'] = 2,
- },
- output = 'default:shovel_steel',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:steel_ingot'] = 3,
- },
- output = 'default:sword_steel',
- })
- --Bronze tools
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:bronze_ingot'] = 3,
- ['group:stick'] = 1,
- },
- output = 'default:pick_bronze',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:bronze_ingot'] = 3,
- ['group:stick'] = 1,
- },
- output = 'default:axe_bronze',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:bronze_ingot'] = 1,
- ['group:stick'] = 2,
- },
- output = 'default:shovel_bronze',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:bronze_ingot'] = 3,
- },
- output = 'default:sword_bronze',
- })
- --Mese tools
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:mese_crystal'] = 3,
- ['group:stick'] = 1,
- },
- output = 'default:pick_mese',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:mese_crystal'] = 3,
- ['group:stick'] = 1,
- },
- output = 'default:axe_mese',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:mese_crystal'] = 1,
- ['group:stick'] = 2,
- },
- output = 'default:shovel_mese',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:mese_crystal'] = 3,
- },
- output = 'default:sword_mese',
- })
- --Titanium tools
- stations.dual_register_recipe('anvil', {
- input = {
- ['epic:titanium_ingot'] = 3,
- ['darkage:iron_stick'] = 1,
- },
- output = 'epic:pick_titanium',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['epic:titanium_ingot'] = 1,
- ['darkage:iron_stick'] = 2,
- },
- output = 'epic:shovel_titanium',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['epic:titanium_ingot'] = 3,
- ['darkage:iron_stick'] = 1,
- },
- output = 'epic:axe_titanium',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['epic:titanium_ingot'] = 3,
- },
- output = 'epic:sword_titanium',
- })
- --Misc
- stations.dual_register_recipe('anvil', {
- input = {
- ['ropes:ropesegment'] = 1,
- ['default:steel_ingot'] = 2,
- },
- output = 'epic:sign_post_metal',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['ocean:prismarine_crystals'] = 1,
- ['epic:bloodstone'] = 1,
- ['default:steel_ingot'] = 1,
- },
- output = 'furniture:lantern_ceiling',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:tin_ingot'] = 3,
- ['darkage:iron_stick'] = 2,
- },
- output = 'epic:shovel_soft',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:steel_ingot'] = 6,
- },
- output = 'castle_weapons:battleaxe',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['epic:titanium_ingot'] = 2,
- ['group:stick'] = 1,
- },
- output = 'farming:scythe',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:steel_ingot'] = 4,
- ['default:tin_ingot'] = 1,
- },
- output = 'stations:stain',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:steel_ingot'] = 1,
- },
- output = 'epic:arrow_tip 20',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:steel_ingot'] = 1,
- },
- output = 'mobs:horseshoe_steel',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:bronze_ingot'] = 1,
- },
- output = 'mobs:horseshoe_bronze',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:mese_crystal'] = 1,
- },
- output = 'mobs:horseshoe_mese',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:steel_ingot'] = 2,
- },
- output = 'scaffolding:scaffolding_wrench',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['epic:lead_lump'] = 1,
- },
- output = 'epic:lead_wire 10',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:steel_ingot'] = 1,
- },
- output = 'furniture:hinge 10',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:steel_ingot'] = 1,
- },
- output = 'furniture:lock',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:steel_ingot'] = 2,
- },
- output = 'default:sign_wall_steel',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:diamondblock'] = 1,
- ['default:goldblock'] = 1,
- ['epic:titanium_ingot'] = 1,
- ['epic:glowingdiamond'] = 1,
- },
- output = 'filler:filler',
- })
- --3d_Armor recipes
- local armor_material = {
- steel = 'default:steel_ingot',
- bronze = 'default:bronze_ingot',
- gold = 'default:gold_ingot',
- titanium = 'epic:titanium_ingot',
- }
- for name, mat in pairs(armor_material) do
- stations.dual_register_recipe('anvil', {
- input = {
- [mat] = 5,
- ['mobs:leather'] = 1,
- },
- output = '3d_armor:helmet_'..name,
- })
- stations.dual_register_recipe('anvil', {
- input = {
- [mat] = 8,
- ['mobs:leather'] = 1,
- },
- output = '3d_armor:chestplate_'..name,
- })
- stations.dual_register_recipe('anvil', {
- input = {
- [mat] = 7,
- ['mobs:leather'] = 1,
- },
- output = '3d_armor:leggings_'..name,
- })
- stations.dual_register_recipe('anvil', {
- input = {
- [mat] = 4,
- ['mobs:leather'] = 1,
- },
- output = '3d_armor:boots_'..name,
- })
- stations.dual_register_recipe('anvil', {
- input = {
- [mat] = 7,
- },
- output = 'shields:shield_'..name,
- })
- end
- --Armor recipes
- local armor_material = {
- titanium = 'epic:titanium_ingot',
- }
- for name, mat in pairs(armor_material) do
- stations.dual_register_recipe('anvil', {
- input = {
- [mat] = 5,
- ['mobs:leather'] = 1,
- },
- output = 'epic:helmet_'..name,
- })
- stations.dual_register_recipe('anvil', {
- input = {
- [mat] = 8,
- ['mobs:leather'] = 1,
- },
- output = 'epic:chestplate_'..name,
- })
- stations.dual_register_recipe('anvil', {
- input = {
- [mat] = 7,
- ['mobs:leather'] = 1,
- },
- output = 'epic:leggings_'..name,
- })
- stations.dual_register_recipe('anvil', {
- input = {
- [mat] = 4,
- ['mobs:leather'] = 1,
- },
- output = 'epic:boots_'..name,
- })
- stations.dual_register_recipe('anvil', {
- input = {
- [mat] = 7,
- },
- output = 'epic:shield_'..name,
- })
- end
- --[[ only needed once I find out how to use the fuel stuff.
- stations.dual_register_recipe('anvil_fuel', {
- input = {['default:coal_lump'] = 1},
- output = 'simplecrafting_lib:heat 20',
- })
- stations.dual_register_recipe('anvil_fuel', {
- input = {['default:coalblock'] = 1},
- output = 'simplecrafting_lib:heat 180',
- })
- stations.dual_register_recipe('anvil_fuel', {
- input = {['charcoal:charcoal'] = 1},
- output = 'simplecrafting_lib:heat 15',
- })
- stations.dual_register_recipe('anvil_fuel', {
- input = {['charcoal:charcoal_block'] = 1},
- output = 'simplecrafting_lib:heat 135',
- })
- --]]
- --shapes
- stations.dual_register_recipe('anvil', {
- input = {
- ['default:gold_ingot'] = 1,
- },
- output = 'shapes:gold_triangle_0',
- })
- --Hoppers
- stations.dual_register_recipe('anvil', {
- input = {
- ['epic:titanium_ingot'] = 2,
- ['default:gold_ingot'] = 1,
- ['default:steel_ingot'] = 1,
- },
- output = 'hopper:chute',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['epic:titanium_ingot'] = 5,
- ['default:gold_ingot'] = 1,
- ['default:steel_ingot'] = 1,
- },
- output = 'hopper:hopper',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['epic:titanium_ingot'] = 2,
- ['default:gold_ingot'] = 1,
- ['default:steel_ingot'] = 1,
- ['default:mese'] = 1,
- },
- output = 'hopper:sorter',
- })
- stations.dual_register_recipe('anvil', {
- input = {
- ['epic:titanium_ingot'] = 2,
- ['default:gold_ingot'] = 1,
- ['default:steel_ingot'] = 1,
- ['stations:hammer'] = 1,
- },
- output = 'hopper:trash',
- })
|