CXVISUALS CONNECTING

Wiki

How CxVisuals is put together, from the modules in the game to the server behind them, and how to add to it.

Overview

CxVisuals is a client-side Fabric mod for Minecraft 26.2 and 26.3. It only changes what you see. Your position and rotation are never touched, and nothing extra is sent to the game server you play on.

Most of it works offline. A small cloud server adds the parts that need other people: shared avatars, friends, shared maps, the Explore page and the auction house price book. This website is served by that same server.

How the parts connectThe mod on your PC talks to the cloud server. The cloud server checks logins with Mojang and serves this website, the mod download and the launcher.Mod in your gameMinecraft + FabricCloud serverGo + SQLiteMojanglogin checkWebsite + downloadsthis sitesyncsealed dataverifyserve

The mod talks to the cloud over HTTPS. The cloud checks logins with Mojang and serves this site, the mod download and the launcher. Red dots are data the server can read, white dots are sealed data it cannot.

There are three pieces in the repository and on the server:

The mod
Java, built with Fabric Loom. All the modules live here.
The cloud
One Go program with SQLite storage. It handles accounts, presence, friends, rooms, Explore and prices, and serves the website.
The launcher
A native launcher that installs Minecraft, Fabric and the newest CxVisuals and keeps them current.

Modules

Every feature is a module with its own switch, tabs and optional toggle key. Some small modules are folded into a larger one in the settings window, so Waypoints and World Download appear as tabs of Map. Each keeps its own Enabled switch at the top of its first tab.

Player

Hands
Moves and scales each first-person hand and held item, and replaces the swing with a spin, flip, slash, stab or tap.
Avatar
Imports a 3D model as your player model. glTF, GLB, OBJ, Blockbench, PLY, STL and VOX files work, with your own idle, walk, run and jump animations.
Texture Mixer
Picks single textures from different packs, per item and per block, with a side by side comparison and a Modrinth search.
Account
Your profile, friends, chat and the account manager. The manager switches between Microsoft, offline and token accounts and keeps them in a password vault on your PC.

World

Shaders
Entity effects, sky shaders, an animated block outline, jump circles, entity trails, death effects and weapon trails. Works with Iris and a shader pack. Effects hide behind solid blocks but show through water and tinted glass: the mod copies the depth buffer just before translucent terrain is drawn and tests against that copy, or against Iris's own depth without translucents under a shader pack. Under a pack the Ritual, Ascend and Glitch death effects move the real body through the normal entity path, so the pack shades it.
Environment
Live lyrics in the world, plus particles such as fireflies, petals, snow, lanterns, rain and ripples.
Fullbright
Luminance, gamma or night vision, with an optional tint.
Map
A minimap and a full map with relief, caves, clouds and a 3D mode. Waypoints, world download, shared live maps and the Explore page belong to it.

Interface

HUD
A layout editor for the game's own elements and extra info elements, with nametags and a live window mirror.
Animations
Motion for the hotbar, teleports, inventory moves, screens, status bars, chat and block placing and breaking.
Chat
Filters chat by range, keywords and muted words.
Inventory
A searchable item list with recipes and uses, container and map previews, and SkyBlock item data.
DonutSMP
Auction house tools. It is listed only while you are connected to that server.
Main menu
A custom title screen that shows the title buttons as channels beside your worlds, servers and latest screenshot. Buttons added by other mods become channels too, so Mod Menu gets a Mods channel by itself.

Camera

Idle Camera
Leaves first person after you go idle and films your player with orbits, push-ins and close-ups.
Motion Blur
Per-pixel blur from the depth buffer. The hand and the HUD stay sharp.
Zoom
Hold or toggle zoom with a scroll limit and adjustable smoothing.

Using the mod

Press Right Shift to open the settings window and F8 to start or stop the idle cinematic. Every module also has a toggle key that is unbound by default. All keys can be rebound in the window or in vanilla Controls.

