Created
February 23, 2014 01:26
-
-
Save aarontwf/9165290 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Exactly what I needed: thx.
No packet stuff to achieve this, great !