Skip to content
Get started

Games concepts

View as Markdown

Minekube Games runs your TypeScript and Effect code inside Paper, Velocity and the Minecraft client. Each page below explains one term, what it is and why, and links to the guides that use it.

  • Bundle

    A bundle is one JavaScript file that a Minekube runtime loads: a game on Paper, a proxy bundle on Velocity, or a client bundle in a Minecraft client - named by its content's hash, installed by writing the file.

  • Game

    A Minekube game is an Effect UI component tree - rules that turn messages into a new Model and Commands, a server half that connects them to Paper, a scope per revision that cleans up after it, and child components as failure boundaries.

  • Runtime and live swap

    The Minekube plugin's JavaScript runtime runs bundles in GraalJS inside the server's own process - it loads a new bundle on a thread of its own, swaps it in on the server thread, and never replaces a working bundle with a broken one.

  • Recording and replay

    Every revision of a Minekube bundle records its message log - each message, the Model after it and the Commands it issued - so a session can be read in the devtools and replayed by bun test through today's rules.

  • Versions and deployments

    A version is an immutable set of bundles named by the hash of its content, and a deployment points a label selector of a Minekube network at a version: every server whose labels match runs its bundles, and one that starts later gets them by itself.

  • Platform version

    A Minekube project names the Paper and Velocity versions its bundles are built for, like a Cloudflare compatibility date: mk generates the project's types from that version's own jars, the dev server runs it, every build records it, and mk deploy warns about servers that run another.

Was this helpful?