Posted July 16, 201411 yr Heyho Guys! For my mod I want to create a book which explains everything. To structure the content I want to use a json file as the database for the book. I want to create a json file for each language my mod should support. And the json files should be changeable via resourcepacks, so I decided to save them in the folder assets/lang/book. How can I access this folder from the code? I need a File object, that's obvious, but how can I get the actual assets path? http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
July 16, 201411 yr Author Thank you! And how can I find out the active language? Or, even more important: How can I check whether the language has been changed? Is there a special event? http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
July 16, 201411 yr Author Thanks, this works well http://i.imgur.com/wNvtGZw.png[/img] MODS and MODDING TUTORIALS
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.