Dimensional Sable
Sable Mod 的附加模组,允许跨维度传送子层!
传送子层的命令是 /sable dim_teleport ...
允许传送一个子层以及所有相连/相交的子层(连接方式包括绳索、弹簧、对接连接器等)。
工作原理: 服务器会维护一个全局掩码,记录绘图区中各个地块在任何维度中的占用情况。通过这种方式,你可以将可拥有的子层数量(本身已经非常庞大)除以维度的数量。这使得子层可以“原地”序列化,保留所有之前的位置和数据。这避免了前一种解决方案的最大问题:修复方块实体。目前,这意味着在传送在安装该模组之前创建的子层时,可能会出现一些未定义的行为,请小心!!!(拆卸并重新组装子层应该足以解决此问题)
已完成功能:
- 方块 NBT 数据得以保存且保持一致(即使在不同高度的维度之间)
- 连接(如绳索)能正确传送并保持连接状态
- Create 机械装置保持运行,并无缝继续移动
- 实体随子层一起传送,并保持相对位置
- 骑乘载体的实体在传送间仍保持在载体上
未来目标:
- 销毁任何将子层连接到地面的方块(或失败而非销毁)
- 找到一种加载超过维度世界边界的子层的解决方案(也许将其切成两半?)
[开发者参考]
用于传送子层的函数是 SubLevelWarper::warpConnectedSubLevels(subLevel, dimension, position, orientationTransform)
Dimensional Sable
An addon to the Sable Mod that allows for teleporting sublevels across dimensions!
The command to warp a sublevel is /sable dim_teleport ...
Allows for teleporting a sublevel and all connected/intersecting sublevels (connections being ropes, springs, docking connectors etc).
How it works: The server keeps a global mask of what plots in the plotyard are occupied in any dimension. By doing this, you divide the number of sublevels you can have (which is huge anyway) by the number of dimensions. This allows sublevels to be serialized "in-place", keeping all previous positions and data. This avoids the biggest issue of the previous solution: fixing block entities. Currently, this does mean there is some undefined behavior when warping a sublevel that was made before installing the mod, so beware!!! (disassembling and reassembling the sublevel should be enough to fix this)
Completed:
- Block nbt stays saved and consistent (even between dimensions of different heights)
- Connections (like ropes) teleport correctly and stay connected
- Create contraptions stay running and seamlessly continue moving
- Entities are teleported with the sublevel and keep relative positions
- Entities riding vehicles stay on those vehicles between teleports
Future Goals:
- Destroy any blocks that are connecting the sublevel to the ground (or fail instead)
- Find a solution to loading sublevels that are over the world boundary of a dimension (maybe cut them in half?)
[FOR DEVELOPERS]
The function to teleport a sublevel is SubLevelWarper::warpConnectedSubLevels(subLevel, dimension, position, orientationTransform)
下载 Dimensional Sable
下载 Dimensional Sable
下载 Dimensional Sable
下载 Dimensional Sable
下载 Dimensional Sable
下载 Dimensional Sable
下载 Dimensional Sable
下载 Dimensional Sable
快速且粗糙的 Fabric 移植版
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