本模组专为整合包开发者设计,不建议在未配置的情况下直接安装。它是为我制作的整合包 Exoria 而开发的。
该模组会限制方块/机器的放置和交互(右键点击)行为。可以使用多种条件进行限制,例如:位于露天环境、位于封闭房间内、附近有特定方块、处于特定维度、位于特定 Y 轴高度,或需要达到一定的经验等级。
首次启动时,它会在 config/restriction 目录下生成一个示例 JSON 文件 restriction.json,你需要编辑它,并可将其作为参考范例使用。
JSON 的结构如下:
- "entries" 是一个数组,用于定义各项具体限制
-- "block" 定义要限制的方块 ID
-- "meta" 定义方块的元数据(meta)
-- "ignoreMeta" 设为 true,表示无论方块的元数据如何,所有该方块 ID 的方块都将受到限制
-- "restrictions" 该方块所适用的限制条件数组
--- "type" 可选值包括:CLOSEDROOM(封闭房间)、DIMENSION(维度)、NEARBYBLOCKS(附近方块)、EXPERIENCE(经验等级)、MINHEIGHT(最小高度)
--- "reverse" 设为 true 可反转逻辑,例如将 MINHEIGHT 转换为最大高度要求
--- "block" 方块 ID;对于 CLOSEDROOM 是可选的,用于定义构成房间的方块类型;对于 NEARBYBLOCKS 则是必需的
--- "meta" 定义上述方块的元数据
--- "ignoreMeta" 设为 true,表示只要方块 ID 相同即允许,忽略元数据差异
--- "amount" 所需上方块的最小数量;对于 EXPERIENCE 则是所需的经验等级;对于 MINHEIGHT 则是 Y 轴高度值
--- "size" CLOSEDROOM 类型的房间最小尺寸
--- "id" DIMENSION 类型的维度 ID
This mod is made for modpack developers and not meant to be installed unconfigured. I made it for my modpack Exoria.
This mod restricts placement and interaction (right click) of blocks/machines. There are several criteria that can be used, such as being under an open sky, being in a closed room, having a special block nearby, being in a special dimension, being on a certain y level or needing a certain amount of experience.
On the first launch it will create an example json under config/restriction named restriction.json, you need to edit it and can use it as an example.
The structure of the json is the following:
- "entries" is an array that defines the single restrictions
-- "block" define the block id to be restricted
-- "meta" define the meta data of the block
-- "ignoreMeta" set to true, if you want all blocks of the block id to be restricted no matter of the block id
-- "restrictions" array of restrictions that this block has
--- "type" CLOSEDROOM, DIMENSION, NEARBYBLOCKS, EXPERIENCE, MINHEIGHT
--- "reverse" set to true to invert the logic, this will turn MINHEIGHT for example to a max height requirement
--- "block" block id that is optional for CLOSEDROOM to define blocks that the room is made out of; and required for NEARBYBLOCKS
--- "meta" define the meta of above block
--- "ignoreMeta" set to true, if all blocks of the same block id are allowed and meta data doesn't matter
--- "amount" the minimum amount of blocks required that are defined above; or the XP level for EXPERIENCE; or the y level for MINHEIGHT
--- "size" min room size for CLOSEDROOM
--- "id" the dimension id for DIMENSION
评论 0
登录后参与评分
还没有评论,来抢沙发吧