SetRemainingAir that will update the oxygen meter?

Discussion in 'Plugin Development' started by petrifiednightmares, Apr 30, 2011.

Thread Status:
Not open for further replies.
  1. I know that setRemainingAir() can be used to set the amount of oxygen the player still has, but the problem is the client doesn't update the oxygen meter. Is there a way to fix this?
     
  2. Offline

    Dreadreaver

    Afaik there's no easy way to update the oxygen meter as it's client side. I say "no easy way" because I think the following might work:
    What you could do is create like a "bubble" of air at the users head(just get the block of the users head and set it to air for like a second) and then it should fill up the oxygen meter again.
     
  3. That's the solution I was thinking, but I was afraid it could potentially mess up the water (by causing surrounding waters to become active water blocks for instance), but it is worth a try.

    Thanks!
     
  4. Offline

    Deathly

    Set the oxygen and send the client a blockmpacket, so that he thinks it was air? Duno if it works..

    It is possible, but I'm on my iPad so I cant try it now :)
     
Thread Status:
Not open for further replies.

Share This Page