insightchests-1.21.9-neoforge-1.0.6-no-compat.jar
Curse Maven Snippet
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.
- Fabric (35 versions):
- Added proper dedicated-server safety on NeoForge (
ModLoaderAccess.isClient()check skips client initialization cleanly if dropped onto a server) and an SLF4J /System.outlogging wrapper for 1.16.5–1.18.1 where SLF4J isn't present.
- Migrated from a single NeoForge 1.21.1 project to
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 (
ResourceLocationvsIdentifier,ItemStackequality across< 1.17/1.17–1.20.4/1.20.5+,Camera.setupmoving toalignWithEntityin 26.1+,Minecraft.setScreenmoving toGui.setScreenin 26.2+,LevelRenderer.renderHitOutlinemoving tosubmitBlockOutlinein 26.2+,PoseStack.mulPosevsrotatein 26.3+) stay isolated behind version branches instead of breaking core behavior.
- Separated pure Java logic (
Rendering Rewrite (No More Post-Render Depth Hacks)
Native
ChestRendererHollowing Instead ofGL_ALWAYS- In 1.0.5, the mod let vanilla draw a solid chest, then waited for
RenderLevelStageEvent.AFTER_BLOCK_ENTITIES, flushedbufferSource.endBatch()three times per chest, and punched a hole over it withGL11.GL_ALWAYSdepth overwriting (HollowChestDepthRenderer/OuterWrappedRenderType). - In 1.0.6,
ChestRendererMixinhooksChestRendererdirectly and swaps the bottom box for an actual hollow shell (ChestCavityGeometry.emitExteriorAndRim: 5 outer faces + four 1px top rim strips mapped to Mojang's exact64x64ModelPart.CubeUVs), 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: HooksChestRenderer.render(...)directly (LegacyChestItemRenderer/LegacyItemSubmitter), and fixesSpriteCoordinateExpanderUV breakage on1.16.5–1.20.6by emitting explicit 14-argvertex(...)/ 11-argaddVertex(...)calls.>= 1.21.9–26.3: Integrates cleanly with Mojang'sChestRenderStateandSubmitNodeCollectorqueued extraction pipeline (ChestRenderStateMixin,HollowChestRenderData,ModernChestRenderHelper), reusing pre-allocated item entry objects instead of allocating per frame.
- Removed 1.0.5's
DummyVertexConsumerglint-swallowing hack andrenderBatchSizeworkaround.
- In 1.0.5, the mod let vanilla draw a solid chest, then waited for
Ender Chest Portal & Shaderpack Fixes
- Vanilla (No Shaders): Replaced 1.0.5's UV-scrolling
end_portal.pngquad fake with actualRenderType.endPortal()/RenderTypes.endPortal()rendering inside Ender Chests (including 15-passRenderType.endPortal(1..15)on1.16.5). 1.16.5Black Ender Chest Fix (No Shaders): On1.16.5, Iris'sBatchedEntityRendering(Groupable) stays active even with shaders turned off and reorders ungroupedendPortalpasses so the opaque dark base pass renders on top.LegacyChestItemRenderernow detectsGroupablevia reflection and wraps passes0..14withTaggingRenderTypeWrapperinsidemaybeStartGroup()/endGroup()so the portal renders properly instead of turning pitch black.- Shaderpacks (Iris / Oculus / OptiFine): Standard
end_portalrendering breaks inside a chest under shaderpacks because per-face tangent space splits the 4 walls and floor into 5 disconnected portals.ShaderCompatDetectorsoft-detects active shaders (IrisApiunder bothnet.irisshaders.irisand legacynet.coderbot.iris, plusnet.optifine.Config.isShaders()) and draws a unified camera-ray-projected End Portal inside the cavity (entitySoliddarkend_skybase + 8 parallax star layers at0.48F–7.60Fdepth via fullbrightbeaconBeamusingend_portal_stars.png), turning all 5 inner faces into one continuous portal void.
- Vanilla (No Shaders): Replaced 1.0.5's UV-scrolling
GUI & Interaction Changes
- In-Place Mixins Instead of Replacing
ContainerScreen- 1.0.5 swapped Vanilla's
ContainerScreenfor a separateGlassChestScreenobject onScreenEvent.Opening. - 1.0.6 leaves Vanilla's real
ContainerScreenintact and hooks only what needs styling:ScreenBackdropMixinskips the dark/blurred screen backdrop so the 3D chest behind stays sharp.AbstractContainerScreenMixinhandlesleftPos/topPosdocking (RIGHT,LEFT,MIDDLE),hoveredSlottracking, and label rendering.ContainerScreenMixinreplacesrenderBg/extractBackgroundwithFrostedChestRenderer.renderFrostedPanel, reading slot coordinates straight frommenu.slots.
LevelOutlineMixinhides the vanilla block selection wireframe across both halves of an active double chest across all 5LevelRenderersignatures (1.16.5through26.3).
- 1.0.5 swapped Vanilla's
Physics Fixes, Performance & Visual Details
- Fixed
CoreChestSimulationCollision Impulse Sign Bug- Found and fixed an impulse bug in 1.0.5's
resolveItemCollisions(): itembhad+=instead of-=onvyandvz, kicking colliding items the wrong way on the Y and Z axes instead of resolving momentum cleanly. Now uses-=across all three axes.
- Found and fixed an impulse bug in 1.0.5's
- Zero-Allocation Container Sync & 20Hz Decoupling
- 1.0.5 allocated a new
ArrayListper chest slot on every sync and usedMath.roundforglobalCapscaling (which could overshoot the cap). - 1.0.6 caches per-slot
MinecraftItemAdaptersnapshots (only callingItemStack.copy()when count or item/tags/components change), reuses scratch arrays, enforcesglobalCapwithMath.floor+ remainder distribution (keeping at least 1 model per non-empty slot when cap allows), adds axis distance early-outs beforeMath.sqrt, and throttles syncing to once per game tick (20Hz) even at 144–240+ FPS. - Simulations settle briefly after closing (
45ticks), cap cached chests at24, and clean up automatically when chunks unload or chests break.
- 1.0.5 allocated a new
- Enchanted Item Runes & Camera Smoothing
- Added
ParticleTypes.ENCHANTparticles pulling down toward enchanted (hasGlint()) items inside open chests, rotated properly to matchChestBlock.FACINGon both single and double chests (InsightClientController.spawnEnchantedItemRunes). CameraTransitionManageruses cubic ease-in-out interpolation (CameraTransitionMath) and centers cleanly on double chests regardless of which half was clicked.
- Added
Config & Logging Overhaul
Moved Config from
insightchests-client.tomltoconfig/insightchests-client.json- Replaced NeoForge's
ModConfigSpecTOML (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, range0.1–5.0)gui:uiBlurIntensity(0.75, range0.0–1.0),uiBackgroundOpacity(0.25, range0.0–1.0),guiPosition("RIGHT","LEFT","MIDDLE"),hoverHighlight(true)rendering:representationCap(5, range1–16),blockRepresentationCap(3, range1–16),hollowChestModel(true),enableVanillaGlobalItemCap(false),singleChestGlobalCap(32, range27–128),doubleChestGlobalCap(64, range54–256)debug:debugMode(false, writes session logs tologs/insightchests/debug-session.log)
- Removed
renderBatchSize(no longer applicable) and temporarily stripped all Iron Chests / Sophisticated Storage config entries until compat returns.
- Replaced NeoForge's
Stripped Out Watchdog Bloat in
InsightDebug- Removed 1.0.5's per-tick pipeline watchdog and reflection crash-snapshot system. When
debugModeisfalse(default),InsightDebugdoes zero string allocations. When set totrue, it writes straightforward logs tologs/insightchests/debug-session.logacross every supported version.
- Removed 1.0.5's per-tick pipeline watchdog and reflection crash-snapshot system. When
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).
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects