Ignite a Creeper

Discussion in 'Plugin Development' started by TheNewTao, Jan 28, 2016.

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

    TheNewTao

    Hi,

    I was wondering how can I ignite a creeper, like set it to explode. What I am doing spawning a creeper and I create a BukkitRunnable and set it to explode in 10 ticks, how can I do that?

    I was told that I could try to mess around with this:
    Code:
    ((CraftCreeper)c).getHandle().a(explosion, world, blockposition, iblockdata))
    and maybe that would world, but I do not understand the Explosion and IBlockData class. Also what is the difference between Location and BlockPosition?

    Thank you
     
  2. Offline

    DoggyCode™

    Maybe spawn a lightening on the creeper's location? I don't know...
     
Thread Status:
Not open for further replies.

Share This Page