The window reopens where you left it, with the same module, tab and scroll position. Under Settings you can choose how it opens, switch between Solid, Clear and Glass styles, and save every setting under a name as a config. Configs are plain files in config/cxvisuals/configs/, so you can copy them between installs. Settings themselves are stored in config/cxvisuals.json.

How a module is built

A module is a class that declares pages, groups and settings. It never draws any settings UI itself. The registry reads the declaration and the settings window builds the tabs and rows from it, which is why every module looks and behaves the same.

A module becomes a windowA module class declares pages, groups and settings. The registry turns them into tabs and rows in the settings window.Module classsection("look") group("Colour") palette("colour") group("Motion") number("speed")registrySettings windowLookShotsColourSpeedSize

Declared settings turn into tabs and rows in the window.

The code is split so that Minecraft stays at the edge:

PathContentsMinecraft
src/lib/.../coreModule base, registry, settings, configno
src/lib/.../modules/<name>A module's logic and settingsno
src/lib/.../guiWidgets, window, text engineno
src/main/.../mc/modules/<name>A module's Minecraft hooksyes
src/main/.../mc/mixinAll mixinsyes

src/lib is compiled without Minecraft on the classpath, only Gson and JOML, so the build itself enforces the rule. Supporting another Minecraft version means touching src/main, versions/ and src/mc/ only.

The world map

Press M for the full map. The same data also feeds the minimap on the HUD, the 3D view and the block search. None of it comes from the game server. The map is built from the chunks your own client has loaded, so it only knows what you have actually seen.

From chunks to pixels

As chunks load, the scanner reads each column of blocks and stores its colour, its height, how deep the water above it is and which block is on top. Scanning runs on a time budget, as described under Performance, so it never makes a frame late.

Columns are grouped into regions of 512 by 512 blocks, which is 32 by 32 chunks. A region is saved as a .cxm file, compressed, with a 128 pixel thumbnail inside it. The files live in config/cxvisuals/maps/, in one folder per world or server and dimension. Memory only holds a few at a time, at most 24 regions and 768 thumbnails, and loads the rest from disk when you pan over them. Making room runs at most four times a second, so a big explored world does not copy its bookkeeping every tick.

From loaded chunks to the map on screenChunks are scanned into columns, stored in regions on disk, baked into tiles in a GPU atlas and drawn in one pass as the map, the minimap or the 3D view.Chunksas the gameloads themScannercolour, height,water, blockRegions512 x 512 blocks.cxm on diskGPU atlas128 px tiles ina 2048 px atlasScreenmap, minimap,or 3D, one draw

Each step has its own limit, so a big world costs memory only for what is on screen.

To draw, the map bakes 128 pixel tiles from the columns and applies relief lighting. The tiles are uploaded to a GPU atlas of 2048 by 2048 pixels, 16 by 16 tiles, and only the tiles that changed are sent again. The whole map is then one draw. The shader samples the atlas texel by texel so edges stay crisp, applies the mask that clips the map to its frame and draws the slow clouds over areas you have not explored.

Zoom levels

Zoomed in, tiles are baked from the stored columns. Zoomed out far enough, they are drawn from the region thumbnails instead, so a world of thousands of chunks is still only a handful of tiles. At the closest zoom, up to 40 pixels per block, the real block textures fade in from the game's own atlas, tinted to match the colour of the tile so the picture does not jump when they appear.

Zoom levelsZoomed out the map is drawn from region thumbnails. Closer it is baked from columns. At the closest zoom real block textures fade in.farregion thumbnailsmidtiles from columnscloseone colour per blockclosestreal block textures

The map picks the level from the zoom, so work and memory follow what you can see.

A view never asks for more than 200 tiles at once. The atlas has about 250 usable slots, and a view that wanted more would bake tiles that could never stay resident and bake them again every frame. Past the limit the map simply moves up one level.

Loading and warm-up

