From 1ef3ffe39ddd89a3bcff5fbff779ecc3d8611d93 Mon Sep 17 00:00:00 2001 From: Allison-Rodrigo <95299389+Nockyx@users.noreply.github.com> Date: Sat, 23 Nov 2024 00:45:22 -0300 Subject: [PATCH] Add mctm mode --- .../machines/multi/MTEIntegratedOreFactory.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/MTEIntegratedOreFactory.java b/src/main/java/gregtech/common/tileentities/machines/multi/MTEIntegratedOreFactory.java index e3691268951..f030d9ca920 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/MTEIntegratedOreFactory.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/MTEIntegratedOreFactory.java @@ -240,6 +240,7 @@ private static int getTime(int mode) { case 2 -> 10 * SECOND; case 3 -> 20 * SECOND; case 4 -> 17 * SECOND; + case 5 -> 32 * SECOND; default -> // go to hell 1000000000; @@ -395,6 +396,12 @@ public CheckRecipeResult checkProcessing() { doMac(isCrushedOre, isCrushedPureOre); doCentrifuge(isImpureDust, isPureDust); } + case 5 -> { + doMac(isOre); + doChemWash(isCrushedOre, isCrushedPureOre); + doThermal(isCrushedPureOre, isCrushedOre); + doMac(isThermal, isOre, isCrushedOre, isCrushedPureOre); + } default -> { return CheckRecipeResultRegistry.NO_RECIPE; } @@ -432,7 +439,7 @@ public final void onScrewdriverRightClick(ForgeDirection side, EntityPlayer aPla StatCollector.translateToLocalFormatted("GT5U.machines.oreprocessor.void", sVoidStone)); return; } - sMode = (sMode + 1) % 5; + sMode = (sMode + 1) % 6; List des = getDisplayMode(sMode); GTUtility.sendChatToPlayer(aPlayer, String.join("", des)); } @@ -785,6 +792,12 @@ private static List getDisplayMode(int mode) { des.add(AQUA + CRUSH + ARROW); des.add(AQUA + CENTRIFUGE + ' '); } + case 5 -> { + des.add(AQUA + CRUSH + ARROW); + des.add(AQUA + CHEM_WASH + ARROW); + des.add(AQUA + THERMAL + ARROW); + des.add(AQUA + CRUSH + ' '); + } default -> des.add(StatCollector.translateToLocalFormatted("GT5U.machines.oreprocessor.WRONG_MODE")); }