Fireball NoDamge

Discussion in 'Plugin Development' started by orange_ghast, Jul 16, 2014.

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

    orange_ghast

    Hello,

    I was wondering how to code a plugin where when someone/something launches a fireball, it doesn't have block damage or fire. It would still have an explosion effect, but it wouldn't break blocks, along with not making any fire. It would still damage players.
     
  2. Offline

    TheMcScavenger

  3. Offline

    orange_ghast

    That completely removes the explosion, not just making it remove block damage. As I said, I want it to still have the effect and the player damage, but NOT the block damage.
     
  4. Offline

    artish1

    What you can do is go back to that page he gave you and instead of just e.setCanceled(true), you COULD do getWorld().createExplosion(x,y,z,power,setFire,breakblocks(put this to false),

    so something like .createExplosion(0,0,0,2F,false,false);
     
    NathanWolf likes this.
Thread Status:
Not open for further replies.

Share This Page