The map prepares itself in the background so that opening it does not stall. About three seconds after you join a world, once per world and dimension, it creates its GPU atlas, compiles its shader and asks for the tiles around you at four zoom levels, nearest first. That is about 90 tiles. Baking happens on worker threads, at most 24 tiles in flight and six requests per tick, and the finished tiles are uploaded a few at a time under the same time budget as everything else. By the time you press M the tiles near you are usually already in the atlas.

Tiles that are still being baked show a quiet loading pattern: a faint plate with a grid of dots that pulse in a diagonal wave, each tile on its own phase. At most 40 tiles are drawn this way per frame, and a tile's pattern disappears the moment its pixels land. Areas that turn out to be unexplored resolve to the cloud pattern instead.

How it looks

  • Relief lights hills from the north west. Contours draws a line every eight blocks, and Flat turns shading off.
  • Cave view scans the cave around you separately, so underground the map shows the cave and not the surface above it. Up to 12 cave maps are kept in memory.
  • Areas you have not explored hide under slowly drifting clouds, or show the muted seed forecast when a seed is set. The cloud pattern repeats every 256 cells, so the drift wraps without a seam.
  • Players appear as heads with a card on hover, mobs as heads or dots, and waypoints and death markers sit on top.

The 3D view

The cube button tilts the map into 3D. The terrain is drawn with instanced draws, one instance per tile column, and no mesh buffers are built. The vertex shader reads the block, the height and the neighbours from the same atlas that the flat map uses, so the 3D view needs no extra data. It renders into its own colour and depth target and is composited into the screen afterwards.

One column in the 3D viewEach map column stores a top solid run, the air gap below it and the ground under the gap. Unexplored areas show a cloud sea.top runtop runair gapair gapground, darkenedsolid belowground, darkenedcloud seawhere nothing is exploredcamera

A column stores its top run and the ground below any air gap, so overhangs are not filled in.

Each column keeps the depth of its top solid run, up to 24 blocks, and the floor under an air gap. A 3D column is drawn as the top run with its sides cut off at the underside, and the ground layer beneath it darkened. Thin tops such as snow and carpets show the block under them on their sides. Unexplored areas show a cloud sea, a plane 18 blocks below the point you look at. Invisible blocks such as barriers and light blocks are skipped, because on servers they would build tall walls. On the developer's test machine the 3D view ran about 7% slower than the flat map, 107 frames per second against 115.

The bottom edge of the slab is kept clean. The ground layer is hidden on columns at the outer border and for caves, which are told apart from real overhangs by the roof: a roof thicker than 8 blocks over a void deeper than 28 blocks is a cave. Thin builds high in the air, such as sky platforms, bridges and canopies, keep the real ground beneath them however far down it is. Side walls between known columns are capped at 40 blocks. A wall on an open edge reaches down toward the ground level of the point you look at, at least 14 and at most 140 blocks, and fades out, so a tall tower at the edge of the explored area stands down to the ground and does not hang in the air. Tall walls and the ground layer then fade into the colour of the cloud sea as they sink below the cloud plane, while short terrain steps stay untouched so hillsides are not striped. The slab reads as floating on the clouds instead of showing a ragged underground. Water is the exception and keeps its full height: a water column's wall runs down to the lower column beside it, and the step between two water columns of different heights is drawn too, so a waterfall or a river placed at build height shows as a solid column reaching the ground, like in the game, with no hollow gaps to see through.

Search

Type at least two letters in the search box and the map looks for matching blocks across everything it has stored. Hits are grouped into clusters of 16 block cells, up to eight kinds of block at once, and the nearest ones come first. Results fill in live while the search runs, so the closest ores appear before the far ones.

Seed forecast

The seed forecast is optional and off by default. With Predict unexplored areas switched on and a world seed set, the map draws unexplored places from the seed instead of hiding them under clouds. The seed is saved per world and server in config/cxvisuals/seeds.json and never leaves your PC. You set it under Map, Forecast, or by running /seed in chat, because the map reads the reply. Numbers and words both work, hashed the way world creation hashes them.

