Spatial
Spatial 是一个服务端 Fabric 模组,它将物品栏系统转换为基于网格的系统。一个空间系统。
如今许多模组都在试图解决日益膨胀的物品栏问题。
本模组并非此类之一。
Spatial 彻底革新了你整理物品栏时的挣扎方式。
此外,还有一个完全可选的客户端版本,可改善渲染效果并提升整体体验的一致性。
截图

启用可选客户端模组时

未启用可选客户端模组时

配置
配置文件位于 ./config/spatial.json。
可以通过在 shape_overrides 中添加条目来为物品的形状添加覆盖配置。
形状格式
形状覆盖的格式类似于合成配方中使用的形状格式。
除空格外的任何字符都被视为物品所占用的格子。空格被视为空槽位。
以下是为山羊角赋予 L 形配置的示例:
{
...
"shape_overrides": {
"minecraft:goat_horn": [
"x ",
"xx"
]
},
...
}
残酷模式
启用残酷模式后,将禁用所有物品的堆叠。
默认关闭。
模组兼容性
Spatial 会在服务器启动时自动检测所有已加载的形状合成配方。
因此,对于拥有形状合成配方的模组物品,无需额外操作即可兼容。
为避免破坏模组化的物品栏,Spatial 仅在特定的物品栏界面中生效。
此功能未来可能支持自定义配置,但目前它无法在非继承自启用了 Spatial 物品的原版界面的模组化界面中工作。
支持的界面
- 生存玩家物品栏
- 箱子
- 末影箱
- 桶
- 潜影盒
- 发射器和投掷器
- 载具物品栏
面向模组开发者
如果你希望为你的模组或其他模组的物品添加形状覆盖,
你需要注册一个监听器以监听 Spatial.SHAPES_LOADED,并调用 Spatial.addShapeOverride(item, shape) 或其他形状覆盖方法。
Spatial
Spatial is a server side Fabric mod that converts the inventory system into a grid-based system. A spatial system.
So many mods these days are trying to fix the ever-growing problem that is the inventory.
This mod is not one of those.
Spatial revolutionizes the way that you struggle to organize your inventory.
There is also a completely optional client side version that improves the rendering and overall cohesiveness of the experience.
Screenshots

With Optional Client Mod

Without Optional Client Mod

Configuration
The config file can be found in ./config/spatial.json.
Overrides for shapes of items can be added in the config using by adding entries to shape_overrides.
Shape Format
The format of shape overrides is similar to the format crafting recipes use for their shape.
Any character besides a space is treated as a slot the item occupies. Spaces are treated as empty slots.
An example config that gives goat horns an L shape.
{
...
"shape_overrides": {
"minecraft:goat_horn": [
"x ",
"xx"
]
},
...
}
Brutal Mode
When enabled brutal mode disables stacking of any items.
Disabled by default.
Mod Compatibility
Spatial will automatically detect all shaped recipes loaded at server start.
So no extra work is required for modded items that have shaped crafting recipes.
To avoid breaking modded inventories Spatial is only active in specific inventory screens.
This may be configurable in the future but as of right now it won't work in modded screens that don't extend a vanilla screen that has Spatial items enabled.
Supported Screens
- Survival Player Inventory
- Chests
- Ender Chests
- Barrels
- Shulker Boxes
- Dispensers and Droppers
- Vehicle Inventories
For Modders
If you want to add shape overrides for an item in your mod or another mod
you need to register a listener to Spatial.SHAPES_LOADED and call Spatial.addShapeOverride(item, shape) or any of the other shape override methods.
评论 0
登录后参与评分
还没有评论,来抢沙发吧