Hello ! Here's a code that will work! PHP: public function addExplosion(Player $player, $x, $y, $z){ $lvl = $player->getLevel(); $pos = new Position($x, $y, $z, $lvl); $explosion = new Explosion($pos, 6, null); $explosion->explodeB(); } Then put this code in the trigger for your explosion: PHP: $this->addExplosion($player, $x, $y, $z);
Function parameters are too narrow. You can optimize this code PHP: public function addExplosion(Position $pos, int $force = 6){ $explosion = new Explosion($pos, $force, null); $explosion->explodeB();}
bon on peut parler fr ?xD je sais mais le problème c que je veux quand meme les casser mais sans drops.