Can't have custom mob with slime AI!

Started by CarlTheCow on

Topic category: Troubleshooting, bugs, and solutions

Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can't have custom mob with slime AI!

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
 

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Says you need to remove ai…
Thu, 10/03/2019 - 04:27

Says you need to remove ai tasks walk, panic, hurtbytarget.

Those are incompatible tasks for that ai mob base type.

Joined Apr 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi! Thanks for replying. So,…
Thu, 10/03/2019 - 21:27

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.

Joined Jan 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You could make a different…
Fri, 10/04/2019 - 14:43

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…
Fri, 10/04/2019 - 15:08

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.

Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks! I was wondering why…
Sun, 05/31/2020 - 00:54

Thanks! I was wondering why it was giving me a problem.