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

EntityRegainHealthEvent

Discussion in 'Development' started by SavionLegendZzz, Feb 25, 2017.

  1. SavionLegendZzz

    SavionLegendZzz Slime

    Messages:
    75
    GitHub:
    savionlegends
    Ok im not so sure but for the 'regain' reason which one is hunger. Like which one means a player/entity regains health from hunger?

    Code(from EntityRegainHealthEvent):
    PHP:
    const CAUSE_REGEN 0;
    const 
    CAUSE_EATING 1;
    const 
    CAUSE_MAGIC 2;
    const 
    CAUSE_CUSTOM 3;
    const 
    CAUSE_SATURATION 4;
     
  2. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    I think CAUSE_EATING is outdated, so try CAUSE_SATURATION.
     
    kaliiks and HimbeersaftLP like this.
  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.