Posted February 24, 20187 yr Hi There I would like to be able to load sounds and the sounds.json from another folder within the .minecraft folder so they can be easily changed even when the mod has been bundled into a jar. Is this something that is possible with Forge and if so where would be a good starting point? Thanks Edited February 26, 20187 yr by TheMCJavaFre4k Solved
February 24, 20187 yr Author Would forge be able to load and apply a resource pack internally without the user having to select it manually in the menu?
February 25, 20187 yr Author Ill add some context on what I'm trying to achieve. Im hoping to be able to allow a user to dump mainly sounds but possibly images into a file in the .minecraft directory which the mod will be able to read. The files then have the corresponding .json file created, so for custom sounds the sounds.json would be written by the mod, and since it is obviously impossible if not very unadvisable to try editing files within a bundled jar file I'm looking for ways to get around this. If there is a location i can create a resource pack based structure then have forge look in that domain instead of the jar resources or treat it as a resource pack and automatically load it that would be perfect. Thanks
February 26, 20187 yr Author Thanks for mentioning IResourcePack. Was able to use a FolderResourcePack and everything Is working as supposed to. Thanks again
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.