Repository navigation
Homecraft v0.3.0
This release introduces the Homecraft plugin system, adds a 3D animated startup loading logo, and includes mobile UI fixes.
What's new
- Plugin host (
engine/plugins.js,PLUGIN_API = 1) — loads opted-in site plugins fromworld/plugins/<id>/configured throughpluginsinhome.config.js(empty by default).- Supports
build(ctx, options)andsetup(host, options)hooks for world geometry, collision obstacles, interactive hotspots, baked lighting, HUD corner buttons, overlays, keyboard input, minimap markers, and per-frame updates. - Isolates plugin failures and cleans up registered resources automatically without breaking the rest of the site.
- Exposes
__home.plugins.status()and__home.plugins.get(id)in the console for debugging. See docs/plugins.md for the plugin host API and Homecraft Plugins for the plugin repository and CLI.
- Supports
- 3D animated startup logo (
engine/ui/loading-logo.js) — renders a 3D grass block with a one-shot camera reveal and slow orbit alongside a live loading percentage indicator in Chinese and English, respectingprefers-reduced-motionand disposing WebGL resources when loading completes.- Existing forks continue working without editing
index.html. To enable the 3D startup logo on an older fork, copy the updated#loadingmarkup and<script type="module" src="engine/ui/loading-logo.js"></script>from the templateindex.html.
- Existing forks continue working without editing
Fixes
- Removed the leftover
backdrop-filterblur behind the transparent Photo Studio toolbar on mobile (engine/style.css). - Allowed mobile HUD corner buttons to wrap cleanly when plugins add extra controls (
engine/style.css).
Updating
Requires Node.js 22 or newer. Run from the source folder (where engine/ and package.json live), not dist/.
New forks:
npm run update -- --check
npm run updateOlder forks — one command, no upstream merge needed:
npx --yes https://github.com/terryHu7/homecraft/releases/latest/download/homecraft-updater.tgz- Add
--checkto preview changes without writing anything. - Only
engine/is updated. Yourworld/, pages, config, assets and deployment files stay untouched. - Existing forks from
v0.1.0onward gain plugin host support after updatingengine/, without modifyingindex.html,world/build.js, ortools/build.sh. - It backs up before applying changes, supports rollback, and stops with a conflict report if your edits overlap.
- A source update is not a live update: preview locally, then commit and redeploy.
Full guide: Update Homecraft. This release contains homecraft-engine.json, homecraft-updater.tgz and SHA256SUMS.
