Mob won't act aggressive...

Started by CommanderNooby on Sat, 12/31/2016 - 22:33

Topic category: Help with MCreator modding

Last seen on 20:34, 11. Mar 2017
Joined Aug 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Mob won't act aggressive...
Sat, 12/31/2016 - 22:33

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.

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

Last seen on 20:34, 11. Mar 2017
Joined Aug 2014
User points:

Statistics:

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

Open code of your element and
Sat, 12/31/2016 - 23:24

Open code of your element and look for the EntityEntityPlayer