Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private void spawnTrapHorse(SpawnEntityEvent event) {
event.filterEntities(
entity -> !entity.get(Keys.HORSE_VARIANT)
.filter(HorseVariants.SKELETON_HORSE::equals)
.isPresent()
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment