From e231979c710d3012cfc04da9db6fea224f2ef52d Mon Sep 17 00:00:00 2001 From: ellieisjelly Date: Wed, 18 Dec 2024 14:46:55 -0300 Subject: [PATCH] Fix block translation keys too --- .../me/ellieis/Sabotage/game/custom/SabotageItems.java | 8 ++++---- src/main/resources/data/sabotage/lang/en_us.json | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/java/me/ellieis/Sabotage/game/custom/SabotageItems.java b/src/main/java/me/ellieis/Sabotage/game/custom/SabotageItems.java index 616bba9..6a656cd 100644 --- a/src/main/java/me/ellieis/Sabotage/game/custom/SabotageItems.java +++ b/src/main/java/me/ellieis/Sabotage/game/custom/SabotageItems.java @@ -16,10 +16,10 @@ import net.minecraft.text.Text; public class SabotageItems { - public static final Item SABOTAGE_CHEST = new PolymerBlockItem(SabotageBlocks.SABOTAGE_CHEST, new Item.Settings().registryKey(RegistryKey.of(RegistryKeys.ITEM, Sabotage.identifier("sabotage_chest"))), Items.CHEST); - public static final Item TESTER_WOOL = new PolymerBlockItem(SabotageBlocks.TESTER_WOOL, new Item.Settings().registryKey(RegistryKey.of(RegistryKeys.ITEM, Sabotage.identifier("tester_wool"))), Items.WHITE_WOOL); - public static final Item TESTER_SIGN = new TesterSign(new Item.Settings().registryKey(RegistryKey.of(RegistryKeys.ITEM, Sabotage.identifier("tester_sign"))), SabotageBlocks.TESTER_SIGN, SabotageBlocks.WALL_TESTER_SIGN); - public static final Item DETECTIVE_SHEARS = new DetectiveShears(new Item.Settings().registryKey(RegistryKey.of(RegistryKeys.ITEM, Sabotage.identifier("detective_shears"))).maxDamage(101)); + public static final Item SABOTAGE_CHEST = new PolymerBlockItem(SabotageBlocks.SABOTAGE_CHEST, new Item.Settings().useBlockPrefixedTranslationKey().registryKey(RegistryKey.of(RegistryKeys.ITEM, Sabotage.identifier("sabotage_chest"))), Items.CHEST); + public static final Item TESTER_WOOL = new PolymerBlockItem(SabotageBlocks.TESTER_WOOL, new Item.Settings().useBlockPrefixedTranslationKey().registryKey(RegistryKey.of(RegistryKeys.ITEM, Sabotage.identifier("tester_wool"))), Items.WHITE_WOOL); + public static final Item TESTER_SIGN = new TesterSign(new Item.Settings().useBlockPrefixedTranslationKey().registryKey(RegistryKey.of(RegistryKeys.ITEM, Sabotage.identifier("tester_sign"))), SabotageBlocks.TESTER_SIGN, SabotageBlocks.WALL_TESTER_SIGN); + public static final Item DETECTIVE_SHEARS = new DetectiveShears(new Item.Settings().useBlockPrefixedTranslationKey().registryKey(RegistryKey.of(RegistryKeys.ITEM, Sabotage.identifier("detective_shears"))).maxDamage(101)); public static final ItemGroup ITEM_GROUP = FabricItemGroup.builder() .displayName(Text.translatable("gameType.sabotage.sabotage")) .icon(SABOTAGE_CHEST::getDefaultStack) diff --git a/src/main/resources/data/sabotage/lang/en_us.json b/src/main/resources/data/sabotage/lang/en_us.json index 76a109f..fab174a 100644 --- a/src/main/resources/data/sabotage/lang/en_us.json +++ b/src/main/resources/data/sabotage/lang/en_us.json @@ -1,8 +1,9 @@ { "gameType.sabotage.sabotage": "Sabotage", - "item.sabotage.sabotage_chest": "Sabotage Chest", - "item.sabotage.tester_wool": "Tester Wool", - "item.sabotage.tester_sign": "Tester Sign", + "block.sabotage.sabotage_chest": "Sabotage Chest", + "block.sabotage.tester_wool": "Tester Wool", + "block.sabotage.tester_sign": "Tester Sign", + "block.sabotage.wall_tester_sign": "Tester Sign", "item.sabotage.detective_shears": "Portable Tester", "map.sabotage.random": "Random",