Solved charged creeper spawn not working

Discussion in 'Plugin Development' started by Scipione, Jan 13, 2013.

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

    Scipione

    Hey all,

    i'm currently trying to spawn a charged creeper, but it don't seem to work.
    There is no error, the creeper just spawns normally.
    Here my code:
    Code:
    EntityCreeper ent = ((CraftCreeper)creeper).getHandle();
    ent.setPowered(true);
    i'm using bukkit 1.4.6 latest Beta Build

    Anyone knows if this is broken ?

    Thanks for reply :)
     
  2. Offline

    Ivan

    Code:java
    1.  
    2. Creeper creeper = (Creeper)world.spawnEntity(location, EntityType.CREEPER);
    3. creeper.setPowered(true);
    4.  

    Is the correct way ;) .
     
  3. Offline

    Scipione

    hm nvm my code is working .. i think i need some more coffee.. forgot somethin ^^
    But thanks for your help Ivan :)
     
Thread Status:
Not open for further replies.

Share This Page