Posted May 19, 20178 yr I have a lot of resources overall (blockstates, models, and textures), and I've gone through various stages of adding and removing different ones. There's a decent chance that I now have unused files sitting around taking up space, but I can't think of an efficient way to find these. Is there anything I can do in code to tell me which things in my resources folder don't get used?
May 19, 20178 yr One way to do this would be to create a Set<ResourceLocation> somewhere, then set a breakpoint in SimpleReloadableResourceManager#getResource with a condition to check that the ResourceLocation's domain is your mod's resource domain and an evaluated expression that adds the ResourceLocation to the Set. You can then compare the contents of the Set to the files in your assets directory and see if there are any obvious unused files. Edited May 19, 20178 yr by Choonster Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.