Skip to content

Instantly share code, notes, and snippets.

@aarontwf
Created February 23, 2014 01:26
Show Gist options
  • Save aarontwf/9165290 to your computer and use it in GitHub Desktop.
Save aarontwf/9165290 to your computer and use it in GitHub Desktop.
World world = Bukkit.getWorlds().get(0);
Horse horse = (Horse) world.spawnEntity(new Location(world, 0, 128, 0), EntityType.HORSE);
horse.setCustomName("Spawn Point");
horse.setCustomNameVisible(true);
WitherSkull skull = (WitherSkull) world.spawnEntity(new Location(world, 0, 128, 0), EntityType.WITHER_SKULL);
skull.setPassenger(horse);
@jimmikaelkael
Copy link

Exactly what I needed: thx.
No packet stuff to achieve this, great !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment