Mob won't act aggressive...

Started by CommanderNooby on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Mob won't act aggressive...

I'm trying to make a boss mob. I gave it custom AI with the tasks "Act aggressively against (player)" and "attack on collide." I get this.

:clean
:deobfCompileDummyTask
:deobfProvidedDummyTask
:sourceApiJava
:compileApiJava UP-TO-DATE
:processApiResources UP-TO-DATE
:apiClasses UP-TO-DATE
:sourceMainJava
C:\Pylo\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_twilightguardian.java:110: error: cannot find symbol
            this.targetTasks.addTask(1, new EntityAINearestAttackableTarget(this, EntityEntityPlayer.class, true));
                                                                                  ^
  symbol:   class EntityEntityPlayer
  location: class Entitytwilightguardian
1 error
: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:
BUILD FAILED
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Total time: 2 mins 44.057 secs
C:\Pylo\MCreator169\forge>
Task completed with return code 0 in 167076 milliseconds

With everything else I try, it just wanders around and acts passive.

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just mistake in version of
Sat, 12/31/2016 - 22:44

Just mistake in version of Mcreator that you use. In code change EntityEntityPlayer to EntityPlayer

Joined Aug 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Just mistake in version of
Sat, 12/31/2016 - 22:56

@#1 How would I go about doing that? I'm using MCreator 1.6.9.

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Open code of your element and
Sat, 12/31/2016 - 23:24

Open code of your element and look for the EntityEntityPlayer