From 8fa8959208d8b712d6e297a6c086cb0ff6b47d1c Mon Sep 17 00:00:00 2001 From: gniftygnome Date: Sun, 2 Jun 2024 11:26:23 -0700 Subject: [PATCH] Restore 'c' tags and add translations. After I started working on Terrestria I changed my mind about the feasibility of just dropping the 'c' tags instead of translating them. According to discussion in the Fabric Discord, we're all just supposed to make up competing translations for them and see whose wins each time... - Restore 'c' tags and add translations --- .../main/resources/assets/traverse/lang/en_us.json | 12 ++++++++---- .../traverse/data/TraverseItemTagProvider.java | 6 ++++++ .../traverse/tag/TraverseItemTags.java | 3 +++ 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/client/src/main/resources/assets/traverse/lang/en_us.json b/client/src/main/resources/assets/traverse/lang/en_us.json index 1bdb5f5..e78ea7d 100644 --- a/client/src/main/resources/assets/traverse/lang/en_us.json +++ b/client/src/main/resources/assets/traverse/lang/en_us.json @@ -1,7 +1,4 @@ { - "itemGroup.traverse.items": "Traverse Items", - "tag.item.traverse.fir_logs": "Fir Logs", - "biome.traverse.arid_highlands": "Arid Highlands", "biome.traverse.autumnal_woods": "Autumnal Woods", "biome.traverse.coniferous_forest": "Coniferous Forest", @@ -46,6 +43,13 @@ "block.traverse.fir_fence_gate": "Fir Fence Gate", "block.traverse.fir_door": "Fir Door", "block.traverse.fir_trapdoor": "Fir Trapdoor", + + "itemGroup.traverse.items": "Traverse Items", "item.traverse.fir_boat": "Fir Boat", - "item.traverse.fir_chest_boat": "Fir Boat with Chest" + "item.traverse.fir_chest_boat": "Fir Boat with Chest", + + "tag.item.traverse.fir_logs": "Fir Logs", + "tag.item.c.planks_that_burn": "Planks that Burn", + "tag.item.c.stripped_logs": "Stripped Logs", + "tag.item.c.stripped_wood": "Stripped Wood" } diff --git a/common/src/main/java/com/terraformersmc/traverse/data/TraverseItemTagProvider.java b/common/src/main/java/com/terraformersmc/traverse/data/TraverseItemTagProvider.java index ad1b0ba..eea62e4 100644 --- a/common/src/main/java/com/terraformersmc/traverse/data/TraverseItemTagProvider.java +++ b/common/src/main/java/com/terraformersmc/traverse/data/TraverseItemTagProvider.java @@ -52,5 +52,11 @@ public void configure(RegistryWrapper.WrapperLookup registries) { copy(TraverseBlockTags.FIR_LOGS, TraverseItemTags.FIR_LOGS); + + copy(TraverseBlockTags.PLANKS_THAT_BURN, TraverseItemTags.PLANKS_THAT_BURN); + + copy(TraverseBlockTags.STRIPPED_LOGS, TraverseItemTags.STRIPPED_LOGS); + + copy(TraverseBlockTags.STRIPPED_WOOD, TraverseItemTags.STRIPPED_WOOD); } } diff --git a/common/src/main/java/com/terraformersmc/traverse/tag/TraverseItemTags.java b/common/src/main/java/com/terraformersmc/traverse/tag/TraverseItemTags.java index acf6ed0..8ede573 100644 --- a/common/src/main/java/com/terraformersmc/traverse/tag/TraverseItemTags.java +++ b/common/src/main/java/com/terraformersmc/traverse/tag/TraverseItemTags.java @@ -8,6 +8,9 @@ public final class TraverseItemTags { public static final TagKey FIR_LOGS = TraverseItemTags.of("fir_logs"); + public static final TagKey PLANKS_THAT_BURN = TraverseItemTags.of(Identifier.of("c", "planks_that_burn")); + public static final TagKey STRIPPED_LOGS = TraverseItemTags.of(Identifier.of("c", "stripped_logs")); + public static final TagKey STRIPPED_WOOD = TraverseItemTags.of(Identifier.of("c", "stripped_wood")); @SuppressWarnings("UnnecessaryReturnStatement") private TraverseItemTags() {