Topic category: Troubleshooting, bugs, and solutions
For some reason, I can't make my mob have the AI of a slime. Whenever I select the custom AI to be a slime, mcreator rejects it. Here is what the log says:
C:\Users\blah\MCreatorWorkspaces\frosted_isle\build\sources\main\java\net\mcreator\frosted_isle\MCreatorColdBlueSlime.java:83: error: incompatible types: EntityCustom cannot be converted to EntityCreature
this.tasks.addTask(1, new EntityAIWander(this, 1));
^
C:\Users\blah\MCreatorWorkspaces\frosted_isle\build\sources\main\java\net\mcreator\frosted_isle\MCreatorColdBlueSlime.java:87: error: incompatible types: EntityCustom cannot be converted to EntityCreature
this.tasks.addTask(5, new EntityAIPanic(this, 1.2));
^
C:\Users\blah\MCreatorWorkspaces\frosted_isle\build\sources\main\java\net\mcreator\frosted_isle\MCreatorColdBlueSlime.java:88: error: incompatible types: EntityCustom cannot be converted to EntityCreature
this.targetTasks.addTask(6, new EntityAIHurtByTarget(this, false));
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors
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. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
Says you need to remove ai tasks walk, panic, hurtbytarget.
Those are incompatible tasks for that ai mob base type.
Do not AI bases if possible, you are warned in the UI about this as not all functions work with AI bases.
Hi! Thanks for replying. So, two questions: How do I make a slime's texture transparent? The transparency ends up just being invisible when in game. Also, how do I change the color of the particle of the slime's "splash" when it his the ground? Also different sizes of custom slimes? I'm not sure if it is possible, i'm just wondering.
You could make a different mob that spawns for the slime, make a version of each slime in varying size, and on the base mob spawned, it kills that entity and spawns a random size of slime based on a random event? This could work but idk
I am not sure, but based on your tests, it seems that transparency is not supported by default. One would most likely need to alter rendering part of model with some OpenGL code to make them transparent.
Thanks! I was wondering why it was giving me a problem.