We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is:
Methods canTarget() and targetOption() don't working.I created new zombie class with overrided these methods and zombie want not to attack villagers.
canTarget()
targetOption()
Code;
@Override public boolean canTarget(Entity entity) { return entity instanceof Villager || entity instanceof Player; } @Override public boolean targetOption(EntityCreature creature, double distance) { if(distance > 100D || creature.isClosed() || !creature.isAlive()) return false; return creature instanceof Villager || (creature instanceof Player && !((Player) creature).isCreative()); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Info
This is:
Your issue / suggestion
Methods
canTarget()
andtargetOption()
don't working.I created new zombie class with overrided these methods and zombie want not to attack villagers.Code;
The text was updated successfully, but these errors were encountered: