Spawning a Custom Horse

Discussion in 'Plugin Development' started by MrAwellstein, Feb 10, 2014.

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

    MrAwellstein

    Okay, so I cant figure out for the life of me how to spawn a Horse, (im not taking about the EntityType.Horse) I want to create a skeleton horse and spawn it.
    I want to be able to do something like this:
    Code:
    Horse a = new Horse();
    a.setTamed(true);
    a.setAdult();
    a.setVariant(Horse.Variant.SKELETON_HORSE);
    
     
  2. Offline

    xTrollxDudex

    MrAwellstein
    World#spawn(Location, Class)

    The class is the entity class, in your case, it is Horse.class
     
  3. Offline

    MrAwellstein

    I'm trying to do this without NMS (I'm pretty sure you can't extend the horse class without NMS)
     
  4. Offline

    lewysryan

  5. Offline

    MrAwellstein

  6. Offline

    xTrollxDudex

    MrAwellstein
    When did I ever hint that I was using NMS...
     
    swampshark19 likes this.
  7. Offline

    jordanzilla02

    This is possible without NMS as you can use the same code but you would have to get the players location and spawn the horse entity in the location that the player was in when the command or event was executed.
     
  8. Offline

    MrAwellstein


    Sorry, you wern't. I was attempting to create a custom horse class, or just a class in general, but I couldn't do it. I was getting confused with other Bukkit API tutorials, mainly the one for custom mobs. >.<
     
Thread Status:
Not open for further replies.

Share This Page