This Vue example uses ESM imports from the minerender workspace. It renders a skin, a diamond sword, and a stone block. Select a resource-pack ZIP to override their vanilla assets.
From the repository root:
- Install dependencies with
yarn install. - Build the library with
yarn workspace minerender build. - Start the example with
yarn workspace @minerender/example-vite dev, then openhttp://127.0.0.1:5175.
Run yarn workspace @minerender/example-vite build to typecheck the example and generate examples/vite/dist. Rebuild the library after changing its source.
The example fetches Minecraft assets over HTTPS. It keeps the Node polyfill plugin because the library's asset loaders include the NBT parser, which uses zlib.