Sophisticated Storage Create Fabric Compatibility 图标

Sophisticated Storage Create Fabric Compatibility

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
资源信息

Minecraft 版本: 1.20.1

平台: fabric

标签: utility

资源介绍

Create: Sophisticated Storage Compatibility

A Fabric mod that fixes crashes when Sophisticated Storage containers are placed inside Create Contraptions on Minecraft 1.20.1.

contraptions and train support

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:

  1. Create Contraptions use a special VirtualChunk class for rendering and manipulation
  2. Sophisticated Storage calls BlockEntity.setChanged() during NBT data loading
  3. setChanged() tries to cast the chunk to WorldChunk, but it's actually a VirtualChunk
  4. The cast fails and crashes the game

Solution

This mod implements a Mixin that intercepts all BlockEntity.setChanged() calls and:

  1. Checks if the block entity is from Sophisticated Storage
  2. Checks if the current chunk is a Create VirtualChunk
  3. 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
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Light Fast Grass

价格:0 墨喵币
下载量:0

查看详情
VibiesCustomEnchants

价格:0 墨喵币
下载量:0

查看详情
Snap TPA

价格:0 墨喵币
下载量:0

查看详情
NoLogMessage

价格:0 墨喵币
下载量:0

查看详情