InSight Chests

A client-side mod providing smooth camera transitions, semi-transparent menus, and physical 3D item rendering inside chests.
Back to Files

insightchests-26.1.2-neoforge-1.0.6-no-compat.jar

File nameinsightchests-26.1.2-neoforge-1.0.6-no-compat.jar
Uploader
MrSunMrSun
Uploaded
Dec 3, 2026
Downloads
2
Size
136.9 KB
Mod Loaders
NeoForge
File ID
9983212
Type
R
Release
Supported game versions
  • 26.1.2

Curse Maven Snippet

NeoForge

implementation "curse.maven:insight-chests-1704507:9983212"

Learn more about Curse Maven

What's new

InSight Chests — Changelog

Version 1.0.6-no-compat

Note: I know a lot of you have been wondering why InSight Chests had no updates for over a month. Long story short, I had a really rough month, and honestly the 1.0.5 codebase was completely cursed. Trying to patch and port that code was a dead end, so I ended up rewriting almost the entire mod from scratch and moving everything onto the Stonecutter template so maintaining and shipping versions is actually manageable going forward.

Compatibility Notice (No-Compat Baseline)

Third-party chest mod compatibility (Iron Chests, Sophisticated Storage, etc.) is temporarily disabled in this 1.0.6-no-compat release. Treat this version as the clean "origin" baseline built on top of the new codebase before I rewrite mod compat properly from the ground up. Compat support will be coming back soon — thanks for bearing with me in the meantime.

To avoid any misunderstanding: "no-compat" does NOT mean you can't run InSight Chests alongside other mods. You can still drop it into modpacks and use it normally with other mods. However, mods that directly alter chest behavior or vanilla chest GUIs, or add custom chests with their own non-vanilla models/GUIs, may either lack 3D chest support or conflict with InSight Chests right now — that is specifically why those chest mods need dedicated compat layers to work together cleanly without clashes. For everything else, feel free to run InSight Chests alongside your other mods as usual. Thanks for the patience while I get the compat modules rebuilt.


What Actually Changed Compared to 1.0.5

1.0.5 only ran on NeoForge 1.21.1, injected post-render OpenGL depth-overwrite hacks after vanilla drew a solid chest, replaced Vanilla's screen class wholesale, and carried heavy TOML/watchdog boilerplate that made porting impossible.

1.0.6 throws that away and rebuilds the mod from the ground up:

  • 55 Targets from One Codebase (Stonecutter 0.9.8)

    • Migrated from a single NeoForge 1.21.1 project to dev.kikugie.stonecutter (0.9.8), compiling natively across Minecraft 1.16.5 through 26.3:
      • Fabric (35 versions): 1.16.5, 1.17, 1.17.1, 1.18–1.18.2, 1.19–1.19.4, 1.20–1.20.6, 1.21–1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3.
      • NeoForge (20 versions): 1.20.4, 1.20.5, 1.20.6, 1.21–1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3.
    • Added proper dedicated-server safety on NeoForge (ModLoaderAccess.isClient() check skips client initialization cleanly if dropped onto a server) and an SLF4J / System.out logging wrapper for 1.16.5–1.18.1 where SLF4J isn't present.
  • Decoupled 3-Layer Code Structure

    • Separated pure Java logic (core: physics, bounding boxes, camera math, JSON config) from contract interfaces (bridge: ICameraBridge, IContainerBridge, IItemBridge) and Mojang/loader hooks (adapter, client, mixin).
    • Mojang API shifts (ResourceLocation vs Identifier, ItemStack equality across < 1.17 / 1.17–1.20.4 / 1.20.5+, Camera.setup moving to alignWithEntity in 26.1+, Minecraft.setScreen moving to Gui.setScreen in 26.2+, LevelRenderer.renderHitOutline moving to submitBlockOutline in 26.2+, PoseStack.mulPose vs rotate in 26.3+) stay isolated behind version branches instead of breaking core behavior.

