Can't have custom mob with slime AI!

Started by CarlTheCow on Wed, 10/02/2019 - 20:07

Topic category: Bugs and solutions

Last seen on 03:40, 14. Oct 2019
Joined Apr 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Can't have custom mob with slime AI!
Wed, 10/02/2019 - 20:07

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
 

Last seen on 04:26, 14. Oct 2019
Joined Sep 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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.

Do not AI bases if possible,…
Thu, 10/03/2019 - 09:25

Do not AI bases if possible, you are warned in the UI about this as not all functions work with AI bases.

Last seen on 03:40, 14. Oct 2019
Joined Apr 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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.

Last seen on 17:57, 6. Nov 2019
Joined Jan 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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.