Flocrow Posted July 10, 2022 Posted July 10, 2022 I was creating a mod and added a few blocks, items, recipes, loot_drops, etc. And right after I've added some tools items this error appeared. Caused by: net.minecraft.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: .DS_Store: Please help fix this. Quote
warjort Posted July 10, 2022 Posted July 10, 2022 Use an excludes in your jar task configuration to ignore .DS_Store files. https://docs.gradle.org/current/dsl/org.gradle.api.tasks.bundling.Jar.html#org.gradle.api.tasks.bundling.Jar:excludes I am surprised gradle doesn't automatically exclude them? Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
warjort Posted July 10, 2022 Posted July 10, 2022 Actually, you will probably be better off doing it the processResources. So it doesn't even get copied into your build folder (used by runclient) Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
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.