Mobs Wont Attack Player

Started by codyfilms on

Topic category: Help with MCreator software

Last seen on 09:13, 24. Nov 2020
Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 00:44, 29. Nov 2022
Joined Dec 2015
Points:

User statistics:

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

User statistics:

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

same problem

Last seen on 00:44, 29. Nov 2022
Joined Dec 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 09:13, 24. Nov 2020
Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 12:19, 4. Jun 2019
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 09:13, 24. Nov 2020
Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 16:24, 23. Aug 2018
Joined Mar 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
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 14:19, 6. Aug 2021
Joined Jul 2016
Points:

User statistics:

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