Hello, I am trying to set a new block where there is actually one. This my code but he doesn't work and I really don't know why. I tried with and without PHP: $level->doChunkGarbageCollection(); but it doesn't work. I checked I have all the use I need and the $level isn't null and $x $y $z var aren't null too. PHP: $level = $this->pg->getServer()->getLevelByName($world);$level->setBlock(new Vector3($x, $y, $z), Block::get(0), true, true);$level->doChunkGarbageCollection(); Thanks for the help !
You don't need to call doChunkGarbageCollection(), you can directly... PHP: $level->setBlock(new Vector3($x, $y, $z), Block::get(Block::AIR));