example: at the Position 23 4 99 is a chest the chest will be filled on the command /example with random stuff from an Array
Please define "filled with random stuff from an Array". How is your array formatted? What extent of help are you looking for?
PHP: $level = $this->getServer()->getLevelByName($world);$tile = $level->getTile(new Vector3($x, $y, $z));if($tile instanceof Chest){ $inventory = $tile->getInventory(); $inventory->addItem(Item::get(1));}
Same. PHP: $level = $this->getServer()->getLevelByName($world);$tile = $level->getTile(new Vector3($x, $y, $z));$tile2 = $level->getTile(new Vector3($x,$y,$z));if($tile instanceof Chest){$tile->getInventory()->addItem(Item::get(1));}if($tile2 instanceof Chest){$tile2->getInventory()->addItem(Item::get(1));}