getTicksLived()

Discussion in 'Plugin Development' started by KaiPol, Dec 3, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    KaiPol

    Hello! Can someone explain how getTicksLived() would work? Also how long is a tick and what is the default tick amount for an entity if I just spawned it(for example, a wolf.)
     
  2. Offline

    The_Doctor_123

    1 tick = 0.05 seconds or 50 milliseconds(supposing there's no lag)

    A newly spawned entity has 0 ticks lived.
     
    KaiPol likes this.
  3. Offline

    masons123456

    There are 20 ticks in a second, ticks lives returns they number of ticks since the entity spawned
     
  4. Offline

    KaiPol

    While using ticks is it a double or an integer?
     
  5. Offline

    The_Doctor_123

    KaiPol
    Ticks are dealt with as an integer since there's no such thing as a fraction of a tick. :p
     
    KaiPol likes this.
  6. Offline

    KaiPol

    Okay, thanks :)
     
Thread Status:
Not open for further replies.

Share This Page