Bedrock Allow Deny Border
一款忠实还原的 Minecraft Java 版 1.21 客户端侧 Fabric 模组,将基岩版/教育版的 Allow(允许)、Deny(禁止) 和 Border(边界) 方块带入 Java 版——专为单人世界和 局域网合作建造 设计。所有规则在所有客户端上保持一致地评估,主机的配置会实时同步给局域网中的每个人。
添加了什么?
在专用的创造模式标签页中添加了三种“教师方块”风格的实用方块:
| 方块 |
用途 |
| Allow Block(允许方块) |
即使在建筑受限区域,也将一列标记为可建造。 |
| Deny Block(禁止方块) |
禁止在其整列中放置或破坏方块(位置下方的最近规则生效;最高堆叠的方块优先)。 |
| Border Block(边界方块) |
一道隐形墙,阻挡每个 Y 轴高度上的整个 (x, z) 列——无法通过跳跃越过、飞行跨越或从下方挖掘穿过它。 |
这些方块具有极高的防爆性,且不能被活塞推动,因此是安全的地图制作工具。
主要特性
- 基于列的保护 - 一个 allow/deny 方块控制其整个垂直列的建筑规则,与基岩版原版完全一致。
- 整列边界屏障 - 边界墙存在于该方块 (x, z) 位置的整个世界底部到顶部;通行规则在每个高度都适用。
- 两种边界模式,可在游戏中选择:
- 类基岩版(默认):阻止无权限玩家和怪物;投射物、旁观者、有权限玩家、恼鬼和末影龙可以穿过。
- 阻挡所有实体:除有权限玩家和旁观者外,阻挡所有实体(箭矢、末影珍珠、火球、潜影贝子弹等也会被阻挡)。
- 灵活的权限系统:
- 全局白名单(
/allowdeny whitelist ...),
- 存储在物品/方块实体 NBT 中的单块白名单,
- 操作员绕过(权限等级 2,可选要求创造模式)。
- 可视化配置界面 - 当安装了 Mod Menu 和 Cloth Config 时(运行时均为可选),Mod 列表屏幕会出现一个“Config”按钮。
- 完整的命令套件用于服务器式控制:
/allowdeny config、/allowdeny whitelist、/allowdeny reload、/allowdeny query。
- 局域网实时同步 - 主机的配置和白名单会自动推送给所有已连接的玩家。
- 隐形边界墙可以通过可选的红色粒子效果进行可视化。
为什么需要它?
如果你在单人游戏或局域网主机上构建冒险地图、小游戏或受保护的合作区域,此模组提供了基岩版级别的建筑控制权:使用 Deny 方块禁止建造,使用 Allow 方块开辟可建造区域,并使用不可破坏、不可穿越的 Border 墙封闭区域——无需设置完整的服务器。
要求
- Minecraft Java 1.21
- Fabric Loader >= 0.19.4 和 Fabric API
- (可选)Mod Menu 11.x 和 Cloth Config 15.x 用于配置 GUI
加入局域网世界的每位玩家都需要安装相同版本的模组。
配置
图形界面:Mod 列表屏幕 -> Bedrock Allow Deny Border -> Config。
命令行(OP 等级 2):参见 /allowdeny 的游戏内帮助,例如:
/allowdeny config borderMode bedrock_like
/allowdeny config borderMode block_all_entities
/allowdeny whitelist add <player>
从源码构建
需要 JDK 21+;请参阅 GitHub 仓库以获取工具链版本信息。
./gradlew build
构件位于 build/libs/ 中。CI 会在每次推送时自动构建并发布带标签的版本。
许可证与致谢
- 许可证:MIT(详见仓库内的 LICENSE 文件和 JAR 包)。
- 由 zihan_ds 创作并维护。
- 行为遵循基岩版/教育版的 Allow、Deny 和 Border 方块(参见 Minecraft Wiki)。
- 源代码:
- 仓库及 JAR 包内含一份简体中文用户手册(Markdown 格式)。
Bedrock Allow Deny Border
A faithful, client-side Fabric mod for Minecraft Java Edition 1.21 that brings the Bedrock / Education Edition Allow, Deny and Border blocks to Java Edition - designed for single-player worlds and LAN co-op world building. Every rule is evaluated consistently on all clients, and the host's configuration is synced live to everyone on the LAN.
What does it add?
Three "teacher block"-style utility blocks in a dedicated creative tab:
| Block |
Purpose |
| Allow Block |
Marks a column as buildable even where building is restricted. |
| Deny Block |
Prohibits block placement and breaking in its whole column (nearest rule below a position wins; the highest stacked block takes precedence). |
| Border Block |
An invisible wall that blocks the entire (x, z) column at every Y - it cannot be crossed by jumping over it, flying above it, or tunnelling underneath it. |
The blocks are extremely blast-resistant and cannot be moved by pistons, so they are safe map-making tools.
Key features
- Column-based protection - one allow/deny block governs building rules across its whole vertical column, exactly like the Bedrock original.
- Whole-column border barrier - the border wall exists from the world bottom to the world top at the block's (x, z) position; passing rules apply at every height.
- Two border modes, selectable in-game:
- Bedrock-like (default): blocks unprivileged players and monsters; projectiles, spectators, privileged players, vex and the ender dragon may pass.
- Block all entities: blocks every entity except privileged players and spectators (arrows, ender pearls, fireballs, shulker bullets etc. are stopped too).
- Flexible privilege system:
- global whitelist (
/allowdeny whitelist ...),
- per-block NBT whitelist stored on the item / block entity,
- operator bypass (permission level 2, optionally requiring Creative mode).
- Visual config screen - a "Config" button on the Mods screen when Mod Menu and Cloth Config are installed (both optional at runtime).
- Full command suite for server-style control:
/allowdeny config, /allowdeny whitelist, /allowdeny reload, /allowdeny query.
- Live LAN sync - the host's config and whitelist are pushed to every connected player automatically.
- Invisible border walls can be visualised with an optional red particle effect.
Why would you want it?
If you build adventure maps, mini-games or protected co-op areas in single-player or on a LAN host, this mod gives you Bedrock-grade build control: forbid building with Deny blocks, carve out buildable zones with Allow blocks, and seal off areas with unbreakable, impassable Border walls - without needing a full server setup.
Requirements
- Minecraft Java 1.21
- Fabric Loader >= 0.19.4 and Fabric API
- (optional) Mod Menu 11.x and Cloth Config 15.x for the config GUI
All players joining a LAN world need the same mod version installed.
Configuration
Graphical: Mods screen -> Bedrock Allow Deny Border -> Config.
Command line (OP level 2): see the in-game help of /allowdeny, e.g.:
/allowdeny config borderMode bedrock_like
/allowdeny config borderMode block_all_entities
/allowdeny whitelist add <player>
Building from source
JDK 21+ required; see the GitHub repository for the toolchain versions.
./gradlew build
Artifacts land in build/libs/. CI automatically builds every push and publishes tagged releases.
License and credits
- License: MIT (see the LICENSE file inside the repository and the JAR).
- Authored and maintained by zihan_ds.
- Behavior follows the Bedrock / Education Edition Allow, Deny and Border blocks (see the Minecraft Wiki).
- Source code:
- A Simplified Chinese user manual (Markdown) is included in the repository and inside the JAR.
评论 0
登录后参与评分
还没有评论,来抢沙发吧