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

Can't damage entity

Discussion in 'Development' started by Kyd, Mar 18, 2018.

  1. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    I've created custom class for guardian entity, but I'm not moving the entity or doing anything with it, so entityBaseTick execute only when someone collide with the entity... That means until someone collide with it attackTime is not getting decreased and I can't hit the entity because it's higher than 0... Please help
     
  2. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    My temporary solution is creating task that execute entityBaseTick of entities every 0.5 seconds, but if you know any better way to do it, then tell me please :(
     
  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.