Skip to content
Get started

Write games

View as Markdown

A Minekube game has two halves. The rules decide what happens and import no Java, so they run anywhere. The server half turns Paper events into messages and carries out the rules’ Commands with Paper calls. A proxy bundle has the same shape and runs in the Velocity proxy instead.

These pages explain each half, the Effect programming model behind both, and the rules at the boundary to Java.

  • Game structure

    How a Minekube game is built - rules that run without a server, a server half that talks to Paper, Commands, events in the same tick, and what happens on a reload or a failure.

  • Games as Effect components

    The programming model of a Minekube game: an Effect UI component with a Model, messages, an update function and Commands, children as failure boundaries, a scope per revision, and Java's failures as typed Effects.

  • Paper from TypeScript

    Call Paper's real API from a Minekube game - typed classes from the server jars, null and numbers at the Java boundary, checked exceptions with Jvm, generated Schemas, threads and timers.

  • Proxy bundles

    Program the Velocity proxy in front of your Minecraft servers in TypeScript and Effect - /lobby, kick fallback and routing - swapped on save while players stay connected, on a local dev network.

Was this helpful?