How to make a player ride a spider/wolf

Discussion in 'Plugin Development' started by iliasdewachter, Nov 26, 2012.

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

    iliasdewachter

    Hi all,

    How can i make the player ride a wolf/spider?

    I was thinking like: rightclick on it with your hand and you mount it,

    Thanks
     
  2. Perhaps set the player as the passenger to the wolf/spider? Not sure sorry.
     
  3. Offline

    LukeSFT

    Does it work??
     
  4. Offline

    Kyozum0

    you cold make a pig with saddle spawn inside and invisible a spider/wolf then right clicked so you can control it with carrots !
     
  5. Offline

    kyran_

    Heh I like this idea but I don't think it would work that well. Unless you could get the spider or wolf to stay locked to the pig's coordinates and direction and prevent them from attacking things. I don't think it's possible to set the rider of a spider to anything other than a skeleton and it's impossible for a wolf. Short of making your own rideableSpider mob that extends spider, I don't think this is doable.
     
  6. Offline

    Kyozum0

    you can get the spider on the pig location ! there must be a way to get the spider to be like peacful, wait you an spawn torches under ir to dont attack, spders dont attack n light
     
  7. Offline

    iliasdewachter

    what about canceling his target event?
     
  8. Offline

    kyran_

    Then you'd have a trail of torches everywhere you go. It would be easiest to just extend spider and maybe nest a pig object inside it. There's no way to dismantle a spider's ai and have it snap to the location of another animal. (like I said, unless you create your own subclass and set it as a new mob)

    This would be a better idea. I suppose you could store the pig and spider entities and pass the pig events over to the spider so they do the same things.
     
  9. Offline

    InflamedSebi

    Aren't all mobs an instance of the same Entity class? so all should have the same properties ... I already saw some wierd mob riding creations ... like a squid riding a squid riding a squid ... 5 times ... it was a tower of them ... so there seems to be an option to make a mob ridable ... and maybe there is also a option to enable a saddle on all mobs ond the carrot thing...
     
  10. Offline

    fireblast709

  11. Offline

    iliasdewachter

    Fireblast, I know about that, but how do you move it?
     
  12. Offline

    ZeusAllMighty11

    You would have to do a lotttt of work. If you didn't know entites were mountable; I don't think you're up for it.


    There's a topic in the resources section how to edit the behaviour.
     
Thread Status:
Not open for further replies.

Share This Page