Creating a HorseInventory Menu?

Discussion in 'Plugin Development' started by TheHandfish, May 9, 2014.

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

    TheHandfish

    Is there a way to create an inventory for the horse you're sitting on? Or rather:

    How do I display my horse in a virtual inventory I've made? (through Bukkit.createInventory)

    Thanks!
     
  2. Offline

    BeefyPlays

    TheHandfish like the one you would see if you were riding a donkey with a chest on it?
     
  3. Offline

    TheHandfish

    BeefyPlays: Well, when you press E and you're on any horse, it shows you the horse. So, yeah.
     
  4. Offline

    000nick

    May be client side, but I am not entirely sure.
     
  5. Offline

    tryy3

    I haven't tested, but it should work to spawn a horse somewhere, get the horse inventories type and then use createInventory(InventoryHolder owner, InventoryType type);
     
  6. Offline

    TheHandfish

    tryy3: Thing is, Horses have their own type of inventory, so you can't create it with InventoryType. :/
     
  7. Offline

    tryy3

    TheHandfish
    Well you can get the InventoryType if you spawn a horse and get its inventory then use .getType() I typed it out with out getting any errors but I dont know if it will work or not.
     
  8. Offline

    TheHandfish

    tryy3 I'll try that. Thanks. :)
     
Thread Status:
Not open for further replies.

Share This Page