PreventBuild
在客户端控制防止玩家执行配置中设定的某些操作。 配置文件具有非常灵活的 YAML 结构,允许你构建复杂的逻辑条件,以描述模组应阻止哪些操作。
通过 PreventBuild,你可以阻止:
- 放置/攻击方块;
- 攻击实体;
- 与方块/实体交互;
- 使用物品;
...具体取决于:
- 方块/物品/实体;
- 方块/玩家的坐标;
- 特定方块的状态;
- 手持物品是否具有特定的自定义名称或附魔;
- 以及更多其他条件
此模组仅在客户端取消玩家的操作,因此完全属于客户端功能。
使用方法
访问模组的 Wiki
2.0 更新
在原实现方案中有一些问题我无法修复。 最好的决定是从头重新制作该模组。
以下是 2.x 与 1.x 的主要区别点:
- 更稳定且直接的阻止机制;
- 奇怪的自定义 .cfg 配置文件格式 + 不稳定的自定义解析器 → 改为 YAML + 解析器依赖;
- 翻译键 → 标识符(Identifiers);
- 自定义矿石词典 → 自定义和内置标签(tags);
- 简单的 GUI 界面,而非仅支持命令;
- 代码更清晰;
- Wiki 上提供了复杂条件的恰当示例。
官方下载链接
联系方式
- GitHub:
- Discord: 服务器
PreventBuild
Adds client-side control over preventing the player from performing certain actions that are set in configs. Configs, in turn, have a very flexible YAML structure that allows you to build complex logical conditions describing what actions the mod should prevent.
With PreventBuild, you can prevent:
- placing/attacking a block;
- attacking an entity;
- interacting with a block/entity
- using an item;
...depending:
- block/item/entity;
- block/player's coordinates;
- a specific block's state;
- whether the held item has a specific custom name or enchantment;
- and much more
This mod simply cancels the player's actions on client-side, so it's entirely client-side.
How to use
Visit the mod's Wiki
2.0 update
There were a few issues I couldn't fix with the original implementation approaches. And the best decision was to recreate the mod from a scratch.
Here are essential points that differ 2.x from 1.x:
- More stable and direct preventions;
- Weird custom .cfg configs format + unstable custom parser → YAML + parser dependency;
- Translation keys → Identifiers;
- Custom ore dictionaries → custom and built-in tags;
- Simple GUI instead of commands-only;
- Cleaner code;
- Adequate examples of complex conditions on wiki.
Official links to download the mod
Contacts
- GitHub:
- Discord: Server
下载 PreventBuild
下载 PreventBuild
下载 PreventBuild
下载 PreventBuild
下载 PreventBuild
下载 PreventBuild
下载 PreventBuild
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PreventBuild
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PreventBuild
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 PreventBuild
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
本模组已从零开始完全重写。 现在它更加稳定、可靠、酷炫,也更容易理解和使用。
更新内容与新功能
- 配置文件现已采用 YAML 格式(
.yml); - 使用标识符(可通过
F3和F3 + H查看)替代翻译键; - 支持原版 # 标签;
- 提供简洁美观的 GUI 用于管理条件配置;
- Wiki 也已重写,包含实用示例;
- 现支持 1.21.1、1.21.4、1.21.11 以及 26.x 版本
修复与次要更改
- 修复了开启条件配置后,最后一个被攻击的方块仍允许被攻击的问题;
- 修复了在选取方块时可能导致条件上下文的持有物品值不正确的问题(此修复为可配置项,可选择关闭);
修复了“interactionBlock:”类别未能阻止与箱子、床、红石中继器等方块交互的问题。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