wasmCraft runs on Horizon's dedicated server (horizon-server). Computers run on the server: their
programs, files and network all live there, and players see terminals and monitors streamed to them.
A native mod is built into the server's engine. You need the Horizon launcher installed on a machine with the same OS and architecture as the server.
-
Get wasmCraft's source at the release you want, either by cloning this repository at its tag or by unpacking the release's
.hmod. You need itsmodfolder. -
Build a server engine with it, for the Horizon release wasmCraft pins:
horizon-launcher native-build wasmCraft/mod \ --server-output /srv/horizon/engine-wasmcraft-0.1.0 \ --version nightly-2026-11-22-f1bb66f \ --trust-native-code
The output folder must not exist yet. The command prints the path of the engine it built.
-
Point the server at that engine and restart it:
horizon-server --dir /srv/horizon/server config set engine.path=/srv/horizon/engine-wasmcraft-0.1.0/horizon-engine horizon-server --dir /srv/horizon/server restart
Every player needs the same version of wasmCraft installed. There's no version check on joining yet, so a mismatched client may fail in odd ways rather than with a clear message.
To update, build a new engine folder, point engine.path at it, restart, and keep the old folder until
you're sure.
See Horizon's hosting guide for the server itself.
Everything is under wasmcraft/ in the world folder:
| Path | Holds |
|---|---|
wasmcraft/computer/<id>/ |
A computer's or turtle's files. |
wasmcraft/disk/<id>/ |
A floppy disk's files. |
wasmcraft/next_id, wasmcraft/next_disk_id |
The next IDs to hand out. |
Back these up with the world. A computer's files stay when the computer is broken, because the item keeps its ID; delete a folder by hand only when you're sure nothing uses that ID.
The folders are also how programs get onto computers: copy a .wasm file or a Lua script into a
computer's folder and it's there at once. This is the only way to bring in files larger than a floppy,
such as a Doom WAD.
Each computer:
| Memory | 64 MiB |
| Storage | 1,000,000 bytes; 125,000 per floppy |
| Time without yielding | 7 seconds, then the program is stopped |
| Event queue | 256 events |
| Modem range | 64 blocks |
| Open channels | 128 per modem |
| Monitor size | 8 × 6 blocks |
These are fixed in this release.
Each powered computer runs on its own thread. A computer waiting for an event sleeps; a busy one uses up to one core until it next yields. Turtle actions and other changes to the world happen on the server's main thread, one per turtle every eight ticks.
Computers in unloaded chunks stop. When the chunk loads again they boot and run startup.lua, so
force-loading a chunk keeps its machines running.
Programs run in a WebAssembly sandbox:
- They can reach only their own files, the read-only ROM and mounted floppies. Paths can't escape.
- They have no network access beyond in-game modems, and no access to the host's files, processes or clock beyond what the interface gives them.
- Memory, storage and the event queue are capped, and a program that never yields is stopped.
wasmCraft itself is a native mod. Like any native mod, it runs with the server's full rights, outside Horizon's sandbox. Build it from source you trust.