Started by
EraAlabel
on
Topic category: Help with MCreator software
Whenever I try to make a slime mob, it says "Recompilation has failed because compiler found errors. It was caused by the slime (I have the skin and I selected a slime model.) I want to fix this.
could you post anymore info on the error message?
The error message reads: (and I've checked the slime assets and everything is validated.)
Recompilation has failed because compiler found errors.
Most likely, this was caused by the last mod you made.
Edit this mod and make sure you fill all the form elements (Which I've checked and they're all validated.)
There are some things you can do:
I'm not sure I want to remove the mod, but I'd like to fix it. Any help?
post the console message (if there is one), and what is the name of the texture and the mob?
error: incompatible types: EntityplaguedSlime cannot be converted to EntityCreature
this.tasks.addTask(1, new EntityAIWander(this, 0.8D));
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 22.368 secs
C:\Users\Harry\Downloads\MCreator178\forge>
Task completed with return code 0 in 22914 milliseconds
the name of the mob is PlaguedSlime
https://cdn.discordapp.com/attachments/427050963371556867/474119093679685632/unknown.png
what did you call the texture, it must be the same as the mob? oh btw in the future, maybe remove your name from the error message before posting it
This error has nothing to do with a name, a texture or a model. It is actually because the AI task needs as a parameter instance of EntityCreature, but your entity is not a child of EntityCreature or one of its children. Solution? Make your entity class extend EntityCreature or one of its children.
How do I do that?