The forecast is not a lookalike. The game's own terrain generation is run from the seed. At first use the mod loads the vanilla worldgen data from the game's files on a background thread and builds the same random state a server with that seed would have. In the Overworld the surface height comes from the generator's chunk surface level function, one cheap two dimensional lookup per sample, and the biome from the biome source with the climate sampler. In the Nether and End the generator builds the block column and the map reads the first floor in it, with lava below the lava level and void left blank. A biome picks the colour, and the Overworld sea level decides what is water. Samples sit on a grid of four blocks up close and are smoothed between cell centres, so shading follows real block steps and not cell edges. Far out, every other pixel is sampled and the slopes are flattened with the zoom, so shading stays calm.

The forecast is baked inside the normal tile pipeline, after the explored pixels. A pixel you have fully explored is never touched, a partly explored one blends, and the rest become muted colour with relief shading at 85 percent opacity, so the drifting cloud mist still shows through in places. That is what tells it apart from explored terrain, along with the Forecast from seed note on the title card. Tiles are baked on the same worker threads as everything else. On the developer's machine one tile costs about 3 ms up close, 60 ms at the 4 blocks per pixel level and 12 to 15 ms zoomed far out, and the stress test with 256 explored regions shows no extra long frames. Nether and End forecasts stop past the 8 blocks per pixel level.

It predicts vanilla world generation of the same Minecraft version. It shows biomes and terrain height, not trees, structures, caves or player builds, and it will not match a server with custom world generation or datapacks. Switching Predict unexplored areas off, or clearing the seed, removes it at once. A seed that is saved or read from /seed does nothing while the switch is off.

Waypoints

A waypoint is a named spot in a world and dimension, saved in config/cxvisuals/waypoints.json and drawn in the world, on the minimap and on the full map. Each one can carry one of twelve small dot-matrix icons: home, base, mine, farm, village, portal, chest, sword, tree, boat, star and skull. The icon replaces the colour dot wherever the waypoint is shown, and deaths use the skull. Clicking a waypoint's icon in the Waypoints tab opens a picker.

The icon is suggested from the name. Words such as house, mine, farm, village, portal, chest, arena, forest or harbour, in English, German and Russian, pick the matching icon, and the suggestion is listed first in the picker. An unnamed waypoint is named from where you stand: Portal near a nether or end portal, Dungeon near a spawner, Village with two or more villagers within 24 blocks, Farm over farmland, Home near beds, crafting tables or furnaces, Storage near chests or barrels, Ocean in water and Mine underground without sky. The scan looks at a block volume of 13 by 13 by 6 around you once, when you add the waypoint. Repeated names are numbered.

The label in the world is a pill with the name. When you look at it, it eases open to show the distance and eases shut when you look away.

Sharing, Explore and downloads

A map can be shared as an area, or as a live room that a group of friends keep in sync. Both are sealed before upload, as described under Sealed sharing. Maps can also be published to Explore, and for DonutSMP the map can draw that server's regions on top.

World Download is a separate module. It records the actual chunk data of the world you are in into a normal singleplayer save, with the containers you opened. The map keeps one block per column, which is enough to draw it but not enough to rebuild a world, so the two do not feed each other.

Performance

A visual mod that costs frames has failed at its job, so the client follows a few plain rules. Each one below points at a place in the code where it is applied.

Idle effects cost nothing

An effect only runs while it has something to show. A jump circle draws for about a second after a jump, and after that its render step returns on the first line. Finished rings are dropped, a switched-off module is skipped by its hooks, and no pass is set up for effects that have nothing alive.

Idle effects cost nothingAn effect only draws while it has something to show. A jump circle costs time for about a second after a jump and then nothing. A switched off module never runs.cost per frameJump circlesa ring is aliveEntity trailsnothing is moving fastMotion blurmodule is offjump

The red block is the only time the jump circle effect costs anything.

if (broken || module == null || CIRCLES.empty()) {
  return;
}
CIRCLES.prune(now, module.ringLife());
if (CIRCLES.empty()) {
  return;
}

