Posted May 6, 20178 yr I have a hostile mob that is set to attack Zombies if the player is not around. This mob also spawns in the Nether and thus also attacks Zombie Pigmen. (I know this problem stems from Zombie Pigmen inheritance from the Zombie class) What might be a suggested way to prevent my mob from being automatically hostile Zombie Pigmen?
May 6, 20178 yr if(ent instanceof Zombie && !(ent instanceof PigZombie)) { } Magic. Edited May 6, 20178 yr by Draco18s 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.
May 6, 20178 yr You will need to write your own AI task probably. 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.
May 6, 20178 yr Author Alright, I suspected that might be the case. Thanks for helping me make sure there wasn't something obvious I should try.
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.