TheMCJavaFre4k Posted February 24, 2018 Posted February 24, 2018 (edited) 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, 2018 by TheMCJavaFre4k Solved Quote
TheMCJavaFre4k Posted February 24, 2018 Author Posted February 24, 2018 Would forge be able to load and apply a resource pack internally without the user having to select it manually in the menu? Quote
TheMCJavaFre4k Posted February 25, 2018 Author Posted February 25, 2018 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 Quote
TheMCJavaFre4k Posted February 26, 2018 Author Posted February 26, 2018 Thanks for mentioning IResourcePack. Was able to use a FolderResourcePack and everything Is working as supposed to. Thanks again Quote
Recommended Posts
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.