Posted June 16, 20205 yr I want to change texture of a mob (derived from IronGolemEntity) if it is attacking. I supposed that attackTarget contain the current target LivingEntity of my mob, so I was checking on the renderer if the entity.getAttackTarget() != null . The problem is the value is always null. I was supposing the NearestAttackableTargetGoal would fill the value in ... public void startExecuting() { this.goalOwner.setAttackTarget(this.nearestTarget); super.startExecuting(); } ... Is me wrong? There is another way? Edited June 16, 20205 yr by Slexom Solved My mod: Earth2Java - Mobs [1.15.2]
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.