Skip to content

Commit

Permalink
Add a way to configure how block types and blocks get combined in lan…
Browse files Browse the repository at this point in the history
…g gen (#30)
  • Loading branch information
maximumpower55 authored Apr 16, 2023
1 parent b17c95f commit 61d4cae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void generate(Map<String, String> langEntries) {
final var groupedBlockComponent = Component.GROUPED_BLOCK.translate(langEntries, block.groupedBlock().id().getPath());
final var blockTypeComponent = Component.BLOCK_TYPE.translate(langEntries, block.type().toString());

langEntries.put(getLangKey(block.id()), groupedBlockComponent + " " + blockTypeComponent);
langEntries.put(getLangKey(block.id()), String.format(langEntries.get("architecture_extensions.block_type_block"), groupedBlockComponent, blockTypeComponent));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"block.architecture_extensions.debuggy_block": "Oddly Colored Block",
"block.architecture_extensions.fake_end_portal_block": "Starry Night Sky Block",

"architecture_extensions.block_type_block": "%s %s",

"architecture_extensions.block_type.arch": "Arch",
"architecture_extensions.block_type.beam": "Beam",
Expand Down

0 comments on commit 61d4cae

Please sign in to comment.