Skip to content
Compact Universe logoCompact UniverseDownloads
You are viewing upcoming docs from main (unreleased).

Universes, Ownership & Travel

Compact Universe separates room storage and access from physical world blocks. Understanding that split explains why the mod has no terminal block, why the Universe Link stores no item data, and how travel behaves with Compact Machines 7.

All universes are saved in a single server-wide SavedData file (compact_universe_universes) attached to the Overworld’s data storage. Each universe records its UUID, display name, owner UUID, visibility (private or members), member role map, pending invitations, and ordered list of stored machines.

Storing universes on the server instead of on an item or block entity has three consequences:

  • The Universe Link is stateless. Losing a Universe Link never loses your machines, and crafting a second link immediately shows the exact same universes.
  • Sharing needs no shared terminal. Access depends on player membership in a universe, not on physical access to a block. Multiple members can open their own Universe Links at the same time and see live view updates pushed by the server whenever anyone adds, renames, or removes a machine.
  • One universe per room is enforced globally. On load, the server rebuilds an in-memory room-code index mapping each Compact Machines room code to its owning universe. Any attempt to add a room code that is already stored elsewhere (for example, via a creative duplicate of a bound machine item) is rejected in constant time.

A placed block that opens the universe screen would duplicate what the Universe Link already provides:

  • Return points already belong to the player. Compact Machines tracks where each player stood when they entered a room, so a terminal block adds no anchor or return position.
  • Sharing already belongs to the universe. Teammates reach shared machines through universe membership from wherever they stand.
  • Physical I/O is handled separately. In Compact Machines 7, a placed machine block has no built-in tunnels or capability forwarding of its own. Compact Universe gives stored rooms physical faces with the Machine I/O block, which handles only I/O and is intentionally not an entrance.

Pending machines and deferred room creation

Section titled “Pending machines and deferred room creation”

You can add both bound Compact Machine items (already tied to a room code) and new Compact Machine items (carrying a room template but no room yet).

When you add a new machine, Compact Universe stores the whole item stack (including components such as machine color) with no room code—marking it as pending ((new)). It deliberately waits to call CompactMachines.newRoom(...) until a player clicks Enter, and only after verifying that the player is below Compact Machines’ room-nesting depth limit.

This order avoids creating an empty room that no player has ever entered (a state that can break Compact Machines’ autosave) and guarantees that a refused entry never leaves an orphaned room behind. Once created, the stored stack is transmuted into a bound compactmachines:machine item carrying the new room code, so removing the machine later hands back the bound machine item.

How entry, exit, and ownership interact with Compact Machines

Section titled “How entry, exit, and ownership interact with Compact Machines”

When you click Enter, Compact Universe uses Compact Machines 7’s public API to record a RoomEntryPoint (your current dimension, coordinates, and rotation) on Compact Machines’ per-player history stack, resolves the room’s spawn point, transitions your player into the compact dimension, and sets Compact Machines’ current-room attachments.

Because entry feeds directly into Compact Machines’ own history stack:

  • Leaving works with either tool. Clicking Leave room in the Universe Link or using Compact Machines’ Personal Shrinking Device runs the same exit path (RoomHelper.teleportPlayerOutOfRoom), popping the latest history entry and returning you to your exact previous spot.
  • Nested rooms unwind in order. Entering Room B from inside Room A pushes two entries; leaving twice returns B → A → your original dimension.
  • Membership changes never trap a player. Exiting a room checks only the player’s room history, not universe membership. Removing a player from a universe while they are inside a room does not strand them there.
  • Server-side authority. Every screen action checks that the player is still holding a Universe Link and has the required role in that universe. Rows are addressed by stable universe and machine UUIDs rather than list indices so concurrent edits by two members cannot act on the wrong row.

Not an official Minecraft website. Not approved by or associated with Mojang or Microsoft.