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

Damaga

Discussion in 'Development' started by b3st_Thunder78, Aug 5, 2019.

  1. b3st_Thunder78

    b3st_Thunder78 Spider Jockey

    Messages:
    38
    How can one program that one gets no fall damage more?
     
  2. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
  3. b3st_Thunder78

    b3st_Thunder78 Spider Jockey

    Messages:
    38
  4. KielKing

    KielKing Zombie

    Messages:
    245
    GitHub:
    kielking
    the code feels nice today thank you for asking






    you can listen for the event EntityDamageEvent, then check if the cause is fall damage using EntityDamageEvent->getCause(), if it is, then cancel it
     
  5. Deniel

    Deniel Spider Jockey

    Messages:
    42
    GitHub:
    DenielWorld
    Or make a task that constantly does $player->resetFallDamage(); lmao
     
  6. Deniel

    Deniel Spider Jockey

    Messages:
    42
    GitHub:
    DenielWorld
    But the other solution is better)
     
  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.