This page loads the library's IIFE bundle through one script tag and uses the MineRender global. It renders a skin and a diamond sword with orbit controls. The bundle includes three.js and OrbitControls.
From the repository root:
- Install dependencies with
yarn install. - Build the library with
yarn workspace minerender build. - Run
yarn workspace @minerender/example-script-tag dev, then openhttp://127.0.0.1:5174.
Run yarn workspace @minerender/example-script-tag build to copy the page and library bundle into examples/script-tag/dist. You can serve that directory with any static web server. The page fetches Minecraft assets over HTTPS.
After editing the page or rebuilding the library, restart the development server to copy the updated files.