PHP code example of aternos / renderchest
1. Go to this page and download the library: Download aternos/renderchest library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aternos / renderchest example snippets
(new ItemLibraryGenerator(["path/to/assets"], "path/to/output"))
->setNamespaces(["minecraft"])
->setSize(64)
->setQuality(2)
->setFormat("webp")
->render();
$resourceManager = new \Aternos\Renderchest\Resource\FolderResourceManager(["path/to/assets"]);
$model = $resourceManager->getModel(new \Aternos\Renderchest\Resource\ResourceLocator("minecraft", "item/stone"));
$image = $model->render(64, 64);