How i create one creeper explosion

Discussion in 'Plugin Development' started by Tatsunow, Feb 16, 2014.

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

    Tatsunow

    Hello, I'm Tatsunow and I want to create an explosion that will not break that blocks most damage, can explain to me any?
    Att
    Tatsunow.
     
  2. Offline

    Wazup93

    What Do you mean exactly ? .. you want to make an explosion at a certain place or what ?

    Tatsunow
    As i knew of what u said i'll give u a code that will create an explosion at a certain location ..
    p.getWorld().createExplosion(x, y, z, (float) 2.0, false, false);
    Now in this code you'll be putting the x y and z then the POWER of the explosion as a float and the the first false is for creating random fire places .. and this helps after the explosion to make like 3 to 4 fire places on the ground around you ... and the second false is about the Ground hurting as if false it wont break blocks but it'll stay give damage as an explosion !
    Wish ihelped you out :D !
    DarkWolverZBoss

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 6, 2016
  3. Offline

    Tatsunow

    I want, one fake explosion, what give damage and not explode the blocks.
     
  4. Offline

    alex123099

    Tatsunow
    The code he gave you is exactly what you need, an explosion effect that damages the players without breaking blocks.
     
Thread Status:
Not open for further replies.

Share This Page