File tree Expand file tree Collapse file tree 5 files changed +43
-6
lines changed
src/main/java/net/neganote/gtutilities Expand file tree Collapse file tree 5 files changed +43
-6
lines changed Original file line number Diff line number Diff line change 1- # GregTech Modern Utilities version 2.1.1
1+ # GregTech Modern Utilities version 2.2.0
22
3- * Fix crashing when omnibreaker is disabled
3+ * Update to GTm 7.1.3
4+ * Add a placeholder for the WAT to see what its current frequency is
5+ * Update omni-breaker recipe to use 2 non-full amps
6+ * Update 64A converter recipes to use non-full amps
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ org.gradle.jvmargs=-Xmx1G
1111 mapping_version =2023.09.03-1.20.1
1212
1313# Mod Properties
14- mod_version =2.1.1
14+ mod_version =2.2.0
1515 maven_group =net.neganote.gtmutils
1616 archives_base_name =gtmutils
1717 mod_id =gtmutils
@@ -23,7 +23,7 @@ org.gradle.jvmargs=-Xmx1G
2323# Dependencies
2424 appeng_version =15.0.18
2525 architectury_version =9.2.14
26- gtceu_version =7.0.2
26+ gtceu_version =7.1.3
2727 ldlib_version =1.0.40.b
2828 registrate_version =MC1.20-1.3.11
2929 rhino_version =2001.2.3-build.6
Original file line number Diff line number Diff line change 2525import net .minecraftforge .fml .event .lifecycle .FMLCommonSetupEvent ;
2626import net .minecraftforge .fml .javafmlmod .FMLJavaModLoadingContext ;
2727import net .neganote .gtutilities .client .renderer .UtilShaders ;
28+ import net .neganote .gtutilities .common .data .UtilPlaceholders ;
2829import net .neganote .gtutilities .common .item .UtilItems ;
2930import net .neganote .gtutilities .common .machine .UtilMachines ;
3031import net .neganote .gtutilities .common .materials .UtilMaterials ;
@@ -94,6 +95,7 @@ public static void init() {
9495 UtilItems .init ();
9596 REGISTRATE .registerRegistrate ();
9697 UtilDatagen .init ();
98+ UtilPlaceholders .init ();
9799 }
98100
99101 public static ResourceLocation id (String path ) {
Original file line number Diff line number Diff line change 1+ package net .neganote .gtutilities .common .data ;
2+
3+ import com .gregtechceu .gtceu .api .machine .MetaMachine ;
4+ import com .gregtechceu .gtceu .api .placeholder .*;
5+ import com .gregtechceu .gtceu .api .placeholder .exceptions .NotSupportedException ;
6+ import com .gregtechceu .gtceu .api .placeholder .exceptions .PlaceholderException ;
7+
8+ import net .minecraft .network .chat .Component ;
9+ import net .neganote .gtutilities .common .machine .multiblock .PTERBMachine ;
10+
11+ import java .util .List ;
12+
13+ public class UtilPlaceholders {
14+
15+ public static void init () {
16+ PlaceholderHandler .addPlaceholder (new Placeholder ("watfrequency" ) {
17+
18+ @ Override
19+ public MultiLineComponent apply (PlaceholderContext ctx ,
20+ List <MultiLineComponent > args ) throws PlaceholderException {
21+ PlaceholderUtils .checkArgs (args , 0 );
22+ MetaMachine machine = MetaMachine .getMachine (ctx .level (), ctx .pos ());
23+ if (!(machine instanceof PTERBMachine wat )) {
24+ throw new NotSupportedException ();
25+ }
26+ var freq = wat .getFrequencyString ();
27+ return MultiLineComponent .of (Component .translatable ("gtmutils.pterb.current_frequency" ,
28+ freq ));
29+ }
30+ });
31+ }
32+ }
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ public static void register64AConverterRecipes(Consumer<FinishedRecipe> provider
6464 .inputItems (CABLE_HEX .get (0 ), 4 )
6565 .inputItems (CABLE_HEX .get (tier ), 16 )
6666 .outputItems (ENERGY_CONVERTER_64A [tier ])
67- .EUt (GTValues .VEX [tier ]).duration (40 )
67+ .EUt (GTValues .VA [tier ]).duration (40 )
6868 .save (provider );
6969 }
7070 }
@@ -89,7 +89,7 @@ public static void registerOmnitoolRecipe(Consumer<FinishedRecipe> provider) {
8989 .inputItems (CABLE_QUAD .get (UtilConfig .INSTANCE .features .omnibreakerTier ), 3 )
9090 .inputItems (MOTOR .get (UtilConfig .INSTANCE .features .omnibreakerTier ), 2 )
9191 .outputItems (OMNIBREAKER )
92- .EUt (GTValues .VEX [UtilConfig .INSTANCE .features .omnibreakerTier ]).duration (20 * 60 )
92+ .EUt (GTValues .VA [UtilConfig .INSTANCE .features .omnibreakerTier ], 2 ).duration (20 * 60 )
9393 .save (provider );
9494 }
9595}
You can’t perform that action at this time.
0 commit comments