Skip to content

Commit

Permalink
Fix block translation keys too
Browse files Browse the repository at this point in the history
  • Loading branch information
ellieisjelly committed Dec 18, 2024
1 parent 980b2e9 commit e231979
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 4 additions & 3 deletions src/main/resources/data/sabotage/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit e231979

Please sign in to comment.