Make mob passenger be higher up on player

Discussion in 'Plugin Development' started by oceantheskatr, Mar 3, 2016.

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

    oceantheskatr

    Hi, when I make a mob ride a player the mob will sit right in the player's head and cause them to not be able to see. I was wondering if I'd be able to make the mob be higher up. The only thing I can think of is to maybe put the mob on some sort of invisible entity, and then make that entity my passenger. I will try to do that now, however help would be appreciated.

    Thanks!

    ss+(2016-03-03+at+08.45.29).jpg ss+(2016-03-03+at+08.51.47).png
     
  2. Offline

    teej107

    @oceantheskatr I'm not sure if this only applies to minecarts but on them, they have NBT data to adjust on how the passenger sits.
     
  3. Offline

    oceantheskatr

    @teej107 Okay thanks, I'll look in to that and see if it helps :)
     
  4. Offline

    MisterErwin

    @oceantheskatr If that is not the case: Use an invisible Entity between the real passenger and the player
     
  5. Offline

    I Al Istannen

    @MisterErwin Problem with that is, that the user can only hit the invisible entity. If you hide it completly (packets,...) the client won't recognize it and the orignal rider won't be rendered correctly. You could try using an arrow, as that doesn't occupy that much of the screen. Isn't that fancy though.
     
  6. Offline

    oceantheskatr

    I changed the way my plugin was set up and implemented the invisible entity suggestion, here it is in action :)
    ss+(2016-03-04+at+01.06.26).jpg

    The different ingots represent different tiers of rabbits, featuring an invisible slime between the ingot and the rabbit!
     
  7. Offline

    teej107

    @oceantheskatr How far did you get with the minecart idea? Or did you not want to use NMS?
     
  8. Offline

    oceantheskatr

    While continuing searching I found this idea so I decided to implement it instead. NMS isn't really something I want to get in to yet.
     
Thread Status:
Not open for further replies.

Share This Page