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

Want to turn off daylight burning for zombies or skeletons.

Discussion in 'Development' started by Nora1903, Jul 3, 2018.

  1. Nora1903

    Nora1903 Slime

    Messages:
    82
    GitHub:
    cuongvnz
    Like the title, i'm using PureEntitiesX and how can i turn off burn by daylight for zombies and skeletons? Thanks
     
  2. Nora1903

    Nora1903 Slime

    Messages:
    82
    GitHub:
    cuongvnz
    Need help
     
  3. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    I think the only way to do that is commenting/removing out the part of code that does that for each entity that burns at daytime (List).
    Code which has to be removed/commented out:
    PHP:
    $time $this->getLevel() ? $this->getLevel()->getTime() % Level::TIME_FULL Level::TIME_NIGHT;
    if(
    !
    $this->isOnFire()
    && (
    $time Level::TIME_NIGHT || $time Level::TIME_SUNRISE)
    ){
    $this->setOnFire(100);
    }
     
  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.