Skip to content

Commit

Permalink
feat: start move to new modonomicon multilang supporting text gen
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jun 14, 2023
1 parent 8ad3214 commit aaedef4
Show file tree
Hide file tree
Showing 6 changed files with 662 additions and 988 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ smartbrainlib_version=1.11
smartbrainlib_version_range=[1.11,)
almost_unified_version=0.5.0
almost_unified_version_range=[0.5.0,)
modonomicon_version=1.33.1
modonomicon_version=1.34.0
modonomicon_version_range=[1.32.2,)
theurgy_version=1.3.5
theurgy_version=1.3.6
theurgy_version_range=[1.3.5,)
per_viam_invenire_version_range=[0.1.57,)
3 changes: 1 addition & 2 deletions src/generated/resources/assets/occultism/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@
"book.occultism.dictionary_of_spirits.getting_started.intro.intro.text": "This book aims to introduce the novice reader to the most common summoning rituals and equip them with a list of spirit names to summon.\nThe authors advise caution in the summoning of the listed entities and does not take responsibility for any harm caused.\n",
"book.occultism.dictionary_of_spirits.getting_started.intro.intro.title": "About",
"book.occultism.dictionary_of_spirits.getting_started.intro.name": "About",
"book.occultism.dictionary_of_spirits.getting_started.intro.recipe.text": "To obtain the old edition, simply craft this book with [](item://occultism:datura_seeds) in a crafting grid. (The book new edition will not be destroyed.)\n",
"book.occultism.dictionary_of_spirits.getting_started.magic_lamps.description": "Three wishes? Close, but not quite..",
"book.occultism.dictionary_of_spirits.getting_started.magic_lamps.name": "Magic Lamps",
"book.occultism.dictionary_of_spirits.getting_started.magic_lamps.spotlight.text": "Magic Lamps can be used to keep spirits safe from [#](ad03fc)Essence Decay[#](), while still having access to some of their powers. Most commonly they are used to access a [#](ad03fc)Mining Dimension[#]() and act as (*lag free*) [#](ad03fc)Void Miners[#]().\n",
Expand Down Expand Up @@ -575,7 +574,7 @@
"book.occultism.dictionary_of_spirits.spirits.essence_decay.intro.text": "When residing in our plane of existence, spirits experience [#](ad03fc)Essence Decay[#](), the slow rot of their \"body\". The more powerful the spirit, the slower the decay, but only the most powerful can stop it entirely. Once fully decayed they are returned to [#](ad03fc)The Other Place[#]() and can only be re-summoned once fully recovered.\n",
"book.occultism.dictionary_of_spirits.spirits.essence_decay.intro.title": "Essence Decay",
"book.occultism.dictionary_of_spirits.spirits.essence_decay.name": "Essence Decay",
"book.occultism.dictionary_of_spirits.spirits.name": "Pentacles",
"book.occultism.dictionary_of_spirits.spirits.name": "Spirits",
"book.occultism.dictionary_of_spirits.spirits.overview.afrit.text": "Even more powerful than Djinni, Afrit are used for the creation of major artifacts and the possession of powerful beings.\n",
"book.occultism.dictionary_of_spirits.spirits.overview.afrit.title": "Afrit",
"book.occultism.dictionary_of_spirits.spirits.overview.djinni.text": "The most commonly summoned class. There is a great variety of Djinni, differing both in intelligence and power. Djinni can be used for a variety of task, ranging from higher artifacts over possession of living beings to carrying out tasks in their Chosen Form.\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
"type": "occultism:spirit_fire_recipe",
"anchor": "",
"recipe_id_1": "occultism:spirit_fire/otherworld_ashes",
"text": "book.occultism.dictionary_of_spirits.getting_started.spirit_fire.otherworld_ashes_recipe.text",
"text": "",
"title1": "",
"title2": ""
},
{
"type": "occultism:spirit_fire_recipe",
"anchor": "",
"recipe_id_1": "occultism:spirit_fire/spirit_attuned_gem",
"text": "book.occultism.dictionary_of_spirits.getting_started.spirit_fire.gem_recipe.text",
"text": "",
"title1": "",
"title2": ""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ public static void gatherData(GatherDataEvent event) {


var enUSProvider = new ENUSProvider(generator.getPackOutput());
generator.addProvider(event.includeServer(), new OccultismBookProvider(generator.getPackOutput(), Occultism.MODID, enUSProvider));
var frFRProvider = new FRFRProvider(generator.getPackOutput());
var ptBRProvider = new PTBRProvider(generator.getPackOutput());
generator.addProvider(event.includeServer(), new OccultismBookProvider(generator.getPackOutput(), Occultism.MODID, enUSProvider, frFRProvider, ptBRProvider));

//Important: Lang provider (in this case enus) needs to be added after the book provider to process the texts added by the book provider
generator.addProvider(event.includeClient(), enUSProvider);
generator.addProvider(event.includeClient(), new FRFRProvider(generator.getPackOutput()));
generator.addProvider(event.includeClient(), new PTBRProvider(generator.getPackOutput()));
generator.addProvider(event.includeClient(), frFRProvider);
generator.addProvider(event.includeClient(), ptBRProvider);

event.getGenerator().addProvider(event.includeServer(),
(DataProvider.Factory<DatapackBuiltinEntriesProvider>) output ->
Expand Down
Loading

0 comments on commit aaedef4

Please sign in to comment.