From 7338c0902a8fda0d32f49269f5589f16dab45e49 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Sat, 15 Oct 2022 15:12:01 +0200 Subject: [PATCH] feat: add crafttweaker recipes --- overrides/contentScripts/ae2.zs | 20 ++++++ .../resources/contenttweaker/lang/en_US.lang | 3 + .../calculation_processor_assembly_item.png | Bin 0 -> 5425 bytes .../engineering_processor_assembly_item.png | Bin 0 -> 433 bytes .../items/logic_processor_assembly_item.png | Bin 0 -> 439 bytes overrides/scripts/ae2.zs | 63 ++++++++++++++++++ overrides/scripts/ic2.zs | 39 +++++++++++ overrides/scripts/mekanism.zs | 22 ++++++ 8 files changed, 147 insertions(+) create mode 100644 overrides/contentScripts/ae2.zs create mode 100644 overrides/resources/contenttweaker/lang/en_US.lang create mode 100644 overrides/resources/contenttweaker/textures/items/calculation_processor_assembly_item.png create mode 100644 overrides/resources/contenttweaker/textures/items/engineering_processor_assembly_item.png create mode 100644 overrides/resources/contenttweaker/textures/items/logic_processor_assembly_item.png create mode 100644 overrides/scripts/ae2.zs create mode 100644 overrides/scripts/ic2.zs create mode 100644 overrides/scripts/mekanism.zs diff --git a/overrides/contentScripts/ae2.zs b/overrides/contentScripts/ae2.zs new file mode 100644 index 0000000..5e65588 --- /dev/null +++ b/overrides/contentScripts/ae2.zs @@ -0,0 +1,20 @@ +import mods.content.Item; + +Item.registerItem( + "Calculation Processor Assembly", + "calculation_processor_assembly", + "calculation_processor_assembly_item" +); + +Item.registerItem( + "Engineering Processor Assembly", + "engineering_processor_assembly", + "engineering_processor_assembly_item" +); + +Item.registerItem( + "Logic Processor Assembly", + "logic_processor_assembly", + "logic_processor_assembly_item" +); + diff --git a/overrides/resources/contenttweaker/lang/en_US.lang b/overrides/resources/contenttweaker/lang/en_US.lang new file mode 100644 index 0000000..2fef068 --- /dev/null +++ b/overrides/resources/contenttweaker/lang/en_US.lang @@ -0,0 +1,3 @@ +item.calculation_processor_assembly.name=Calculation Processor Assembly +item.engineering_processor_assembly.name=Engineering Processor Assembly +item.logic_processor_assembly.name=Logic Processor Assembly diff --git a/overrides/resources/contenttweaker/textures/items/calculation_processor_assembly_item.png b/overrides/resources/contenttweaker/textures/items/calculation_processor_assembly_item.png new file mode 100644 index 0000000000000000000000000000000000000000..f85c5df4287c6e94068be8c9911715b274e7e3b6 GIT binary patch literal 5425 zcmeHLdo)yQ8y}GnN{8-!#&kK6x!)&)$xOM8>x8b_vu6(zb1^fnU8o#|t_P`eJ>QMw!opKs4lX?qF7imqXsmwU)NHPqYZ<%g7i7-JyM9^ZV-!lk zy33F2yJq5HpV)97T=#MFr}-)MOj=G|LTejV2etfWfPc_SUwNd}s<*S4;b2wwR`*oj zjB`B?(0El;^D<5F^iu=HU-tJ+kb@X>pTt;Bf2aXu0d_;zxT-{v?;~ zk7aDKej_+;f~Ys8*S)LwXuLSW(9h;c_1w?}h^O;YdY70T#oHN}S}@Pc`-g7G`)jh~1?B(d}I&RDjz+g;}Uht;;E$2+9fgO3MWynK!LX}$IhW?AJYZu^+K zKdUg6*x1v9K+Wn88BAQ;`GH0;BWvlESyt33E8pU}{MK*o4{0CXu)EN>*ydHGUXT&@ zoKdAfVx6wNe5g6CM)yr{$@&Cu?HvU7RHp?R&AHCTefu1*{oJ6>VHMp^Yr15BKov~a z>YSw?Mb0)b9ZqL=GowgT6O9-_X%n=Ib;w!{8Ufm^Gr3Iz?BP?6%cd@^a<9D>yrh#{9@qDlQ9XwK2mgr7kU}^c$Q->GcjGcDO z-!aZ1Au~}PQ?Gw>mapI9r)y8jbUABdIq^w6Ip@<|x6I0{dmFO~-8*AGHSimS=!>me zR#<$vop~dtEuuRdc~85@C}uZJ*=#?*JzKoGy{&!2E$RI~1sg58Z_UogO4hZx8S7kU zJF~E(w7^Ag|7{X|Y3)wigu?2U13IUd>9A^^W`C@nIa9waK|eC+xj&w9c+j<&Zs1zn z;Cfh*a9K*|PtD)w6QG!r^)nb?;^H=?vU`WiqU)xAW%ZvKd{q(pa3t2O*V!*0`P#)j zb?`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@yQ)vJI literal 0 HcmV?d00001 diff --git a/overrides/resources/contenttweaker/textures/items/engineering_processor_assembly_item.png b/overrides/resources/contenttweaker/textures/items/engineering_processor_assembly_item.png new file mode 100644 index 0000000000000000000000000000000000000000..843406f6a6de05eaec247283186e358d6638c950 GIT binary patch literal 433 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPF2I63vF#XknBXDkWw3ubV5b|VeMN%D4gVd!9$ z^#F1>3p^r=85sDMfiPqHot61O!B9^Z#}JO|$q5ITBv@Hl5AZmqraNwESh0GQvWG{& z+BIuLR8(@_U7YlUBZXsSY1Y&{mTr^Gr5a5xclJzcaAi4s`SN6kE=kuWC#HjHTzNND zI2OC7#SEE>lzsA8XAQdSXdbwTNzsD z8kkxc7+iBbxgSMCZhlH;S|zduBV#LL6DtE#h=zA^1zJE2QXm_G^V3So6N^$A0unRx hO7#3(Llnx4^-T2)4Gg{%Ed;7!@O1TaS?83{1OV&dgB$<= literal 0 HcmV?d00001 diff --git a/overrides/resources/contenttweaker/textures/items/logic_processor_assembly_item.png b/overrides/resources/contenttweaker/textures/items/logic_processor_assembly_item.png new file mode 100644 index 0000000000000000000000000000000000000000..bea23e50975ef48792955e0196dd84687fea7ab2 GIT binary patch literal 439 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPFfmB|(0{3=Yq3q=7g| z-tI089jvk*Kn`btM`SSr1K%gnPb!f`!0;Q*5aD=X^(9>>&l#|;fD zR&E_UdWbWL(% zI;h5#cT=S!i&ct&LAQW^x7!t)x7$ nD3u`~F*C13&(AePq0Cs%RL{`B;7id$pehDWS3j3^P6; +val calculationProcessor = ; +val engineeringProcessor = ; + +function processorAssemblyRecipe( + processorAssembly as IItemStack, + middle as IIngredient +) { + // certus knife + recipes.addShaped( + processorAssembly, + [ + [ + null, + + .anyDamage(), + null + ], + [, middle, ], + [null, , null] + ] + ); + + // quartz knife + recipes.addShaped( + processorAssembly, + [ + [ + null, + + .anyDamage(), + null + ], + [, middle, ], + [null, , null] + ] + ); +} + +// processor assembly recipes +processorAssemblyRecipe( + , + +); +processorAssemblyRecipe( + , + +); +processorAssemblyRecipe( + , + +); + +// processor recipes +furnace.addRecipe(logicProcessor, ); +furnace.addRecipe(calculationProcessor, ); +furnace.addRecipe(engineeringProcessor, ); + +// remove inscriber +recipes.remove(); diff --git a/overrides/scripts/ic2.zs b/overrides/scripts/ic2.zs new file mode 100644 index 0000000..63560dd --- /dev/null +++ b/overrides/scripts/ic2.zs @@ -0,0 +1,39 @@ +val refinedIron = ; +val copperCable = ; + +// old-school refined iron +furnace.addRecipe(refinedIron, ); + +// refined iron circuits +recipes.remove(); + +// horizontal +recipes.addShaped( + , + [ + [copperCable, copperCable, copperCable], + [, refinedIron, ], + [copperCable, copperCable, copperCable] + ] +); + +// vertical +recipes.addShaped( + , + [ + [copperCable, , copperCable], + [copperCable, refinedIron, copperCable], + [copperCable, , copperCable] + ] +); + +// refined iron machine blocks +recipes.remove(); +recipes.addShaped( + , + [ + [refinedIron, refinedIron, refinedIron], + [refinedIron, null, refinedIron], + [refinedIron, refinedIron, refinedIron], + ] +); diff --git a/overrides/scripts/mekanism.zs b/overrides/scripts/mekanism.zs new file mode 100644 index 0000000..746703a --- /dev/null +++ b/overrides/scripts/mekanism.zs @@ -0,0 +1,22 @@ +import minetweaker.item.IItemStack; +import minetweaker.item.IIngredient; + +val universalCable = ; +val mechanicalPipe = ; +val pressurizedTube = ; +val logisticalTransporter = ; +val thermodynamicConductor = ; + +function pipeRecipe(pipe as IItemStack, middleItem as IIngredient) { + recipes.remove(pipe); + recipes.addShaped( + pipe, + [[, middleItem, ]] + ); +} + +pipeRecipe(universalCable, ); +pipeRecipe(mechanicalPipe, ); +pipeRecipe(pressurizedTube, ); +pipeRecipe(logisticalTransporter, ); +pipeRecipe(thermodynamicConductor, );