Mobs Wont Attack Player

Started by codyfilms on

Topic category: Help with MCreator software

Active 4 years ago
Joined Mar 2015
Points:
885

User statistics:

  • Modifications: 6
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 191
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
Active 2 months ago
Joined Dec 2015
Points:
873

User statistics:

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

Active 8 years ago
Joined Jul 2016
Points:
704

User statistics:

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

same problem

Active 2 months ago
Joined Dec 2015
Points:
873

User statistics:

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

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

Active 4 years ago
Joined Mar 2015
Points:
885

User statistics:

  • Modifications: 6
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 191
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

Active 9 months ago
Joined Jul 2017
Points:
693

User statistics:

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

 

Active 4 years ago
Joined Mar 2015
Points:
885

User statistics:

  • Modifications: 6
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 191
little update, that wasn't
Mon, 10/23/2017 - 07:07

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

Active 6 years ago
Joined Mar 2015
Points:
737

User statistics:

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

Active 3 years ago
Joined Jul 2016
Points:
1078

User statistics:

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