Posted July 2, 20187 yr How do I call the AI that the skeleton has to stay away from the player for a mob that I am making?
July 2, 20187 yr This is how vanilla skeletons do it: private final EntityAIAttackRangedBow<AbstractSkeleton> aiArrowAttack = new EntityAIAttackRangedBow<AbstractSkeleton>(this, 1.0D, 20, 15.0F); 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.
July 2, 20187 yr Put your mob class in where AbstractSkeleton is. Add the task to your mob's AI task list. 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.
July 2, 20187 yr Author I get this error: "Bound mismatch: The type EntityPegasus is not a valid substitute for the bounded parameter <T extends EntityMob & IRangedAttackMob> of the type EntityAIAttackRangedBow<T>" https://pastebin.com/aRhGjMZ3 ^code
July 2, 20187 yr Does your mob implement IRangedAttackMob? If not, why not? 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.
July 2, 20187 yr Sorry, it doesn't extend EntityMob. I didn't actually look at your class. In that case, you'll have to duplicate the Task class and modify the declaration so that you don't need EntityMob (you will still need a superclass, probably EntityLivingBase). 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.
July 2, 20187 yr Author the entity now does not spawn https://pastebin.com/VqNzdBeZ ^EntityPegasus https://pastebin.com/F3dZivKY ^EntityAIAttackRangedBow clone Edited July 2, 20187 yr by ChaoticSoul
July 2, 20187 yr I'm not sure what's going on there. Are there any log messages? 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.
July 2, 20187 yr Author error: https://pastebin.com/5G7Ez1Y9 no crash but it does not spawn Edited July 2, 20187 yr by ChaoticSoul
July 2, 20187 yr It is crashing, its just that it doesn't take down the whole game. There's something causing a null reference exception. 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.