Skip to content

Commit 5ec082a

Browse files
authored
Merge pull request #17 from Phoenixvine32908/main
Custom MV-ZPM tools.
2 parents acd2e7c + 9d375a3 commit 5ec082a

File tree

68 files changed

+1405
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1405
-2
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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.1.4
26+
gtceu_version=7.2.0
2727
ldlib_version=1.0.40.b
2828
registrate_version=MC1.20-1.3.11
2929
rhino_version=2001.2.3-build.6

run/config/gtmutils.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
features:
2+
# Whether the Sterile Cleaning Maintenance Hatch is enabled.
3+
sterileHatchEnabled: true
4+
5+
# Whether the 64A energy converters are enabled.
6+
converters64aEnabled: true
7+
8+
# Whether the Omni-breaker is enabled.
9+
omnibreakerEnabled: true
10+
11+
# What tier the Omni-breaker is, if enabled. (ULV = 0, LV = 1, MV = 2, ...)
12+
# (Unless the default recipe is overridden, can only support LV to IV!)
13+
omnibreakerTier: 5
14+
15+
# The energy capacity of the Omni-breaker.
16+
omnibreakerEnergyCapacity: 40960000
17+
18+
# Whether the Wireless Active Transformer is enabled.
19+
pterbEnabled: true
20+
21+
# Base amount of WAT coolant to drain every second.
22+
# (Setting both this amount and the IO multiplier to 0 disables the coolant mechanic.)
23+
pterbCoolantBaseDrain: 10
24+
25+
# Multiplier over IO amount for additional coolant drain.
26+
# (Setting both this and the base drain amount to 0 disables the coolant mechanic.)
27+
pterbCoolantIOMultiplier: 3.0E-5
28+
29+
# Whether the coins/credits are enabled.
30+
coinsEnabled: true
31+
32+
# Whether the custom MV tools are enabled.
33+
customMVToolsEnabled: false
34+
35+
# Whether the custom HV tools are enabled.
36+
customHVToolsEnabled: false
37+
38+
# Whether the custom EV tools are enabled.
39+
customEVToolsEnabled: false
40+
41+
# Whether the custom IV tools are enabled.
42+
customIVToolsEnabled: false
43+
44+
# Whether the custom LuV tools are enabled.
45+
customLuVToolsEnabled: true
46+
47+
# Whether the custom ZPM tools are enabled.
48+
customZPMToolsEnabled: true
49+

