Server-sided Hovering (Flying)

Discussion in 'Bukkit Discussion' started by Canownueasy, Aug 24, 2011.

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

    Canownueasy

    So we are yet to discover a way to emulate Zombe's hovering server-sided. Is there any way bukkit could be less restricted, and with that I mean, don't cancel actions after they already happen but instead cancel them all together?

    Anyway I was wondering if anybody came up with a solution to keep your character still in the air.
     
  2. Offline

    Lolmewn

    onPlayerMove(PlayerMoveEvent event){
    if(player.isFlying){
    event.setCancelled(true)
    }
    }
     
  3. Offline

    Canownueasy

    This is not hovering at all and also restricts the player from looking around, or, in fact, doing anything while "hovering".
     
  4. Offline

    Lolmewn

    Then that doesn't work. Never used PlayerMove, so I wouldn't know!
     
  5. Offline

    vildaberper

    Its not possible without a client mod, but you could always place a glass block under the player. xD
     
  6. Offline

    Celeixen

    I don't think it would be possible because isn't the falling of the player client side, so unless it thinks there is a block under the player the players gonna fall.The only way would be to trick the client into thinking there is always a block under the player.
     
  7. Offline

    Appel_NL

    But that will result in a bug when you try to build low. So when you want to build low it will still think there is a block, so the block will be placed on the user's location instead of in front of you. Or you have to make a block yourself that collides with yourself, but not with your pointer, as when you try to build something. Is that a possibility?
     
  8. Offline

    Cosmic Break

    spout flight.
     
    desht likes this.
  9. Offline

    Taco

    I've accomplished this with boats by setting the boat's upward velocity to their average downward velocity, thus creating "floating" as they're literally going 0 blocks/second in the Y direction. The plugin I accomplished this in isn't public, so I won't release the source, but you get the idea, good luck.
     
Thread Status:
Not open for further replies.

Share This Page