Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryantheleach/ce365dccbced5cf2f7a64efde2d01523 to your computer and use it in GitHub Desktop.
Save ryantheleach/ce365dccbced5cf2f7a64efde2d01523 to your computer and use it in GitHub Desktop.
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