CRUX

Avoiding conflicts

Mixins and bytecode

  • Using @Inject, @ModifyReturnValue and similar injectors on the methods above is fine.
  • Avoid @Overwrite or replacing the whole body of these methods. The Crux call is lost and that Crux feature stops working (the game does not crash).
  • For methods whose return value Crux also changes (name tags, tab names, FOV, skin, FPS limit, window title), the order is not guaranteed. Build on the value you receive instead of discarding it.

Title screen and pause menu

  • When the screen class is exactly TitleScreen or a PauseScreen that shows its menu, Gui.setScreen is replaced with a Crux screen in Gui.setScreen. The original screen is never initialized, so buttons other mods add to it (e.g. via Fabric API ScreenEvents) do not appear on the Crux screen.
  • Subclasses, other screens and menu-less pauses (F3+Esc) are left alone.
  • When Mod Menu (modmenu) is installed, a "Mods" button on the left of the Crux title screen and pause menu opens the Mod Menu screen.
  • Users can switch back with "Default screen". Please do not rely only on a title-screen button — also offer a key, command or settings entry.

Keys

Since 0.3.16 the Crux keys are registered as KeyMappings in the "Crux" category of Controls (Options → Controls → Key Binds). They are appended right before the Options constructor stores its keyMappings array, so they coexist with Fabric API key registration. Conflicts with other mods are shown in red like vanilla, and the values are saved in options.txt. All of them only work in-game with no screen (chat, inventory, …) open.

In 26.3 key codes are SDL scancodes, not GLFW codes (e.g. C = 6, left Alt = 226). Mods that handle raw key codes should use the InputConstants.KEY_* constants. Crux 0.3.15 and older used GLFW codes as defaults, so some default keys landed on the wrong key in 26.3; 0.3.16 converts old settings once.

FeatureDefaultNotes
ZoomCRebindable
Open Crux settingsRight ShiftCan be turned off
FreelookLeft AltRebindable
SnaplookVRebindable
WaypointBRebindable
Save replayF8Only when the replay buffer is enabled
Stopwatch · quick text 1–3NoneOnly if the user sets one

If your mod defaults to one of these keys, consider a different default (users can still rebind either one in Controls). Zoom turns itself off when another zoom mod is installed.

HUD

  • The Crux HUD is drawn at the end of Hud.extractRenderState, on top of the vanilla HUD. It is not drawn while F1 or F3 is active.
  • Users place every group in the HUD editor, so overlaps can be fixed by moving them.
  • The crosshair feature (off by default) replaces the vanilla crosshair sprite with an empty one.

Chat

  • Messages passed to ChatComponent.addMessage are changed: with timestamps on, a grey [HH:mm] prefix is added (12-hour: [a h:mm] ; off by default), repeated messages get a (xN) suffix (on by default).
  • The Crux logo and badges are prepended to player-chat sender names, name tags and tab-list names. The original name component is wrapped as-is, so server formatting is kept.
  • The logo and badges use their own font crux:icon (Private Use Area glyphs starting at U+E000). It is separate from minecraft:default, so it never collides with custom glyphs in other packs.
  • Mods that parse chat should work from the original message received from the server, not the displayed line. If you must read displayed text, strip the prefix/suffix above and characters in the crux:icon font before comparing.

Player model

  • PlayerModel.setupAnim : at the start Crux only restores the parts it hid last time, and at the end it only hides parts when a cosmetic transforms. Parts hidden by other mods inside or after setupAnim are never made visible again by Crux (since 0.3.16, which also fixes spectator bodies becoming visible).
  • Cosmetics are drawn by render layers Crux adds to AvatarRenderer. Outer skin layers are hidden only where a cosmetic covers them.

Rendering optimizations (Fabric)

Crux optimizations in Settings → Performance are on by default. If your entities, block entities, layers or particles disappear at distance or when occluded, this may be why. Occlusion culling turns itself off when entityculling or moreculling is installed. Block entities that must render off-screen should return true from BlockEntityRenderer.shouldRenderOffScreen() — Crux respects it, like vanilla does.

Resources and fonts

  • The Crux pack crux is added at the very bottom of the resource stack (lowest priority) and only uses the crux: namespace.
  • The Crux font pack crux_font (Neo Dunggeunmo, minecraft:font/default.json) and the glint pack crux_glint) go right above vanilla — below mods and user resource packs, which win on the same resource. When a server resource pack is active, the Crux font is not used by default.

Settings file

Crux settings live in %APPDATA%\.crux\crux_client.json, shared by every version. Please do not read or write this file from other mods; its format changes without notice.

crux-docs · client 0.3.25 · plugin 1.4.0 · mc 26.3 · updated 2026-10-11 · report a mistake