src/generated/resources/assets/gtmutils/lang/en_ud.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
"block.gtmutils.zpm_64a_energy_converter": "ɹǝʇɹǝʌuoƆ ʎbɹǝuƎ ɹ§Ɐǝ§ㄣ9 ɹ§WԀZɔ§",
1919
"config.gtmutils.option.coinsEnabled": "pǝןqɐuƎsuıoɔ",
2020
"config.gtmutils.option.converters64aEnabled": "pǝןqɐuƎɐㄣ9sɹǝʇɹǝʌuoɔ",
21+
"config.gtmutils.option.customEVToolsEnabled": "pǝןqɐuƎsןoo⟘ΛƎɯoʇsnɔ",
22+
"config.gtmutils.option.customHVToolsEnabled": "pǝןqɐuƎsןoo⟘ΛHɯoʇsnɔ",
23+
"config.gtmutils.option.customIVToolsEnabled": "pǝןqɐuƎsןoo⟘ΛIɯoʇsnɔ",
24+
"config.gtmutils.option.customLuVToolsEnabled": "pǝןqɐuƎsןoo⟘ΛnꞀɯoʇsnɔ",
25+
"config.gtmutils.option.customMVToolsEnabled": "pǝןqɐuƎsןoo⟘ΛWɯoʇsnɔ",
26+
"config.gtmutils.option.customZPMToolsEnabled": "pǝןqɐuƎsןoo⟘WԀZɯoʇsnɔ",
2127
"config.gtmutils.option.features": "sǝɹnʇɐǝɟ",
2228
"config.gtmutils.option.omnibreakerEnabled": "pǝןqɐuƎɹǝʞɐǝɹqıuɯo",
2329
"config.gtmutils.option.omnibreakerEnergyCapacity": "ʎʇıɔɐdɐƆʎbɹǝuƎɹǝʞɐǝɹqıuɯo",
@@ -35,18 +41,48 @@
3541
"gtmutils.multiblock.pterb_machine.coolant_usage": "puoɔǝs ɹǝd %s ɟo Ꞁ%s suıɐɹᗡɔ§",
3642
"gtmutils.pterb.current_frequency": "%s :ʎɔuǝnbǝɹɟ ʇuǝɹɹnƆ",
3743
"gtmutils.pterb_machine.invalid_frequency": "¡0 ʎɔuǝnbǝɹɟ uo ʞɹoʍ ʇou ןןıʍ s⟘ⱯM",
44+
"item.gtceu.tool.ev_buzzsaw": ")ΛƎ( ʍɐszznᗺ %s",
45+
"item.gtceu.tool.ev_chainsaw": ")ΛƎ( ʍɐsuıɐɥƆ %s",
46+
"item.gtceu.tool.ev_screwdriver": ")ΛƎ( ɹǝʌıɹpʍǝɹɔS ɔıɹʇɔǝןƎ %s",
47+
"item.gtceu.tool.ev_wirecutter": ")ΛƎ( ɹǝʇʇnƆ ǝɹıM %s",
48+
"item.gtceu.tool.ev_wrench": ")ΛƎ( ɥɔuǝɹM %s",
49+
"item.gtceu.tool.hv_buzzsaw": ")ΛH( ʍɐszznᗺ %s",
50+
"item.gtceu.tool.hv_chainsaw": ")ΛH( ʍɐsuıɐɥƆ %s",
51+
"item.gtceu.tool.hv_screwdriver": ")ΛH( ɹǝʌıɹpʍǝɹɔS ɔıɹʇɔǝןƎ %s",
52+
"item.gtceu.tool.iv_buzzsaw": ")ΛI( ʍɐszznᗺ %s",
53+
"item.gtceu.tool.iv_chainsaw": ")ΛI( ʍɐsuıɐɥƆ %s",
54+
"item.gtceu.tool.iv_screwdriver": ")ΛI( ɹǝʌıɹpʍǝɹɔS ɔıɹʇɔǝןƎ %s",
55+
"item.gtceu.tool.luv_buzzsaw": ")ΛnꞀ( ʍɐszznᗺ %s",
56+
"item.gtceu.tool.luv_chainsaw": ")ΛnꞀ( ʍɐsuıɐɥƆ %s",
57+
"item.gtceu.tool.luv_drill": ")ΛnꞀ( ןןıɹᗡ %s",
58+
"item.gtceu.tool.luv_screwdriver": ")ΛnꞀ( ɹǝʌıɹpʍǝɹɔS ɔıɹʇɔǝןƎ %s",
59+
"item.gtceu.tool.luv_wirecutter": ")ΛnꞀ( ɹǝʇʇnƆ ǝɹıM %s",
60+
"item.gtceu.tool.luv_wrench": ")ΛnꞀ( ɥɔuǝɹM %s",
61+
"item.gtceu.tool.mv_buzzsaw": ")ΛW( ʍɐszznᗺ %s",
62+
"item.gtceu.tool.mv_chainsaw": ")ΛW( ʍɐsuıɐɥƆ %s",
63+
"item.gtceu.tool.mv_screwdriver": ")ΛW( ɹǝʌıɹpʍǝɹɔS ɔıɹʇɔǝןƎ %s",
64+
"item.gtceu.tool.mv_wirecutter": ")ΛW( ɹǝʇʇnƆ ǝɹıM %s",
65+
"item.gtceu.tool.mv_wrench": ")ΛW( ɥɔuǝɹM %s",
66+
"item.gtceu.tool.zpm_buzzsaw": ")WԀZ( ʍɐszznᗺ %s",
67+
"item.gtceu.tool.zpm_chainsaw": ")WԀZ( ʍɐsuıɐɥƆ %s",
68+
"item.gtceu.tool.zpm_drill": ")WԀZ( ןןıɹᗡ %s",
69+
"item.gtceu.tool.zpm_screwdriver": ")WԀZ( ɹǝʌıɹpʍǝɹɔS ɔıɹʇɔǝןƎ %s",
70+
"item.gtceu.tool.zpm_wirecutter": ")WԀZ( ɹǝʇʇnƆ ǝɹıM %s",
71+
"item.gtceu.tool.zpm_wrench": ")WԀZ( ɥɔuǝɹM %s",
3872
"item.gtmutils.ancient_gold_coin": "uıoƆ pןo⅁ ʇuǝıɔuⱯ",
3973
"item.gtmutils.chocolate_coin": "uıoƆ ǝʇɐןoɔoɥƆ",
4074
"item.gtmutils.copper_credit": "ʇıpǝɹƆ ɹǝddoƆ",
4175
"item.gtmutils.cupronickel_credit": "ʇıpǝɹƆ ןǝʞɔıuoɹdnƆ",
4276
"item.gtmutils.doge_coin": "uıoƆ ǝboᗡ",
4377
"item.gtmutils.gold_credit": "ʇıpǝɹƆ pןo⅁",
78+
"item.gtmutils.luv_power_unit": "ʇıu∩ ɹǝʍoԀ ΛnꞀ",
4479
"item.gtmutils.naquadah_credit": "ʇıpǝɹƆ ɥɐpɐnbɐN",
4580
"item.gtmutils.neutronium_credit": "ʇıpǝɹƆ ɯnıuoɹʇnǝN",
4681
"item.gtmutils.omnibreaker": "ɹǝʞɐǝɹq-ıuɯO",
4782
"item.gtmutils.osmium_credit": "ʇıpǝɹƆ ɯnıɯsO",
4883
"item.gtmutils.platinum_credit": "ʇıpǝɹƆ ɯnuıʇɐןԀ",
4984
"item.gtmutils.silver_credit": "ʇıpǝɹƆ ɹǝʌןıS",
85+
"item.gtmutils.zpm_power_unit": "ʇıu∩ ɹǝʍoԀ WԀZ",
5086
"itemGroup.gtmutils.creative_tab": "sǝıʇıןıʇ∩ uɹǝpoW ɥɔǝ⟘bǝɹ⅁",
5187
"material.gtmutils.quantum_coolant": "ʇuɐןooƆ ɯnʇuɐnὉ",
5288
"tooltip.omnibreaker.can_break_anything": "¡⅁NIH⟘ʎNⱯ ǝuıɯ-ɐʇsuı uɐɔ ɹǝʞɐǝɹq-ıuɯO ǝɥ⟘",

