Skip to content

Commit

Permalink
Add block tag translations
Browse files Browse the repository at this point in the history
  • Loading branch information
alcatrazEscapee committed Sep 17, 2024
1 parent 7c5e0af commit bdd4dae
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,11 @@
"primalwinter.config.windSounds": "Wind Sounds",
"primalwinter.config.winterDimensions": "Winter Dimensions",
"primalwinter.items": "Primal Winter",
"primalwinter.subtitle.wind": "Wind Howls"
"primalwinter.subtitle.wind": "Wind Howls",
"tag.block.primalwinter.replaceable_with_snow": "Replaceable With Snow",
"tag.block.primalwinter.replaceable_with_snowy_block_underneath": "Replaceable With Snow Underneath",
"tag.block.primalwinter.replaceable_with_snowy_stuff": "Replaceable With Snowy Stuff",
"tag.block.primalwinter.snowy_bamboo_survives_on": "Frozen Bamboo Survives On",
"tag.block.primalwinter.snowy_cactus_survives_on": "Frozen Cactus Survives On",
"tag.block.primalwinter.snowy_sugar_cane_survives_on": "Frozen Sugar Cane Survives On"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.function.Supplier;
import java.util.stream.Collectors;
import com.alcatrazescapee.primalwinter.platform.ForgeRegistryInterface;
import com.alcatrazescapee.primalwinter.util.PrimalWinterBlockTags;
import com.google.common.base.Preconditions;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.resources.ResourceLocation;
Expand Down Expand Up @@ -90,6 +91,13 @@ protected void addTranslations()
addBlock(SNOWY_RED_MUSHROOM_BLOCK, "Frosted Red Mushroom Block");
addBlock(SNOWY_MUSHROOM_STEM, "Frosted Mushroom Stem");

add(PrimalWinterBlockTags.REPLACEABLE_WITH_SNOW, "Replaceable With Snow");
add(PrimalWinterBlockTags.REPLACEABLE_WITH_SNOWY_STUFF, "Replaceable With Snowy Stuff");
add(PrimalWinterBlockTags.REPLACEABLE_WITH_SNOWY_BLOCK_UNDERNEATH, "Replaceable With Snow Underneath");
add(PrimalWinterBlockTags.SNOWY_SUGAR_CANE_SURVIVES_ON, "Frozen Sugar Cane Survives On");
add(PrimalWinterBlockTags.SNOWY_CACTUS_SURVIVES_ON, "Frozen Cactus Survives On");
add(PrimalWinterBlockTags.SNOWY_BAMBOO_SURVIVES_ON, "Frozen Bamboo Survives On");

Preconditions.checkArgument(untranslatedBlocks.isEmpty(), "Missing translations for %s block(s): %s",
untranslatedBlocks.size(),
untranslatedBlocks.stream()
Expand Down

0 comments on commit bdd4dae

Please sign in to comment.