Posted June 18, 201411 yr I have custom mob (based on EntityGolem). I would like to avoid behaviour when custom mob being pushed by player or other mobs. I tried to set initial coordinates on every tick, but it looks glitchy. Any suggestions how to solve this problem? Thanks.
June 18, 201411 yr Override the canBePushed() method so that it always returns false. This method will be called automatically during collisions with your entity. Check out my tutorials here: http://jabelarminecraft.blogspot.com/
June 19, 201411 yr Author I tried it, but for some reason it didn't helped – still if come close to the mob it's being slowly pushed away. Maybe I'm doing something wrong. Can you please check my class: http://pastebin.com/rM87GRun Thanks
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.