Topic category: Help with MCreator software
So I was trying to create a bipedal mob that attacks you just like any other monster... I first tried to base the AI off Zombie or something but it gives me the same error that I posted below. This error also happened when I tried to define custom AI tasks such as Act Agressively Against Player, Wander Around, etc.:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
C:\Pylo\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_lynchmob.java:116: error: cannot find symbol
this.targetTasks.addTask(5, new EntityAINearestAttackableTarget(this, EntityEntityPlayer.class, true));
^
symbol: class EntityEntityPlayer
location: class Entitylynchmob
Note: C:\Pylo\MCreator169\forge\build\sources\main\java\mod\mcreator\mcreator_lynchmob.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
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.
Please help me... Thanks!
I have the similar problem. It is a bug. I was told that the developers have not yet found a solution.
@#1 We found the solution. This will work in next update.
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.
@#2 what code?
@#2.1 no, im a fool, sorry '-' i didn't know what code :p
do you understand now?
I too am having this issue! Great to know that I'm not the only one, but none-the-less it is quite annoying.
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.
@#5 Hey, I was wondering how to get into the "code"?
@ahig:
There are no Dubble Entities, Except at the end of a few codes saying;
Entity entity = this;
@#5
I think I found out what the code is, but where are the ai tasks???
@#6
Whatever you do! do not try that, I just tryed it and it messed things up!
@#6.1 Trust me I figured that out the hard way. I do not see any other codes like he is referring to :/
@#6.1.1 ikr