public function resetGame() { parent::resetGame(); $this->round = 0; }
public function resetGame() { for ($x = -1; $x <= 12; $x++) { for ($z = -$this->zCount; $z <= $this->zCount; $z++) { $this->getWorld()->setBlock(new Position($x, $this->configs["y"], $z, $this->getWorld()), Block::get(Block::AIR)); } } parent::resetGame(); $this->getWorld()->setSpawnLocation(new Position(0, $this->configs["y"] + 2, 0, $this->getWorld())); $this->getWorld()->setBlock(new Position(0, $this->configs["y"], 0, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(1, $this->configs["y"], 0, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(-1, $this->configs["y"], 0, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(0, $this->configs["y"], 1, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(1, $this->configs["y"], 1, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(-1, $this->configs["y"], 1, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(0, $this->configs["y"], -1, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(1, $this->configs["y"], -1, $this->getWorld()), Block::get(Block::WOOD)); $this->getWorld()->setBlock(new Position(-1, $this->configs["y"], -1, $this->getWorld()), Block::get(Block::WOOD)); }