CRUX

Where Crux changes the game

Crux hooks into the game in two ways.

1. ASM patches (Fabric and vanilla)

Crux inserts a single static call to crux.client.CruxHooks into each target method. It never adds branches, removes methods or renames anything. On Fabric the mixin plugin crux.fabric.CruxMixinPlugin applies these patches in preApply of the empty mixin CruxTargets.

If a target method is not found, only that feature turns off and the game keeps running. If one feature throws 50 errors at runtime, Crux turns it off. Most RETURN hooks only change the value while that Crux feature is on and active; otherwise they return it unchanged.

ClassMethodAtCrux feature
PackRepositoryopenAllSelectedRETURNAdds the Crux resource packs
HudextractRenderStateRETURNDraws the Crux HUD and waypoints
HudextractCrosshairafter reading CROSSHAIR_SPRITECrosshair (when on, the vanilla sprite is blanked)
HudextractScoreboardSidebar · extractTitle · extractBossOverlay · extractOverlayMessage · extractEffectsHEAD · RETURNScale or hide when enabled (pushes and pops the pose; untouched when off)
HuddisplayScoreboardSidebarafter numberFormatOrDefault / getBackgroundColorHide sidebar score numbers, background opacity
PlayerTabOverlayextractPingIconafter reading PING_* · RETURNPing as a number (when on)
ItemStackgetTooltipLinesRETURNAdds a hunger · saturation line to food tooltips (when on)
DisconnectedScreeninitRETURNReconnect button and auto reconnect
SkinTextureDownloaderregisterTextureInManagerHEAD3D skin layers: copies the alpha of downloaded skins (image untouched)
AbstractContainerScreenextractTooltipRETURNShulker box and map previews (vanilla tooltip untouched, drawn separately above it)
DebugEntryPosition 외 6개displayHEAD (argument)Hide coordinates in F3
PlayerTabOverlaygetNameForDisplayRETURNLogo and badges before tab-list names
EntityRenderergetNameTagRETURNLogo and badges before name tags
EntityRendererextractNameTagsafter shouldShowNameOwn name tag in third person
AvatarRenderer<init>RETURNAdds the cosmetic render layers
AvatarRendererrenderHandRETURNFirst-person arm cosmetics
PlayerModelsetupAnimHEADRestores only the parts Crux hid last time
PlayerModelsetupAnimRETURNHides head/body/limbs when a cosmetic transforms (hide only)
Options<init>before keyMappings is storedRegisters the Crux keys in Controls
CameracalculateFovRETURNZoom
CameraalignWithEntityafter getViewYRot / getViewXRotFreelook camera angle
CameratickRETURN1.7 sneak (eye height)
EntityturnHEAD (arguments)Freelook (mouse turn goes to the camera)
GuisetScreenHEAD (argument)Swaps the title / pause screens for Crux screens
GuisetOverlayHEAD (argument)Game loading overlay
LevelLoadingScreenextractRenderStateRETURNWorld loading screen
TitleScreen · PauseScreeninitRETURN"Back to Crux" button on the vanilla screens
PauseScreenextractRenderStateRETURNLogo on the vanilla pause menu
PackSelectionScreeninitRETURN"Get resource packs" button
ChatComponentaddMessageHEAD (argument)Chat timestamps, stacking, streamer-mode names
ChatComponentall methodsafter the int constant 100Chat history length
ChatListenerhandlePlayerChatMessageHEAD (argument)Logo and badges before the sender name
ChatListenerhandlePlayerChatMessageHEADIn-game report: records sender and Mojang signature (message unchanged)
LightmapRenderStateExtractorextractRETURNFullbright
AbstractClientPlayergetSkinRETURNHide your Minecraft cape (so it does not overlap wings · flags)
FramerateLimitTrackergetFramerateLimitRETURNBackground FPS limit
ScreenEffectRenderersubmitFireHEAD · RETURNLower fire overlay
LevelgetRainLevel · getThunderLevelRETURNHide weather (client only)
ClientClockManager$ClientClockInstancetotalTicksRETURNTime lock (client only)
ClientPacketListenerhandleSetTimeHEADTPS estimate (read only)
MultiPlayerGameModeattackHEADReach / combo display (read only)
LevelRenderersubmitHitOutlineHEAD (arguments)Block outline color and width
OverlayTexture<init>RETURNHit color
EquipmentLayerRendererrenderLayersafter reading NO_OVERLAY1.7 animations (armor hit tint)
ItemEntityRenderersubmitafter sin / getSpin / rotateItem physics
SubmitNodeCollectionsubmitNameTagafter getBackgroundOpacityName tag background opacity
GameRendererupdateRETURNMotion blur
Screenshotlambda$grab$3RETURNCopy screenshot to clipboard
MinecrafttickHEADPer-tick logic (keys etc.)
MinecraftcreateTitleRETURNWindow title
MinecraftfillSystemReportRETURN"Crux" section in crash reports

Classes use their official names under net.minecraft (FramerateLimitTracker is in com.mojang.blaze3d.platform). "DebugEntryPosition + 6" = DebugEntryPosition, SectionPosition, LookingAt, LookingAtEntity, Heightmap, ChunkGeneration, LocalDifficulty.

2. Mixins (Fabric only)

All are @Inject with remap = false, defaultRequire = 0 (silently skipped if the target is missing). They only cancel anything while Crux optimizations (Settings → Performance) are on.

ClassMethodEffect
EntityRenderershouldRender (RETURN)Skips occluded entities
EntityRenderershouldShowName (RETURN)Hides distant name tags
BlockEntityRenderDispatchertryExtractRenderState (HEAD)Skips hidden block entities
HumanoidArmorLayer · CustomHeadLayer · ItemInHandLayersubmit (HEAD)Skips armor / head / held items at distance
WingsLayersubmit (HEAD)Skips elytra at distance
ItemFrameRendererextractRenderState (RETURN)Hides distant item-frame contents
ParticleEngineadd (HEAD)Particle cap
GameRendererrenderLevel (HEAD)Skips world rendering while minimized

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