#Game crashes, ResourceLocation not found...
20 messages · Page 1 of 1 (latest)
If you're new to modding, I advice using Fabric instead of Forge. (less hostile community, better documented wiki, better tools)
i've changed bendy lib to 2.1.2 and i removed lombok... it still doesn't work
Can you share a full log? (not just that line)
Forge is broken 🤣 ||really, use fabric||
So, that class should exists in MC, maybe forge remapper or something is broken
My forge dev environment is still setting up (way slower than fabric), I'll check it when it's done.
Can you share your build.gradle?
So, I don't see any issue with your buildscript
- Have you used
getIntellijRuns? - Can you use
net.minecraft.resources.ResourceLocationclass in your main class? (new ResourceLocation("modid", "testid"));
yup, i used genIntellijRuns
i'm trying to use it in my main class rn
it works on my main class
That class should exists, probably forge toolchain is broken and it didn't generate that class...
I've tried using your buildscript, and it worked (no error), i have no idea what went wrong..
ok no pb, thx for helping !
I think, try --refresh-dependencies or using fabric (or architectury loom for forge builds)
well i fixed it...
don't know how
i just changed this : PlayerAnimationFactory.ANIMATION_DATA_FACTORY.registerFactory(new ResourceLocation(MODID, "animation"),42,PlayerAnimator::registerPlayerAnimation);
to : ResourceLocation resourceLocation = new ResourceLocation(MODID, "fr");
//Set the player construct callback. It can be a lambda function.
PlayerAnimationFactory.ANIMATION_DATA_FACTORY.registerFactory(resourceLocation,42,PlayerAnimator::registerPlayerAnimation);