Background work gets a time budget

The map has to scan chunks as they load, but it must never be the reason a frame is late. Each frame the scanner is allowed a small share of the last frame's time. The share is larger when many chunks are waiting, and it falls back to a minimum when the previous frame was slow, so a struggling machine gets less map work, not more. Nearby chunks are scanned first.

A time budget per frameBackground work such as map scanning gets a small share of the last frame time. The share grows when there is a backlog and drops to a minimum when the frame was slow.one framegame workmap scancalm6% of the last framebacklog11% while more than 48 chunks waitslow frame28 ms or more: back to the minimum0.25 ms floor1.4 ms ceiling

Values are the ones in the map scanner: 6% when calm, 11% above 48 queued chunks, clamped between 0.25 ms and 1.4 ms, and the minimum for frames of 28 ms or more.

float share = backlog > BACKLOG ? BUSY_SHARE : CALM_SHARE;
long budget = Math.max(MIN_NANOS, Math.min(MAX_NANOS, (long) (frameNanos * share)));
if (frameNanos > SLOW_FRAME) {
  budget = MIN_NANOS;
}
long start = System.nanoTime();
while (System.nanoTime() - start < budget) {
  ...
}

Redo only what changed

Rescanning a chunk that looks the same as before should cost a comparison and nothing else. The map compares each incoming chunk against what it already stores. If every column matches, nothing is written, no tile is invalidated and nothing is uploaded. Merges that arrive from friends are collected per region file, and only the tiles they touch are redrawn.

Only changed chunks are redoneA scan sweeps over map chunks. Chunks that look the same as what is stored are skipped. Only the changed chunks are rebuilt.40 chunks scanned, the red ones changedidentical chunks cost a comparison, nothing more

Most scans find nothing new, so most scans stay cheap.

for (int row = 0; row < 16; row++) {
  int from = index(baseX, baseZ + row);
  int to = row << 4;
  if (!Arrays.equals(color, from, from + 16, column.color, to, to + 16)
      || !Arrays.equals(height, from, from + 16, column.height, to, to + 16)) {
    return false;
  }
}

Spread work over ticks

Doing a lot at once is worse than doing the same total a little at a time. Autosave used to clone about two dozen map regions in a single tick, which measured between 8.6 and 17.5 ms. It now saves one dirty region per tick. Uploads follow the same idea: every batch has a cap on how many chunks it may carry and a minimum gap before the next one, and the texture mixer renders a limited number of thumbnails per pass instead of all of them.

Spreading work over ticksSaving every dirty map region in one tick causes a long frame. Saving one region per tick keeps every frame short.all dirty regions in one tickone region per ticklong frame

The total work is the same. The longest frame is much shorter.

Reuse memory

Garbage collection pauses show up as stutter, so hot paths avoid creating objects.

  • The map atlas keeps a pool of pixel arrays and takes one from it for each tile it bakes, instead of allocating a new array every time.
  • Sword trails cache the geometry of a model, up to 512 entries, and reuse one scratch array while building it.
  • Motion blur keeps one scratch texture and only recreates it when the window size changes.
  • The module registry walks its lists with index loops, so no iterator objects are created when it runs every frame.
int[] reused = pool.poll();
return reused != null ? reused : new int[TileBaker.PIXELS];

No history, no extra passes

Motion blur reads the depth buffer and blurs each pixel along the way it really moved, in a single pass. It keeps no previous frames, so its cost is flat and the look is the same at any frame rate. The hand and the HUD are drawn outside it, which is also why they stay sharp.

Heavy work stays off the render thread

Tile baking and map saving run on worker threads. Every bake carries a generation number, so a result that is already out of date is thrown away instead of applied. Shared map sync uses its own threads and never touches the one that handles social traffic, so a slow network cannot stall the game.

How it is checked

