Posted July 28, 20205 yr I try answer from stackoverflow: https://stackoverflow.com/questions/3923129/get-a-list-of-resources-from-classpath-directory And it work correctly when I run game from my IDE(Intellij Idea). But when I build mod, put jar in /mods/ and run Minecraft from launcher, it method give empty filelist. Hovewer, content of files in folder are load fine. What is true way to get list of files in directory in resources? Thx in advance!
July 28, 20205 yr Why? In the context of modding you should be using ResourceLocation and inputting the path manually. It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".
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.