Is it possible, when you create an explosion to cancel the sound created by it without the use of Spout?
I mean if you are going to just have a single explosion (not multiple like a tower of tnt) then you can get the blocks around it, random gen each block if its bigger (maybe smaller) then the resistance value the turn it into air and move onto the next block.
I don't think that you can end up doing what you want without spout, sorry to disappoint you... If anything, I would suggest using the smoke effects that you CAN generate with bukkit(the smoke from fire).
World.createExplosion(Location, 0F); <- will make the sound and effect but no damage to entitys or blocks.
I believe the latest RB allows triggering of sounds for the clients, so in theory there should be a way to cancel them.
Type Effect. In eclipse and wait for the list to show up. As you see, explosion is not one of the effects that can be sendt to the server. But I repeat what I said a few posts up: to create an explosion with no damage to terrain and entities do someWorld.createExplosion(player.getLocation(), 0F);
Hey how would you allow it to damage other players, but not blocks? Set it to 4f then disable tnt in worldguard?
To create a "fake" explosion (one that damages nothing): world.createExplosion(loc, 0.0F); To create a real explosion (power of 4 is equivalent to TNT): world.createExplosion(loc, 4.0F); To prevent damage to blocks but still allow damage to entities, set up a handler for EntityExplodeEvent, and cancel the event. To prevent damage to some or all entities, set up a handler for EntityDamageEvent and check for a cause of ENTITY_EXPLOSION and/or BLOCK_EXPLOSION.