Averages hide stutter, so changes are judged by the slowest frames. The frame timing harness records CPU and GPU time per frame and looks at the 99th percentile as well as the mean. Anything that touches rendering is also checked with Iris and a shader pack, because Iris draws the hand and several passes differently.

Rules of thumb

  • When there is nothing to show, return early and set nothing up.
  • Do not allocate in per-frame or per-tick code. Reuse arrays, pools and caches.
  • Give background work a time budget instead of finishing it in one go.
  • Compare before you write, and skip work that would change nothing.
  • Cap every batch, in size and in how often it runs.
  • Measure the slowest frames, not only the average.

The cloud backend

The cloud is one Go program. It keeps accounts, sessions, friends and rooms in SQLite, keeps the price book in memory with a saved copy on disk, and stores uploaded files such as avatars, parcels and Explore maps on disk. It sits behind a reverse proxy that handles TLS.

Accounts
Created by the sign-in below. The server stores your UUID and name, never a password.
Presence
The mod syncs what it shares, such as your avatar and what you are listening to, and receives updates for nearby players and friends over a server-sent events stream.
Friends
Requests, a friends list and a public key per player. Messages and files are sealed on the sender's device.
Rooms
Shared maps. Each room is an append-only log of sealed map changes, and positions travel separately.
Explore
Public maps people choose to publish, with a preview, a server tag and reports.
Prices
The auction house price book, described below.
Releases
The mod and launcher downloads, plus the daily download counter behind the chart on the home page.

Signing in

The cloud has to know that you own a Minecraft account without ever seeing your access token. It borrows the proof that servers already use: joining a session.

Signing inThe mod asks the cloud for a nonce, proves it by joining a Mojang session with that nonce, and the cloud checks with Mojang before issuing a session token.ModCloudMojang1 ask to sign inPOST /v2/session/start2 get a noncevalid for 60 seconds3 join with the nonceyour Minecraft session, as joining a server4 ask who joinedhasJoined(name, nonce)5 verified profileUUID and name6 session tokenkept hashed on the server

The nonce is a one-time value, so the proof cannot be replayed later.

Your Minecraft access token stays between your game and Mojang. The cloud only receives a verified name and UUID from Mojang, and hands back its own session token. Sessions last 30 days, and only a hash of the token is stored.

Sealed sharing

Friend messages, files and shared maps are sealed on your device before upload. Each player registers a public key, and the server stores and forwards only the sealed bytes.

Sealed sharingA message is sealed on one friend's device, stored by the server as unreadable bytes and opened on the other friend's device.Friend Aseals on deviceCloud serversees only bytesFriend Bopens on devicehelloa3f9hello1 seal2 store, 30 days3 open

The server can tell that something was sent and how large it is, but not what it says.

A shared map room works the same way with one extra step. The room has a 32-byte key and an id, and the key travels inside a sealed invite to each member. Map changes are sealed chunk batches appended to the room's log, and every client merges them with last writer wins by timestamp. Rotating the key deletes the old log, and the owner uploads again under the new key.

Locations are separate from the room log. Each position is sealed for one friend and kept in server memory for 10 seconds. It is never written to disk.

Market prices

Prices come from what players see in the auction house. While you browse the auction house on a supported server, the mod reads the price per item and sends it as a sighting, filed under a one-way code instead of your account so one player cannot count twice.

From sightings to a pricePrices seen by many players flow into one book. The server takes the median of fresh reports, grades it and stores an hourly chart point.player sightingsone price, graded4.1M3.9M4.0M9.9M4.2MBookmedian of fresh reports4.0Mgrade: solidhourly chart pointoutliers are outvoted

One odd sighting does not move the price.

Each item has a book of the latest report from every player, kept for 48 hours. The price is the median of the fresh reports, with a grade of solid, fair, thin or weak that reflects how recent they are, how many players agree and how deep the market is. Every hour the server stores a point per item, which is what the charts on the market page draw. Enchanted and other variant items get a book of their own.

What is kept, and for how long

