Mobs Wont Attack Player

Started by codyfilms on Wed, 08/03/2016 - 22:35
Last seen on 02:17, 18. Jan 2018
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
Mobs Wont Attack Player
Sat, 07/15/2017 - 17:39 (edited)

anyrtime i make a mob that has the "attack aggresivly against<Player>" it wont work... idk whats going on...

heres the gradle log

|

|

\/

 

warning: [options] bootstrap class path not set in conjunction with -source 1.6
C:\Pylo\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_ganondorf.java:110: error: cannot find symbol
            this.targetTasks.addTask(10, new EntityAINearestAttackableTarget(this, EntityEntityPlayer.class, true));
                                                                                   ^
  symbol:   class EntityEntityPlayer
  location: class Entityganondorf
C:\Pylo\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_ganondorf.java:114: error: cannot find symbol
            this.tasks.addTask(1, new EntityAIWatchClosest(this, EntityEntityBat.class, 6.0F));
                                                                 ^
  symbol:   class EntityEntityBat
  location: class Entityganondorf
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.
2 errors
1 warning

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.

 

I already recompiled and nothing happend...

Edited by Klemen on Sat, 07/15/2017 - 17:39
Last seen on 03:24, 15. Dec 2017
Joined Dec 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
i just said how to fix this,
Thu, 08/04/2016 - 00:26

i just said how to fix this, on so many different forums! i told Klemen about this problem so as he said it will be fixed in the next update. if you want to fix it now it is pretty easy. Go into the code and in the ai tasks,change EntityEntityPlayer to be EntityPlayer. If you have this problem with other Entities, get rid of the first entity in their name, go to the top of the code (where the imports are) and import the entity you want. Mcreator's auto import is not working so you need to do it on your own.

Last seen on 22:47, 6. May 2017
Joined Jul 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
same problem
Thu, 08/04/2016 - 01:32

same problem

Last seen on 03:24, 15. Dec 2017
Joined Dec 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
don't make me type the same
Thu, 08/04/2016 - 01:55

don't make me type the same message ever again xD

Last seen on 02:17, 18. Jan 2018
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
ok sorry i didn't go through
Thu, 08/04/2016 - 04:21

ok sorry i didn't go through the forums :/

thank you tho :D

Last seen on 18:04, 12. Jan 2018
Joined Jul 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:don't make me type the same
Sun, 07/16/2017 - 20:26

@#3 I dont see EntityEntityPlayer anywhere. I see EntityPlayer but i have the same problem (mob wont attack me)

 

Last seen on 02:17, 18. Jan 2018
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
little update, that wasn't
Mon, 10/23/2017 - 07:07

little update, that wasn't the issue, it was just MCreator being edgy

Last seen on 14:38, 16. Feb 2018
Joined Mar 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I have the same problem…
Wed, 01/17/2018 - 15:50

I have the same problem however for me it is already EntityPlayer but still does not work

Last seen on 08:14, 24. Feb 2018
Joined Jul 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
If you want the mob to…
Thu, 01/18/2018 - 07:02

If you want the mob to attack anything then you have to add the ATTACK ON COLLIDE or select the ranged attacks option.

 

You have to have "Attack on collide" & also use the "Act aggressively towards..." AI task.