src/generated/resources/assets/gtmutils/lang/en_us.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
"block.gtmutils.zpm_64a_energy_converter": "§cZPM§r 64§eA§r Energy Converter",
1919
"config.gtmutils.option.coinsEnabled": "coinsEnabled",
2020
"config.gtmutils.option.converters64aEnabled": "converters64aEnabled",
21+
"config.gtmutils.option.customEVToolsEnabled": "customEVToolsEnabled",
22+
"config.gtmutils.option.customHVToolsEnabled": "customHVToolsEnabled",
23+
"config.gtmutils.option.customIVToolsEnabled": "customIVToolsEnabled",
24+
"config.gtmutils.option.customLuVToolsEnabled": "customLuVToolsEnabled",
25+
"config.gtmutils.option.customMVToolsEnabled": "customMVToolsEnabled",
26+
"config.gtmutils.option.customZPMToolsEnabled": "customZPMToolsEnabled",
2127
"config.gtmutils.option.features": "features",
2228
"config.gtmutils.option.omnibreakerEnabled": "omnibreakerEnabled",
2329
"config.gtmutils.option.omnibreakerEnergyCapacity": "omnibreakerEnergyCapacity",
@@ -35,18 +41,48 @@
3541
"gtmutils.multiblock.pterb_machine.coolant_usage": "§cDrains %sL of %s per second",
3642
"gtmutils.pterb.current_frequency": "Current frequency: %s",
3743
"gtmutils.pterb_machine.invalid_frequency": "WATs will not work on frequency 0!",
44+
"item.gtceu.tool.ev_buzzsaw": "%s Buzzsaw (EV)",
45+
"item.gtceu.tool.ev_chainsaw": "%s Chainsaw (EV)",
46+
"item.gtceu.tool.ev_screwdriver": "%s Electric Screwdriver (EV)",
47+
"item.gtceu.tool.ev_wirecutter": "%s Wire Cutter (EV)",
48+
"item.gtceu.tool.ev_wrench": "%s Wrench (EV)",
49+
"item.gtceu.tool.hv_buzzsaw": "%s Buzzsaw (HV)",
50+
"item.gtceu.tool.hv_chainsaw": "%s Chainsaw (HV)",
51+
"item.gtceu.tool.hv_screwdriver": "%s Electric Screwdriver (HV)",
52+
"item.gtceu.tool.iv_buzzsaw": "%s Buzzsaw (IV)",
53+
"item.gtceu.tool.iv_chainsaw": "%s Chainsaw (IV)",
54+
"item.gtceu.tool.iv_screwdriver": "%s Electric Screwdriver (IV)",
55+
"item.gtceu.tool.luv_buzzsaw": "%s Buzzsaw (LuV)",
56+
"item.gtceu.tool.luv_chainsaw": "%s Chainsaw (LuV)",
57+
"item.gtceu.tool.luv_drill": "%s Drill (LuV)",
58+
"item.gtceu.tool.luv_screwdriver": "%s Electric Screwdriver (LuV)",
59+
"item.gtceu.tool.luv_wirecutter": "%s Wire Cutter (LuV)",
60+
"item.gtceu.tool.luv_wrench": "%s Wrench (LuV)",
61+
"item.gtceu.tool.mv_buzzsaw": "%s Buzzsaw (MV)",
62+
"item.gtceu.tool.mv_chainsaw": "%s Chainsaw (MV)",
63+
"item.gtceu.tool.mv_screwdriver": "%s Electric Screwdriver (MV)",
64+
"item.gtceu.tool.mv_wirecutter": "%s Wire Cutter (MV)",
65+
"item.gtceu.tool.mv_wrench": "%s Wrench (MV)",
66+
"item.gtceu.tool.zpm_buzzsaw": "%s Buzzsaw (ZPM)",
67+
"item.gtceu.tool.zpm_chainsaw": "%s Chainsaw (ZPM)",
68+
"item.gtceu.tool.zpm_drill": "%s Drill (ZPM)",
69+
"item.gtceu.tool.zpm_screwdriver": "%s Electric Screwdriver (ZPM)",
70+
"item.gtceu.tool.zpm_wirecutter": "%s Wire Cutter (ZPM)",
71+
"item.gtceu.tool.zpm_wrench": "%s Wrench (ZPM)",
3872
"item.gtmutils.ancient_gold_coin": "Ancient Gold Coin",
3973
"item.gtmutils.chocolate_coin": "Chocolate Coin",
4074
"item.gtmutils.copper_credit": "Copper Credit",
4175
"item.gtmutils.cupronickel_credit": "Cupronickel Credit",
4276
"item.gtmutils.doge_coin": "Doge Coin",
4377
"item.gtmutils.gold_credit": "Gold Credit",
78+
"item.gtmutils.luv_power_unit": "LuV Power Unit",
4479
"item.gtmutils.naquadah_credit": "Naquadah Credit",
4580
"item.gtmutils.neutronium_credit": "Neutronium Credit",
4681
"item.gtmutils.omnibreaker": "Omni-breaker",
4782
"item.gtmutils.osmium_credit": "Osmium Credit",
4883
"item.gtmutils.platinum_credit": "Platinum Credit",
4984
"item.gtmutils.silver_credit": "Silver Credit",
85+
"item.gtmutils.zpm_power_unit": "ZPM Power Unit",
5086
"itemGroup.gtmutils.creative_tab": "GregTech Modern Utilities",
5187
"material.gtmutils.quantum_coolant": "Quantum Coolant",
5288
"tooltip.omnibreaker.can_break_anything": "The Omni-breaker can insta-mine ANYTHING!",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"parent": "minecraft:item/generated",
3+
"textures": {
4+
"layer0": "gtmutils:item/tools/power_unit_luv"
5+
}
6+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"parent": "minecraft:item/generated",
3+
"textures": {
4+
"layer0": "gtmutils:item/tools/power_unit_zpm"
5+
}
6+
}