DataWhereLifetime
Session token (hashed)Database30 days
Sealed messages and filesDatabase and disk30 days
Shared map logDisk60 days after the last activity
Friend locationsMemory only10 seconds
Price reportsMemory and disk48 hours
Explore mapsDiskUntil the author removes them
Download countsDatabaseOne number per day

The full privacy list is on the home page.

Contributing

CxVisuals is MIT licensed and developed on GitHub. Issues, ideas and pull requests are welcome. If something in the credits is yours and missing, open an issue and it will be added.

Build

You need JDK 25.

git clone https://github.com/anoncx/CxVisuals.git
cd CxVisuals
./gradlew assemble              # newest version, jar in build/libs
./gradlew assemble -Pmc=26.2    # another supported version
./buildall.sh                   # every supported version
./gradlew runClient             # dev client

Check rendering changes with Iris and a shader pack as well as without, because Iris draws the hand and some effects differently. The cloud is a separate Go module in cloud/ and builds with go build ./... and go test ./....

Supported versions

Minecraft 26.3 and 26.2 are built from one source tree. src/main is written against the newest version. versions/<mc>.properties pins the Fabric Loader, Fabric API and Sodium of each version. Older versions are produced at build time from versions/<mc>/: imports.txt renames moved classes, java.rules and shader.rules are regex rewrites, and src/mc/<mc>/ replaces the files that cannot be expressed as rules. Differences that touch many files live in me.cxiy.cxvisuals.mc.compat.

Run the gametests on every supported version before a release. A mixin that no longer applies is silently skipped in the release jar, so the dev run is where it fails loudly. The update check asks the cloud for the release of its own Minecraft version, so each version has its own manifest.

Releases

Every push to main runs the Release workflow on GitHub. It builds every supported version and publishes the release for the current mod_version, for example v0.1.1, replacing the previous build of that version. The release holds one jar per Minecraft version, a SHA256SUMS.txt file, one manifest-<minecraft>.json per jar and notes from the commits since the previous tag. Pushing a tag that matches mod_version, or starting the workflow by hand, builds the same release. The Build workflow compiles both versions on every push and pull request.

Nothing is uploaded to the server by hand. The cloud checks the newest release every five minutes with a conditional request, so an unchanged release costs nothing against GitHub's rate limit. When a manifest changed it downloads the jar, checks its size, SHA-1 and SHA-256 against the manifest, and only then swaps it in and writes the manifest the launcher reads. A bad download never replaces a good build, three older jars per Minecraft version are kept, and every check also repairs a missing local file. Only assets hosted under the repository's own release URL are accepted. systemctl kill -s USR1 cxcloud on the server runs a check immediately.

Adding a module

  1. In modules/<name>, write a class that extends Module. Give it an id and a name, declare its sections, groups and settings, and add any header actions.
  2. In mc/modules/<name>, write its Minecraft hooks and read its settings from there.
  3. Register it with registry.add(...) from its Minecraft class. The existing modules in mc/modules show the pattern.
  4. Add its key names, key.cxvisuals.<id>.toggle and any others it binds, to assets/cxvisuals/lang/en_us.json.
  5. Add every new visible string to the German and Russian catalogs in assets/cxvisuals/i18n.

The window entry, master switch, tabs, config keys and toggle key all come from the registry. Config keys look like <id>.<section>.<setting>, so renaming an id or a section changes where a setting is saved.

A small module can sit inside a bigger one by calling hostedBy("<host id>", position) in its constructor. Its pages then appear as tabs of the host, and its saved keys do not change.

Conventions

  • Follow the Google Java style guide.
  • The code has no comments. Names and structure carry the explanation, so keep it that way.
  • Performance and looks come first. Avoid allocating per frame in rendering code, and make new interface text match the rest of the window.
  • Commit messages are one line: a tag, a short sentence and the system, for example [+] Added shot director with blend transitions - Camera Core. Tags are [+] addition, [-] removal, [*] change, [!] small fix and [!!] full crash fix.

Open a pull request against main with a short description of what changed and how you checked it.