How to power a creeper without lightning.

Discussion in 'Plugin Development' started by DeadlyScone, Apr 28, 2012.

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

    DeadlyScone

    I cannot figure this one out. I know that there is a SetPowered method but not sure how to access it. I basically want to spawn a creeper at a location and set its power to true. Any help?

    anyone?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  2. Offline

    r0306

    Try this.
    Code:
    Entity entity = something.getEntity();
    if (entity instanceof Creeper) {
    entity.setPowered(true);
    }
     
  3. Offline

    DeadlyScone

    thank you, i will give it a try :)
     
Thread Status:
Not open for further replies.

Share This Page