From 82c9f3f4de1ee0ed88ace60bdd96e037ae2f5d9f Mon Sep 17 00:00:00 2001 From: kross <135918757+krossgg@users.noreply.github.com> Date: Sat, 11 Jan 2025 21:08:39 -0500 Subject: [PATCH] make quark freeze immune --- src/generated/resources/assets/gtceu/lang/en_ud.json | 1 + src/generated/resources/assets/gtceu/lang/en_us.json | 1 + .../data/minecraft/tags/items/freeze_immune_wearables.json | 6 ++++++ .../java/com/gregtechceu/gtceu/common/data/GTItems.java | 3 +++ .../gregtechceu/gtceu/common/item/armor/QuarkTechSuite.java | 1 + .../java/com/gregtechceu/gtceu/data/lang/LangHandler.java | 1 + 6 files changed, 13 insertions(+) create mode 100644 src/generated/resources/data/minecraft/tags/items/freeze_immune_wearables.json diff --git a/src/generated/resources/assets/gtceu/lang/en_ud.json b/src/generated/resources/assets/gtceu/lang/en_ud.json index 62aa34ef46..2ba63c4960 100644 --- a/src/generated/resources/assets/gtceu/lang/en_ud.json +++ b/src/generated/resources/assets/gtceu/lang/en_ud.json @@ -5350,6 +5350,7 @@ "metaarmor.tooltip.breath": "ɹɐᗺ ɥʇɐǝɹᗺ ɹǝʇɐʍɹǝpu∩ sǝɥsıuǝןdǝᴚ", "metaarmor.tooltip.burning": "buıuɹnᗺ sǝıɟıןןnN", "metaarmor.tooltip.falldamage": "ǝbɐɯɐᗡ ןןɐℲ sǝıɟıןןnN", + "metaarmor.tooltip.freezing": "buızǝǝɹℲ sʇuǝʌǝɹԀ", "metaarmor.tooltip.jump": "ǝɔuɐʇsıᗡ puɐ ʇɥbıǝH dɯnſ sǝsɐǝɹɔuI", "metaarmor.tooltip.potions": "sʇɔǝɟɟƎ ןnɟɯɹɐH sǝıɟıןןnN", "metaarmor.tooltip.speed": "pǝǝdS buıuunᴚ sǝsɐǝɹɔuI", diff --git a/src/generated/resources/assets/gtceu/lang/en_us.json b/src/generated/resources/assets/gtceu/lang/en_us.json index de3228bc33..5b306fb0b6 100644 --- a/src/generated/resources/assets/gtceu/lang/en_us.json +++ b/src/generated/resources/assets/gtceu/lang/en_us.json @@ -5350,6 +5350,7 @@ "metaarmor.tooltip.breath": "Replenishes Underwater Breath Bar", "metaarmor.tooltip.burning": "Nullifies Burning", "metaarmor.tooltip.falldamage": "Nullifies Fall Damage", + "metaarmor.tooltip.freezing": "Prevents Freezing", "metaarmor.tooltip.jump": "Increases Jump Height and Distance", "metaarmor.tooltip.potions": "Nullifies Harmful Effects", "metaarmor.tooltip.speed": "Increases Running Speed", diff --git a/src/generated/resources/data/minecraft/tags/items/freeze_immune_wearables.json b/src/generated/resources/data/minecraft/tags/items/freeze_immune_wearables.json new file mode 100644 index 0000000000..a5a8191193 --- /dev/null +++ b/src/generated/resources/data/minecraft/tags/items/freeze_immune_wearables.json @@ -0,0 +1,6 @@ +{ + "values": [ + "gtceu:quarktech_chestplate", + "gtceu:advanced_quarktech_chestplate" + ] +} \ No newline at end of file diff --git a/src/main/java/com/gregtechceu/gtceu/common/data/GTItems.java b/src/main/java/com/gregtechceu/gtceu/common/data/GTItems.java index decd93b956..d0e503fdff 100644 --- a/src/main/java/com/gregtechceu/gtceu/common/data/GTItems.java +++ b/src/main/java/com/gregtechceu/gtceu/common/data/GTItems.java @@ -41,6 +41,7 @@ import net.minecraft.network.chat.Component; import net.minecraft.resources.ResourceLocation; import net.minecraft.stats.Stats; +import net.minecraft.tags.ItemTags; import net.minecraft.world.InteractionResult; import net.minecraft.world.effect.MobEffectInstance; import net.minecraft.world.effect.MobEffects; @@ -2440,6 +2441,7 @@ public Component getItemName(ItemStack stack) { .lang("QuarkTech™ Suite Chestplate") .properties(p -> p.rarity(Rarity.RARE)) .tag(Tags.Items.ARMORS_CHESTPLATES) + .tag(ItemTags.FREEZE_IMMUNE_WEARABLES) .tag(CustomTags.PPE_ARMOR) .register(); public static ItemEntry QUANTUM_LEGGINGS = REGISTRATE @@ -2537,6 +2539,7 @@ public Component getItemName(ItemStack stack) { .lang("Advanced QuarkTech™ Suite Chestplate") .properties(p -> p.rarity(Rarity.EPIC)) .tag(Tags.Items.ARMORS_CHESTPLATES) + .tag(ItemTags.FREEZE_IMMUNE_WEARABLES) .tag(CustomTags.PPE_ARMOR) .register(); diff --git a/src/main/java/com/gregtechceu/gtceu/common/item/armor/QuarkTechSuite.java b/src/main/java/com/gregtechceu/gtceu/common/item/armor/QuarkTechSuite.java index 2862422ad8..a61fc27a94 100644 --- a/src/main/java/com/gregtechceu/gtceu/common/item/armor/QuarkTechSuite.java +++ b/src/main/java/com/gregtechceu/gtceu/common/item/armor/QuarkTechSuite.java @@ -351,6 +351,7 @@ public void addInfo(ItemStack itemStack, List lines) { lines.add(Component.translatable("metaarmor.tooltip.autoeat")); } else if (type == ArmorItem.Type.CHESTPLATE) { lines.add(Component.translatable("metaarmor.tooltip.burning")); + lines.add(Component.translatable("metaarmor.tooltip.freezing")); } else if (type == ArmorItem.Type.LEGGINGS) { lines.add(Component.translatable("metaarmor.tooltip.speed")); } else if (type == ArmorItem.Type.BOOTS) { diff --git a/src/main/java/com/gregtechceu/gtceu/data/lang/LangHandler.java b/src/main/java/com/gregtechceu/gtceu/data/lang/LangHandler.java index f106ee8137..bf578ea5d3 100644 --- a/src/main/java/com/gregtechceu/gtceu/data/lang/LangHandler.java +++ b/src/main/java/com/gregtechceu/gtceu/data/lang/LangHandler.java @@ -301,6 +301,7 @@ public static void init(RegistrateLangProvider provider) { provider.add("metaarmor.tooltip.falldamage", "Nullifies Fall Damage"); provider.add("metaarmor.tooltip.potions", "Nullifies Harmful Effects"); provider.add("metaarmor.tooltip.burning", "Nullifies Burning"); + provider.add("metaarmor.tooltip.freezing", "Prevents Freezing"); provider.add("metaarmor.tooltip.breath", "Replenishes Underwater Breath Bar"); provider.add("metaarmor.tooltip.autoeat", "Replenishes Food Bar by Using Food from Inventory"); provider.add("metaarmor.hud.status.enabled", "§aON");