Topic category: Troubleshooting, bugs, and solutions
Step 1: Create the mob, add the tasks you wish to add that involve any interactions with EntityPlayer.
Step 2: You WILL get a crash, but ignore it.
Step 3: Edit the code of the mob.
Step 4: Scroll down a bit in the code until you find a section similar to this: https://gyazo.com/fcae61c125283c9222e46ea4b26bd924
Step 5: Where you see "EntityEntityPlayer.class", Remove the one of the "Entity" words from it so it should say "EntityPlayer." Here's an example: https://i.gyazo.com/8fa7dad02b304cb4ae3112c32b78b233.mp4
Step 6: IF there are any other "this.tasks.addtask" with the "EntityEntityPlayer.class" Just do the same thing. It should work, just click "Save and Recompile" up at the top of the tab.
If there are any issues, reply to this, and I can try to clear up any confusion.
This solution works ONLY on MCreator 1.6.9 for Minecraft 1.9.4, This may NOT be necessary for earlier versions.
I do not mean to be rude, but i already found this bug, told pylo, and they have it as a bugfix. I have also notified the community.
Also in order to fix this for other mobs you need to remove the first Entity in the mobs name, and then in the second import section near the top of the code type,
import net.minecraft.entity.monster.(the name of your mob)
Example:
i want my mob to attack a zombie. in the task change EntityEntityZombie to EntityZombie.
then in the second import section i added... import net.minecraft.entity.monster.EntityZombie
Practical Mod Maker
Um, you said you notified Pylo and they have it as a bugfix. When will this bugfix be released?
oh it is in the 1.10 changlog not released yet
Worked! Thanks alot!
but crashed my minecraft,
fixed the ai but crashed minecraft
"the mob is with the crashes no errors"
Log:
:runClient FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':runClient'.
> Process 'command 'C:\Pylo\MCreator169\jdk64\bin\java.exe'' finished with non-zero exit value -1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 49.29 secs
C:\Pylo\MCreator169\forge>
Task completed with return code 0 in 49971 milliseconds