Posted February 18, 20223 yr Hey Guys, i've created a mob which souldn't be pushable by players (or any other mob) or explosions. i've tried overriding those methods in my entity class: @Override public boolean canCollideWith(Entity pEntity) { return false; } @Override public boolean canBeCollidedWith() { return false; } @Override public boolean isPushable() { return false; } @Override public boolean isPushedByFluid() { return false; } but the mob can still be pushed around by players. Is there any other method i need to override? Edited February 19, 20223 yr by Skyriis
February 19, 20223 yr Author fixed by overriding the @Override public void push(Entity pEntity) { } @Override public void push(double pX, double pY, double pZ) { } @Override public boolean ignoreExplosion() { return true; } methods as well.
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.