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

Solved Charged Creeper

Discussion in 'Development' started by Mr174, Apr 5, 2019.

  1. Mr174

    Mr174 Baby Zombie

    Messages:
    187
    GitHub:
    mr174
    Ok so i'm going to try my best to explain this.
    So you know the Villager has $this->setProfession();
    Is there a way to turn a creeper into a charged creeper? I don't really see anything NetworkID, function, ETC
    I've been looking around no luck. Hoping someone could help me out!
     
  2. KielKing

    KielKing Zombie

    Messages:
    245
    GitHub:
    kielking
    it looks like you're either using a spoon, or using TeaSpoon
    but in TeaSpoon it is
    PHP:
    /** @var Creeper $entity */
    $entity->setIgnited(true);
     
  3. Mr174

    Mr174 Baby Zombie

    Messages:
    187
    GitHub:
    mr174
    Nope PMMP 7.0
    spawnTo Function
     
    Last edited: Apr 5, 2019
  4. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    That isn't for changing a creeper. That's obviously for igniting it.
    This code works for showing the creeper as charged to the client.
    PHP:
    $entity->setGenericFlag(self::DATA_FLAG_POWERED$bool);
     
    Muqsit and Mr174 like this.
  5. Mr174

    Mr174 Baby Zombie

    Messages:
    187
    GitHub:
    mr174
    Thank you
     
  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.