Posted January 23, 201510 yr Hello, Is it possible to make a resource location with a location outside the minecraft jar? Like just on my desktop or something?
January 23, 201510 yr Author Then define a unique resource domain (the thing in front of the ":", so "<mydomain>:<some/folder/some/file.ext>"). I don't know if I get this straight, you mean I can just put "C:\Users\User\Desktop" as a domain? Or I have to "create" a domain? Explain that part a little bit please
January 23, 201510 yr Then define a unique resource domain (the thing in front of the ":", so "<mydomain>:<some/folder/some/file.ext>"). I don't know if I get this straight, you mean I can just put "C:\Users\User\Desktop" as a domain? Or I have to "create" a domain? Explain that part a little bit please He said that you have to implement IResourceLocation. Im not at my computer so I cant give you any further instructions but try to see what you need to implement. If my post helped you, please press that "Thank You"-button to show your appreciation. Also if you don't know Java, I would suggest you read the official tutorials by Oracle to get an idea of how to do this. Thanks, and good modding! Also if you haven't, set up a Git repo for your mod not only for convinience but also to make it easier to help you.
January 23, 201510 yr Author I'm new to reflection, how do I add something to a field? My first attemt: f = Minecraft.class.getDeclaredField("defaultResourcePacks"); f.setAccessible(true); List list = (List) f.get(Minecraft.getMinecraft()); list.add(..);
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.