Rendering Rewrite (No More Post-Render Depth Hacks)

  • Native ChestRenderer Hollowing Instead of GL_ALWAYS

    • In 1.0.5, the mod let vanilla draw a solid chest, then waited for RenderLevelStageEvent.AFTER_BLOCK_ENTITIES, flushed bufferSource.endBatch() three times per chest, and punched a hole over it with GL11.GL_ALWAYS depth overwriting (HollowChestDepthRenderer / OuterWrappedRenderType).
    • In 1.0.6, ChestRendererMixin hooks ChestRenderer directly and swaps the bottom box for an actual hollow shell (ChestCavityGeometry.emitExteriorAndRim: 5 outer faces + four 1px top rim strips mapped to Mojang's exact 64x64 ModelPart.Cube UVs), plus recessed oak plank interior walls and floor (y = 0.085) with proper vertex normals.
    • Supports both Mojang rendering eras without endBatch() spam:
      • < 1.21.9: Hooks ChestRenderer.render(...) directly (LegacyChestItemRenderer / LegacyItemSubmitter), and fixes SpriteCoordinateExpander UV breakage on 1.16.5–1.20.6 by emitting explicit 14-arg vertex(...) / 11-arg addVertex(...) calls.
      • >= 1.21.9–26.3: Integrates cleanly with Mojang's ChestRenderState and SubmitNodeCollector queued extraction pipeline (ChestRenderStateMixin, HollowChestRenderData, ModernChestRenderHelper), reusing pre-allocated item entry objects instead of allocating per frame.
    • Removed 1.0.5's DummyVertexConsumer glint-swallowing hack and renderBatchSize workaround.
  • Ender Chest Portal & Shaderpack Fixes

    • Vanilla (No Shaders): Replaced 1.0.5's UV-scrolling end_portal.png quad fake with actual RenderType.endPortal() / RenderTypes.endPortal() rendering inside Ender Chests (including 15-pass RenderType.endPortal(1..15) on 1.16.5).
    • 1.16.5 Black Ender Chest Fix (No Shaders): On 1.16.5, Iris's BatchedEntityRendering (Groupable) stays active even with shaders turned off and reorders ungrouped endPortal passes so the opaque dark base pass renders on top. LegacyChestItemRenderer now detects Groupable via reflection and wraps passes 0..14 with TaggingRenderTypeWrapper inside maybeStartGroup() / endGroup() so the portal renders properly instead of turning pitch black.
    • Shaderpacks (Iris / Oculus / OptiFine): Standard end_portal rendering breaks inside a chest under shaderpacks because per-face tangent space splits the 4 walls and floor into 5 disconnected portals. ShaderCompatDetector soft-detects active shaders (IrisApi under both net.irisshaders.iris and legacy net.coderbot.iris, plus net.optifine.Config.isShaders()) and draws a unified camera-ray-projected End Portal inside the cavity (entitySolid dark end_sky base + 8 parallax star layers at 0.48F–7.60F depth via fullbright beaconBeam using end_portal_stars.png), turning all 5 inner faces into one continuous portal void.

GUI & Interaction Changes

  • In-Place Mixins Instead of Replacing ContainerScreen
    • 1.0.5 swapped Vanilla's ContainerScreen for a separate GlassChestScreen object on ScreenEvent.Opening.
    • 1.0.6 leaves Vanilla's real ContainerScreen intact and hooks only what needs styling:
      • ScreenBackdropMixin skips the dark/blurred screen backdrop so the 3D chest behind stays sharp.
      • AbstractContainerScreenMixin handles leftPos / topPos docking (RIGHT, LEFT, MIDDLE), hoveredSlot tracking, and label rendering.
      • ContainerScreenMixin replaces renderBg / extractBackground with FrostedChestRenderer.renderFrostedPanel, reading slot coordinates straight from menu.slots.
    • LevelOutlineMixin hides the vanilla block selection wireframe across both halves of an active double chest across all 5 LevelRenderer signatures (1.16.5 through 26.3).

Physics Fixes, Performance & Visual Details

  • Fixed CoreChestSimulation Collision Impulse Sign Bug
    • Found and fixed an impulse bug in 1.0.5's resolveItemCollisions(): item b had += instead of -= on vy and vz, kicking colliding items the wrong way on the Y and Z axes instead of resolving momentum cleanly. Now uses -= across all three axes.
  • Zero-Allocation Container Sync & 20Hz Decoupling
    • 1.0.5 allocated a new ArrayList per chest slot on every sync and used Math.round for globalCap scaling (which could overshoot the cap).
    • 1.0.6 caches per-slot MinecraftItemAdapter snapshots (only calling ItemStack.copy() when count or item/tags/components change), reuses scratch arrays, enforces globalCap with Math.floor + remainder distribution (keeping at least 1 model per non-empty slot when cap allows), adds axis distance early-outs before Math.sqrt, and throttles syncing to once per game tick (20Hz) even at 144–240+ FPS.
    • Simulations settle briefly after closing (45 ticks), cap cached chests at 24, and clean up automatically when chunks unload or chests break.
  • Enchanted Item Runes & Camera Smoothing
    • Added ParticleTypes.ENCHANT particles pulling down toward enchanted (hasGlint()) items inside open chests, rotated properly to match ChestBlock.FACING on both single and double chests (InsightClientController.spawnEnchantedItemRunes).
    • CameraTransitionManager uses cubic ease-in-out interpolation (CameraTransitionMath) and centers cleanly on double chests regardless of which half was clicked.

Config & Logging Overhaul

  • Moved Config from insightchests-client.toml to config/insightchests-client.json

    • Replaced NeoForge's ModConfigSpec TOML (which had the old comment-mismatch auto-reset bug and wasn't portable to Fabric) with a plain Gson config (InsightConfigData) shared identically across all Fabric and NeoForge builds.
    • Available sections & keys (config/insightchests-client.json):
      • general: physicsMode ("FULL", "STATIC", "OFF"), enableCameraTransition (true), cameraSpeed (1.0, range 0.1–5.0)
      • gui: uiBlurIntensity (0.75, range 0.0–1.0), uiBackgroundOpacity (0.25, range 0.0–1.0), guiPosition ("RIGHT", "LEFT", "MIDDLE"), hoverHighlight (true)
      • rendering: representationCap (5, range 1–16), blockRepresentationCap (3, range 1–16), hollowChestModel (true), enableVanillaGlobalItemCap (false), singleChestGlobalCap (32, range 27–128), doubleChestGlobalCap (64, range 54–256)
      • debug: debugMode (false, writes session logs to logs/insightchests/debug-session.log)
    • Removed renderBatchSize (no longer applicable) and temporarily stripped all Iron Chests / Sophisticated Storage config entries until compat returns.
  • Stripped Out Watchdog Bloat in InsightDebug

    • Removed 1.0.5's per-tick pipeline watchdog and reflection crash-snapshot system. When debugMode is false (default), InsightDebug does zero string allocations. When set to true, it writes straightforward logs to logs/insightchests/debug-session.log across every supported version.

Bug Reports

If you run into rendering issues (especially with specific shaderpacks) or version-specific bugs, please leave a comment to let me know with your Minecraft version, loader (Fabric or NeoForge), shaderpack name if any, and logs/insightchests/debug-session.log (set "debugMode": true in config/insightchests-client.json first).

This mod has no additional files