Not able to spawn horses?

Discussion in 'Plugin Development' started by VoidWhisperer, Jul 5, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    VoidWhisperer

    I'm using this code
    Code:java
    1. Horse horse = (Horse) p.getWorld().spawnEntity(p.getLocation(), EntityType.HORSE);


    and it's resulting in this error when it runs:
    Code:java
    1. Caused by: java.lang.IllegalArgumentException: Cannot spawn an entity for org.bukkit.entity.Horse


    Why? Why is the entitytype there if we can't spawn it?
     
  2. Offline

    VoidWhisperer

    I just want to spawn a horse, I'd rather not use a whole library/util thing
     
  3. Offline

    MiniDigger

    Then you have too wait till bukkit api is updated
     
Thread Status:
Not open for further replies.

Share This Page