src/main/java/net/neganote/gtutilities/GTMUtilitiesGTAddon.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.gregtechceu.gtceu.api.registry.registrate.GTRegistrate;
66

77
import net.minecraft.data.recipes.FinishedRecipe;
8+
import net.neganote.gtutilities.common.tools.recipe.UtilToolRecipes;
89
import net.neganote.gtutilities.recipe.UtilRecipes;
910

1011
import java.util.function.Consumer;
@@ -34,6 +35,7 @@ public void registerTagPrefixes() {
3435
@Override
3536
public void addRecipes(Consumer<FinishedRecipe> provider) {
3637
UtilRecipes.init(provider);
38+
UtilToolRecipes.init(provider);
3739
}
3840

3941
// If you have custom ingredient types, uncomment this & change to match your capability.

src/main/java/net/neganote/gtutilities/GregTechModernUtilities.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727
import net.neganote.gtutilities.client.renderer.UtilShaders;
2828
import net.neganote.gtutilities.common.data.UtilPlaceholders;
2929
import net.neganote.gtutilities.common.item.UtilItems;
30+
import net.neganote.gtutilities.common.item.UtilToolItems;
3031
import net.neganote.gtutilities.common.machine.UtilMachines;
3132
import net.neganote.gtutilities.common.materials.UtilMaterials;
33+
import net.neganote.gtutilities.common.tools.UtilToolConnection;
3234
import net.neganote.gtutilities.config.UtilConfig;
3335
import net.neganote.gtutilities.datagen.UtilDatagen;
3436

@@ -93,6 +95,7 @@ public static void init() {
9395
.register();
9496
}
9597
UtilItems.init();
98+
UtilToolItems.init();
9699
REGISTRATE.registerRegistrate();
97100
UtilDatagen.init();
98101
UtilPlaceholders.init();
@@ -142,7 +145,7 @@ private void addMaterials(MaterialEvent event) {
142145

143146
// This is optional, though.
144147
private void modifyMaterials(PostMaterialEvent event) {
145-
// CustomMaterials.modify();
148+
UtilToolConnection.modifyMaterials();
146149
}
147150

148151
private void registerRecipeTypes(GTCEuAPI.RegisterEvent<ResourceLocation, GTRecipeType> event) {
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
package net.neganote.gtutilities.common.item;
2+
3+
import com.gregtechceu.gtceu.api.GTValues;
4+
import com.gregtechceu.gtceu.api.item.ComponentItem;
5+
import com.gregtechceu.gtceu.api.item.component.ElectricStats;
6+
7+
import net.neganote.gtutilities.config.UtilConfig;
8+
9+
import com.tterrag.registrate.util.entry.ItemEntry;
10+
11+
import static net.neganote.gtutilities.GregTechModernUtilities.REGISTRATE;
12+
13+
/**
14+
* Item registry file for the LuV and ZPM tool power units.
15+
*/
16+
public class UtilToolItems {
17+
18+
public static ItemEntry<ComponentItem> POWER_UNIT_ZPM = null;
19+
public static ItemEntry<ComponentItem> POWER_UNIT_LUV = null;
20+
21+
static {
22+
23+
if (UtilConfig.INSTANCE.features.customLuVToolsEnabled) {
24+
POWER_UNIT_LUV = REGISTRATE.item("luv_power_unit", ComponentItem::create)
25+
.lang("LuV Power Unit")
26+
.properties(p -> p.stacksTo(8))
27+
.model((ctx, prov) -> prov.generated(ctx, prov.modLoc("item/tools/power_unit_luv")))
28+
.onRegister((c) -> c.attachComponents(ElectricStats.createElectricItem(102400000L, GTValues.LuV)))
29+
.register();
30+
}
31+
32+
if (UtilConfig.INSTANCE.features.customZPMToolsEnabled) {
33+
POWER_UNIT_ZPM = REGISTRATE.item("zpm_power_unit", ComponentItem::create)
34+
.lang("ZPM Power Unit")
35+
.properties(p -> p.stacksTo(8))
36+
.model((ctx, prov) -> prov.generated(ctx, prov.modLoc("item/tools/power_unit_zpm")))
37+
.onRegister((c) -> c.attachComponents(ElectricStats.createElectricItem(409600000L, GTValues.ZPM)))
38+
.register();
39+
}
40+
}
41+
42+
public static void init() {}
43+
}

0 commit comments

Comments
 (0)