Dimension Locker
描述
此模组允许禁用任何维度(兼容其他模组)。可以通过自定义物品授予例外权限,让玩家进入被锁定的维度。它引入了新命令、游戏规则和自定义数据组件,以增强玩家与通行证之间的互动。
功能
-
锁定传送门
每当任何实体即将通过传送门传送到被锁定的维度时,它会被推回,并收到一条包含该维度名称的反馈消息。


-
兼容性
本模组支持以下加载器:
- Forge
- NeoForge
- Fabric
- Quilt
可与任何添加维度的其他模组开箱即用,但仍需要一些语言兼容性支持。
你需要一个资源包来添加语言键,格式为:
dimension.<mod_id>.<dimension_name>
例如,对于下界维度,模组内配置了 "dimension.minecraft.the_nether": "The Nether",
-
数据组件
以下是本模组添加的几个数据组件,建议一起使用,但如果需要也可以单独使用。
-
dimension:
当实体持有带有 dimension 数据组件的物品时,无论目标维度是否被锁定,只要组件中指定的维度与尝试进入的维度匹配,即可进入。
示例:
/give @s minecraft:ender_eye[dimension_locker:dimension="minecraft:the_end"]
-
cant_enter_ender_chest:
阻止物品进入末影箱,以及包含它的任何物品(如潜影盒、包裹等)。

示例:/give @s minecraft:ender_eye[dimension_locker:cant_enter_ender_chest={}]
-
un_despawnable:
非常简单,防止物品在标准的5分钟后消失,可以与 damage_resistant 数据组件配合使用,使物品不可破坏。
示例:/give @s minecraft:ender_eye[dimension_locker:un_despawnable={}]
-
命令
你无需重启服务器即可锁定维度,管理员可以使用以下任一命令,维度将立即被锁定或解锁。
- 锁定命令:
/dimension lock <dimension>
- 解锁命令:
/dimension unlock <dimension>
- 检查命令:
/dimension isLocked <dimension>
操作员可以检查维度的锁定状态。
-
新游戏规则
operatorCanEnterLockedDimension:一个决定操作员是否可以绕过锁定维度的游戏规则。默认设置为 true。
Dimension Locker
Description
This mod lets you disable any dimension (Compatible with other mods). Exceptions can be granted through custom items to let players enter locked dimension. It introduces new commands, a gamerule, and custom data components to enhance the player interactions with the permits.
Features
-
Locked portals
Whenever any entity is about to be teleported (by a portal) to a locked dimension, it would being pushed instead, also get a feedback message with the dimension's name.


-
Compatibility
This mod is available in
- Forge
- NeoForge
- Fabric
- Quilt
Works out of the box with any other mod that adds dimensions, however you still need some language compatibility.
you will need a resource pack to add a language key,
dimension.<mod_id>.<dimension_name>
in the case of the nether dimension the mod has "dimension.minecraft.the_nether": "The Nether",
-
Data Components
Here are a couple of Data Components added by the mod that are recommended to use all together, but can be used separately if desired.
-
dimension:
whenever an entity has a item with the dimension data component, no matter if the dimension is trying to enter is locked, it will enter as long as the component's dimension matches the one trying to enter.
Example:
/give @s minecraft:ender_eye[dimension_locker:dimension="minecraft:the_end"]
-
cant_enter_ender_chest:
Doesn't let the item inside the ender chest, nor any item containing it (shulker boxes, bundles, etc).

Example: /give @s minecraft:ender_eye[dimension_locker:cant_enter_ender_chest={}]
-
un_despawnable:
Quite simple, prevents the item from despawning after the standard 5 minutes, can be paired with the damage_resistant data component to make undestructible items.
Example: /give @s minecraft:ender_eye[dimension_locker:un_despawnable={}]
-
Commands
You don't have to reboot your server to lock a dimension, an admin can use one of these commands, and it the dimension would be locked/unlocked right away.
- Lock Command:
/dimension lock <dimension>
- Unlock Command:
/dimension unlock <dimension>
- Check Command:
/dimension isLocked <dimension>
Operators can check the locked status of a dimension.
-
New Gamerule
operatorCanEnterLockedDimension: A gamerule that determines whether operators can bypass locked dimensions. Set to true by default.
评论 0
登录后参与评分
还没有评论,来抢沙发吧