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

Removing Knockback made from TNT

Discussion in 'Development' started by r7vmc, Jul 5, 2018.

  1. r7vmc

    r7vmc Baby Zombie

    Messages:
    112
    GitHub:
    r7vmc
    Hi,
    As the title says
    I've tried setKnockback(); in EntityDamageByEntity, setMotion and $entity->Knockback();

    And all didn't work
     
  2. r7vmc

    r7vmc Baby Zombie

    Messages:
    112
    GitHub:
    r7vmc
    What I'm basically trying to do is making Slapper doesn't get knocked by TNT Explosion
     
  3. Sergey Dertan

    Sergey Dertan Silverfish

    Messages:
    18
    How do u set knockback? Directly to a player or in event object?
     
  4. r7vmc

    r7vmc Baby Zombie

    Messages:
    112
    GitHub:
    r7vmc
    Are you asking or you want to help me?
     
  5. Sergey Dertan

    Sergey Dertan Silverfish

    Messages:
    18
    I want to help, but I can't if I don't know enough
     
  6. r7vmc

    r7vmc Baby Zombie

    Messages:
    112
    GitHub:
    r7vmc
    I've tried both
     
  7. Sergey Dertan

    Sergey Dertan Silverfish

    Messages:
    18
    hm, can u send the code. And I think if changing knockback at event dont wotk, it may be a bug. I`ll try it myself
     
    Last edited: Jul 11, 2018
  8. r7vmc

    r7vmc Baby Zombie

    Messages:
    112
    GitHub:
    r7vmc
    nevermind i've found an alternative to fix my issue
     
  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.