Compatibility
Minecraft: Java Edition
1.20.1
Platforms
Supported environments
Server-side
Client and server
Links
Tags
Creators
Details
Licensed GPL-3.0-only
Published 2 days ago
Create: Sophisticated Storage Compatibility
A Fabric mod that fixes crashes when Sophisticated Storage containers are placed inside Create Contraptions on Minecraft 1.20.1.

Problem
When a Sophisticated Storage block entity (chest, barrel, etc.) is placed inside a Create Contraption, the game crashes with:
java.lang.ClassCastException: class com.simibubi.create.foundation.virtualWorld.VirtualChunk cannot be cast to class net.minecraft.world.chunk.WorldChunk
This happens because:
- Create Contraptions use a special VirtualChunk class for rendering and manipulation
- Sophisticated Storage calls BlockEntity.setChanged() during NBT data loading
- setChanged() tries to cast the chunk to WorldChunk, but it's actually a VirtualChunk
- The cast fails and crashes the game
Solution
This mod implements a Mixin that intercepts all BlockEntity.setChanged() calls and:
- Checks if the block entity is from Sophisticated Storage
- Checks if the current chunk is a Create VirtualChunk
- If both conditions are true, cancels the setChanged() call to prevent the crash
The fix is transparent and doesn't break any functionalityโitems still transfer properly between Create and Sophisticated Storage.
Features
- Enables Sophisticated Storage chests to be moved in Create Contraptions
- Prevents the ClassCastException crash
- Automatic detection โ no configuration needed


