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 Chicken

    Messages:
    1,650
    GitHub:
    HimbeersaftLP
  3. b3st_Thunder78

    b3st_Thunder78 Spider Jockey

    Messages:
    38
  4. KielKing

    KielKing Zombie

    Messages:
    271
    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:
    30
    GitHub:
    DenielWorld
    Or make a task that constantly does $player->resetFallDamage(); lmao
     
  6. Deniel

    Deniel Spider Jockey

    Messages:
    30
    GitHub:
    DenielWorld
    But the other solution is better)
     

Share This Page

  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.