Skip to content

Commit

Permalink
moved lang modifications to client scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Oct 9, 2022
1 parent 09d2131 commit 72da441
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
33 changes: 33 additions & 0 deletions kubejs/client_scripts/lang_modifications.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//priority: 800
const entries = [
{
key: 'block.naturesaura.infused_iron_block',
value: {
normal: 'Infused Iron Block',
expert: 'Infused Ironwood Block'
}
},
{
key: 'item.naturesaura.infused_iron',
value: {
normal: 'Infused Iron Ingot',
expert: 'Infused Ironwood Ingot'
}
},
{
key: 'advancement.naturesaura.infused_materials.desc',
value: {
normal: 'Use the Natural Altar to create Infused Iron',
expert: 'Use the Natural Altar to create Infused Ironwood'
}
}
];

let lang_file = `kubejs/assets/enigmatica/lang/en_us.json`;
let lang_json = JsonIO.read(lang_file);

entries.forEach((entry) => {
lang_json[entry.key] = entry.value[packMode];
});

JsonIO.write(lang_file, lang_json);
33 changes: 0 additions & 33 deletions kubejs/startup_scripts/lang_modifications.js

This file was deleted.

0 comments on commit 72da441

Please sign in to comment.