Reasonable Sorting
如果看不懂英文,可以阅读中文版。
This mod supports Fabric, Quilt and Forge. Please pay attention to the compatible mod loader and game version before choosing which to download. 本模组支持Fabric、Quilt和Forge。选择要下载的文件之前,请留意兼容的模组加载器和游戏版本。
你是否发现,在创造模式中,由于分类杂乱无章,想要从创意物品栏中找到想要的东西是一项相当困难的工作?安装此模组后,你的创意物品栏将变得井然有序!你会发现所有的楼梯和台阶都跟随其基础方块排列,栅栏门被归类到装饰类方块并跟随对应的栅栏。彩色方块的排序遵循渐变色顺序。
你可以自定义排序规则和物品组转移规则。
该模组依赖于 Cloth Config mod,没有它该模组将无法运行。此外,对于 Fabric 和 Quilt 版本,建议安装 Mod Menu 以便进行配置。
此模组的 Fabric 版本依赖 Fabric API。此模组的 Quilt 版本(1.18.2 及以上)依赖 Quilt Standard Libraries。
自版本 2.0.0 起,此模组不再与 Extended Block Shapes 模组 1.5.2 或更低版本兼容(尽管尚未产生冲突)。请等待 Extended Block Shapes 模组的更新版本。
此模组的 Quilt 版本正在开发中。
配置
你可以通过 Mod Menu 来配置此模组。
排序
启用排序
默认开启。如果关闭,所有排序效果将回归原版行为,且后续配置项将不再生效。
排序影响范围
定义模组在哪些情况下生效。如果你不了解其含义,保持默认值即可。可选值如下:
- Registry(注册表):Minecraft 注册表的所有迭代都将受到影响。这可能会影响更多场景,例如列出方块或物品的模组。但这也可能带来一些不稳定性,例如加入服务器时潜在的注册表不匹配问题。
- Inventory only(仅限物品栏):仅影响你的创造模式物品栏。其他情况不会受此模组影响。
排序计算类型
定义何时进行排序计算。如果你不了解其含义,保持默认值即可。可选值如下:
- Standard(标准):内容(如物品)的排序在游戏启动或配置加载时完全计算完成,并在修改配置时重新计算。这是推荐的方式,因为它减少了每次迭代时的不必要计算。(如果你使用 Forge 且“排序影响范围”设置为“Registry”,则此选项无效。)
- Semi real-time(半实时):内容的组合规则在游戏启动、配置加载或修改配置时计算。然而,排序结果仍会在每次迭代时计算。打开创造物品栏时可能会导致轻微卡顿。
- Real-time(实时):内容的组合规则和排序结果在每次注册表迭代时计算。打开创造物品栏时可能会导致卡顿。
调试模式
如果启用,将会记录更详细的模组信息。当你研究此模组或发现任何问题时,可以启用此选项。
启用默认物品排序规则
默认开启。此模组内置了一些物品排序规则。例如,冰、 packed ice 和蓝冰会被归在一起。
自定义排序规则
默认为空。你可以通过输入物品 ID 来自定义排序规则。在模组配置界面,点击左侧的“+”号,你会看到一个不太明显的文本框。在其中输入一条规则。规则的语法为:多个物品 ID 之间用空格分隔。例如 dirt white_wool diamond_block 表示 Dirt、White Wool 和 Diamond Block 将归为一组,其中 White Wools 和 Diamond Block 跟随 Dirt 排列。
变体跟随基础方块
在 Minecraft 中,许多方块都有它们的变体。例如,橡木板的“楼梯”变体是“橡木楼梯”,“台阶”变体是“橡木台阶”,这也意味着,橡木台阶、橡木楼梯等的基础方块是橡木木板。你可以指定某些变体使其跟随其基础方块排列。
默认语法为:多个方块变体名称之间用空格分隔。可用的变体名称将在模组配置界面中显示。默认为 stairs slab,这意味着所有楼梯和台阶都跟随其基础方块排列。
请注意,更改物品排序不会影响它们所属的物品组。要更改物品组,你还需要配置变体转移规则。
栅栏门跟随栅栏
默认开启。使所有栅栏门方块跟随其对应的栅栏方块。需要启用 Fence gates in decorations,否则它们仍将出现在“红石”物品组中且不生效。
高级颜色排序
按渐变顺序对彩色方块和物品(如羊毛、 glazed terracotta、床、旗帜)进行排序,类似于 Minecraft 1.19.3 中的显示效果。
避免影响方块注册表
默认关闭。当开启时,只有物品注册表(包括方块物品,如创造物品栏中的方块)会受到上述选项的影响,而方块注册表(如调试模式下的方块)不受影响。这在一定程度上可以避免加入服务器时出现的方块不匹配问题。如果你将“排序影响范围”设置为“Inventory only”,则此选项无效。
注意:如果“排序影响范围”设置为“inventory only”,此配置将不生效。
物品组转移
启用物品组转移
默认开启。如果关闭,所有物品将出现在它们在原版中所属的物品组中,且后续配置将不生效。
Buttons in decorations(按钮归入装饰)
Fence gates in decorations(栅栏门归入装饰)
Swords in tools(剑归入工具)
Doors in decorations(门归入装饰)
上述四项条目的含义显而易见。默认情况下,“Fence gates in decorations”为开启状态,其余为关闭状态。
自定义物品组转移规则
默认为空。类似于自定义排序规则,每行一条规则,点击 “+” 可添加新规则。每条规则的语法为:物品 ID、空格、目标物品组。例如,redstone_block building_blocks 会将红石块转移到“建筑方块”物品组中。
自定义变体转移规则
默认为空。与上述类似。语法为:变体名称、空格、目标物品组。例如,cut transportation 会将所有切割类方块转移到“交通”物品组中。
自定义正则表达式转移规则
默认为空。与上述类似。语法为:正则表达式、空格、目标物品组。例如,.+?button transportation 会将所有标识符以 button 结尾的物品转移到“交通”物品组中。
自定义标签转移规则
默认为空。与上述类似。语法为:标签 ID、空格、目标物品组。例如,flowers transportation 会将 #minecraft:flowers 标签下的所有物品转移到“交通”物品组中。
技术细节
物品排序的本质是“指定一个主物品和多个跟随物品;跟随物品将出现在主物品的正后方”。举例来说,对于规则 dirt white_wool diamond_block,泥土是主物品,而白羊毛和钻石块将紧挨着泥土出现,而不是它们原本应该出现的位置。
一个物品不能同时跟随多个物品,否则它将只跟随其中一个。例如,如果同时定义了 dirt white_wool 和 grass_block white_wool 这两条规则,那么白羊毛将出现在泥土或草方块中的某一个之后,这意味着物品不会重复出现。
物品可以递归跟随。在默认情况下,根据“变体跟随基础方块”的规则,橡木楼梯和橡木台阶会出现在橡木木板之后。而根据“默认物品排序规则”,石化橡木台阶会出现在橡木台阶之后。因此,你可能会看到这样的排列:“橡木木板 - 橡木楼梯 - 橡木台阶 - 石化橡木台阶”。
物品不能相互跟随或形成循环。例如,如果同时定义了 dirt white_wool 和 white_wool dirt,那么泥土和白羊毛都可能无法正确定位(你可以在日志中找到相关错误)。存在死循环的风险,请避免这种情况。
关于物品组转移,被转移的物品将不再出现在原来的物品组中。然而,一个物品可以被转移到多个组中。
Reasonable Sorting
如果看不懂英文,可以阅读中文版。
This mod supports Fabric, Quilt and Forge. Please pay attention to the compatible mod loader and game version before choosing which to download. 本模组支持Fabric、Quilt和Forge。选择要下载的文件之前,请留意兼容的模组加载器和游戏版本。
Did you find that, in Creative Mode, it's quite a hard work to find in the creative inventory anything you want, as the sorting of them is so messy? Install this mod, and your creative inventory will be beautifully sorted! You will discover that all stairs and slabs follow their base blocks, and fence gates are transferred to decoration blocks and follow their relevant fence. Colorful blocks are sorted in the gradient color order.
You may config your custom sorting rules and item group transfer rules.
The mod depends on Cloth Config mod, without which this mod cannot work. Besides, for Fabric and Quilt version, it's recommended to install Mod Menu to configure.
The Fabric version of this mod depends on Fabric API. The Quilt version of this mod (for 1.18.2 and above) depends on Quilt Standard Libraries.
Since version 2.0.0, this mod does not work with Extended Block Shapes mod of version 1.5.2 or lower (yet still no conflict). Please wait for newer versions of Extended Block Shapes mod.
The Quilt version of this mod is under construction.
Configuration
You can configure this mod through Mod Menu.
Sorting
Enable sorting
ON by default. If OFF, all the sorting works as vanilla, and following configurations will not work.
Sorting influence range
Defines in what cases the mod has influence. If you don't know the meaning, just remain the default value. Supported values:
- Registry: All iterations of the Minecraft's registry will be affected. This may affect more situations, such as mods that list blocks or items. However, it may bring out some instabilities, such as potential registry mismatch when you join servers.
- Inventory only: Only affect your Creative Mode inventory. Other situations will not be affected by the mod.
Sorting calculation type
Defines when to calculate the sorting. If you don't know the meaning, just remain the default value. Supported values:
- Standard: Sorting of content (such as items) is calculated completely when the game starts or the config is loaded, and will be re-calculated when modifying the configs. This is the preferred way because it reduced unnecessary calculation in each iteration. (This option has no effect if your using Forge and meanwhile the value of "Sorting influence range" is "Registry".)
- Semi real-time: The combination rules of content are calculated when the game starts, the config is loaded, or when modifying configs. However, the sorting result is still calculated in each iteration. It may cause a slight lag when you open your creative inventory.
- Real-time: The combination rules of content and the sorting result is calculated in each iteration of registry. It may cause a lag when you open your creative inventory.
Debug mode
If enabled, more detailed information of the mod will be logged. You may enable it when you're researching this mod or find any problems.
Enable default item sorting rules
ON by default. This mod has some installed item sorting rules. For instance, Ice, Packed Ice and Blue Ice are sorted together.
Custom sorting rule
Empty by default. You can have custom sorting rules by typing item id. In the mod config screen, click the "+" on the left, and you will see an unapparent text box on the below. Type one rule in it. The syntax of a rule is: multiple item ids are separated with a space. For example, dirt white_wool diamond_block means that Dirt, White Wool and Diamond Block become together, in which White Wools and Diamond Block follow Dirt.
Variants following base blocks
In Minecraft, many blocks have their variants. For example, of Oak Planks, the "stairs" variant is "Oak Stairs" and "slab" variant is "Oak Slab", which also means, Oak Planks is the base block or Oak Stairs, Oak Slab etc. You can specify some variants which will follow their base blocks.
The default syntax is, multiple block variant names are separated with a space. Available variant names are displayed in the mod config screen. By default stairs slab, which means, all stairs and slabs follow their base blocks.
Take notice that changing item sorting does not affect which item group they belong to. To change item groups you need also to config Variant transfer rules.
Fence gate follows fence
ON by default. Makes all fence gate blocks follow their corresponding fence blocks. Requires Fence gates in decorations otherwise their still appear in "Redstone" item group and does not take effect.
Fancy color sorting
Sort colored blocks and items (such as wool, glazed terracotta, bed, banner) in a gradient order, like what is looks in Minecraft 1.19.3.
Avoid affecting block registries
OFF by default. When ON, only the item registry, including block items (such as blocks in the Creative inventory) are affected by options above, and block registries (such as blocks in the Debug Mode) are not affected. This can to some extent avoid block mismatch if you are joining a server. This option has no effect if you set 'Sorting Influence Range' to 'Inventory only'.
Note: If "sorting influence range" is set to "inventory only", this config will take no effect.
Item group transfer
Enable item group transfer
ON by default. If OFF, all items appear in the item groups they belong to in vanilla, and following configs will not work.
Buttons in decorations
Fence gates in decorations
Swords in tools
Doors in decorations
The meaning of the four entries above is obvious. By default, "Fence gates in decorations" is ON, and others are OFF.
Custom item group transfer rules
Empty by default. Similar to custom sorting rules, one rule every line, and add a new rule by clicking "+". The syntax of each rule is: item id, space, the item group to transfer to. For example, redstone_block building_blocks will transfer Redstone Block to "Building Blocks" item group.
Custom variant transfer rules
Empty by default. Similar to above. Syntax: variant name, space, and the item group to transfer to. For example,cut transportation transfers all cut blocks to "Transportations".
Custom regex transfer rules
Empty by default. Similar to above. Syntax: regex, space, and the item group to transfer to. For example, .+?button transportation transfers to all items which identifier ends with button to "Transportations".
Custom tag transfer rules
Empty by default. Similar to above. Syntax: tag id, space, and the item group to transfer to. For example, flowers transportation will transfer items in #minecraft:flowers to "Transportation" item group.
Technical details
The essence of item sorting is "specify a leading item and multiple following items; the following items will appear right after the leading item". To make an example, for rule dirt white_wool diamond_block, the dirt is a leading item, and white wool and diamond block will appear right after the dirt, instead of the place they should have been.
An item may not follow multiple items, otherwise it only follows one of them. For example, if both the two rules dirt white_wool and grass_block white_wool are defined, the white wool will right after one of the dirt and grass block, which means, items will not duplicate.
Items can follow recursively. In default situation, for instance, according to the "variants following base blocks" rule, oak stairs and oak slab appear after the oak planks. And according to "default item sorting rule", petrified oak slab appear after the oak slab. Therefore, you may see the combination of "oak planks - oak stairs - oak slab - petrified oak slab".
Items may not follow mutually or loopy. For example, if both dirt white_wool and white_wool dirt are defined, both dirt and white wool may not disappear (you can find errors in the log). Danger of dead loop may exist. You should avoid this.
About item group transfer, the transferred items do not appear in the former item groups. However, one item can be transferred to multiple groups.
下载 Reasonable Sorting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reasonable Sorting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reasonable Sorting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reasonable Sorting
下载 Reasonable Sorting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reasonable Sorting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reasonable Sorting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reasonable Sorting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reasonable Sorting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Reasonable Sorting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
未指定更新日志。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