Bukkit Plugin Programmierung: Explosion ohne Damage an der Welt

08/07/2013 13:16 themrdomi#1
Hallo,
wie kann ich es machen, dass ich eine Explosion erschaffe, die aber Keinen Schaden an der Umwelt nimmt, nur an Spielern?
Folgenden Code hab ich bis jetzt:
Code:
world.createExplosion(p.getTargetBlock(null, 500).getLocation(), 7F);
LG
Domink
08/07/2013 13:30 ComputerBaer#2
Ich zitiere einfach mal die [Only registered and activated users can see links. Click Here To Register...]:
Quote:
boolean createExplosion(double x, double y, double z, float power, boolean setFire, boolean breakBlocks)
Creates explosion at given coordinates with given power and optionally setting blocks on fire or breaking blocks.
Und jetzt sag mir bitte nicht, dass du es nicht verstehst.