First you need to set a loop which gets all the blocks is the arena, then just check if the block youre checking is wood then set it to air, example: PHP: for($x = $startingx; $x < $endingx; $x++){//make sure that $startingx is lower than $endingxfor($y = $startingy; $y < $endingy; $y++){//make sure that $startingy is lower than $endingy for($z = $startingz; $z < $endingz; $z++){//make sure that $startingz is lower than $endingz if(Level::getBlock($x, $y, $z)->getId() === Block::WOOD){ Level::setBlock(new Vector3($x, $y, $z), Block::get(Block::AIR)); } }}} lets say my starting x is 10 and ending x is 50 so it qill get all blocks between x 10 to 50x do than to the y and z and youre pretty much done! BTW: make sure that youve setted up level instance like $this->getServer()->getLevelByName("yourworld");
Avoid using static call syntax in example code incorrectly. Instead, use the -> operator, along with predefined variables as recommended from https://github.com/sof3/forums-common-sense/wiki/Code-Environment