Topic category: Help with MCreator software
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...
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.
same problem
don't make me type the same message ever again xD
ok sorry i didn't go through the forums :/
thank you tho :D
@#3 I dont see EntityEntityPlayer anywhere. I see EntityPlayer but i have the same problem (mob wont attack me)
little update, that wasn't the issue, it was just MCreator being edgy
I have the same problem however for me it is already EntityPlayer but still does not work
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.