Posted January 28, 201510 yr hi i'm making a simple block mod(for tests) and a want that the user can change the texture of this block, so i created a new resource listener but he just not work, i don't get any errors but the textures don't load. This is my code: https://gist.github.com/btripoloni/8904e130afcfef8b3345 Thanks
January 28, 201510 yr Author I again repeat my question why you are doing all this, instead of just compiling the mods to java bytecode. You need to add any new resource packs to Minecraft.getMinecraft().defaultResourcePacks (you need reflection). keep calm, all ruby code will be compiled, ruby for me is the best language in the world you should try. i don't understand how i add my resource pack into "defaultResoucePacks" exists any method to do this or i will do this in the hard way?
January 28, 201510 yr Author keep calm, all ruby code will be compiled, ruby for me is the best language in the world you should try.I am not talking about the act of compiling. I am asking why you are making all this custom loading code instead of using what FML already has, which is tested and reliable. i don't understand how i add my resource pack into "defaultResoucePacks" exists any method to do this or i will do this in the hard way? defaultResourcePacks is a List, you add to it in preInit (once). You have to access that field using Reflection. I'm loading nothing forge loads everything, but if you are talking about the "load" function in my other thread, this is a native function of ruby that load others ruby files, they will be compiled by jruby. about this bug: i fixed, changing the proxy to preInit(tanks to the tip ) the mod works now(with custom assets ) thanks, i learned a new java feature today
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.