1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Chance underwater options!?¿

Discussion in 'Facepalm' started by M4nt0s, Jul 19, 2017.

  1. M4nt0s

    M4nt0s Spider Jockey

    Messages:
    31
    GitHub:
    M4nt0s
    First of all: This is for a Minigame!

    My Question:
    Is there a way to get these Air Bubbles while playing normal MCPE. You are walking on dirt, stone, grass.......

    And if you go under water the Air Bubbles are away.

    So you twist the 2 options.

    I hope you understand^^

    Have a nice day.
     
  2. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
    Yes, there is away.
    But the problem is, that it only lasts a split second.

    The water bubble particle isn’t meant to be above water, so it doesn’t last as long. It disappears as suddenly as you spawn the particle.

    I advise looking into other particles :)
     
  3. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    I have a feeling that he could be talking about the air bubbles which appear in the ui as soon as you dive into water and which indicate how much air you have left
     
    HimbeersaftLP and M4nt0s like this.
  4. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    You'll need to overwrite Entity::isInsideOfWater() probably through PlayerCreationEvent, then invert the bool vaules you get from isInsideOfWater().
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.