Posted September 3, 20187 yr Hey guys, could anybody give me an example or advice how to use the task "AttackEntityEvent"? I want that my mob attacks players and villagers. Like a zombie. I have extended my mob class with EntityZombie but my entity doesnt act like once. DeBugger Edited September 3, 20187 yr by DeBugger
September 3, 20187 yr That is not what events are for. Events are "Hey! This thing happened! Does anyone want to do anything about it!?" Not "Do you want to do this thing?" If you want your entity to attack, you need to give it the AIMeleeAttack task (go look at EntityZombie). Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
September 3, 20187 yr Author Okay, thank you. Is the AIMeleeAttack task right so: this.tasks.addTask(2, new EntityAIAttackMelee(this, 1, true)); ?
September 3, 20187 yr Yes Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.