Anti Entity Grief
一款适用于 Fabric 的 Minecraft 模组,让你能够控制实体的破坏行为!
简介
实体会以多种方式破坏世界,从轻微的骚扰到严重的问题都有可能。Mojang 团队意识到了这一点,因此添加了 mobGriefing 游戏规则,允许你禁用所有实体的破坏行为。然而,这个命令过于宽泛而缺乏实用性,因为当你试图阻止末影人偷窃方块时,你也同时阻止了村民耕种作物!
VanillaTweaks 提供了一些出色的数据包来处理此类问题,例如 'Anti Creeper Grief'、'Anti Enderman Grief' 和 'Anti Ghast Grief'。但是,这些数据包需要下载到服务器端多个文件,并且由于数据包的局限性,对实体的控制能力有限。
本模组引入了一种新的按实体类型应用设置的方法。它包括每种实体特有的设置(例如,针对末影人的独立的拾取/放置方块选项)以及通用设置(例如,践踏作物)。
用法
本节包含如何使用本模组提供的命令来控制实体行为的示例。
命令采用以下形式:
/entityGriefing <entity> [<capability> [true|false]]
/entityGriefingAll <capability> <true|false>
/entityGriefingReset
其中 <entity> 是你想要控制的实体类型,<capability> 是你想要控制的破坏行为类型,而 [true|false] 表示你是否要启用或禁用该行为。
并非所有实体都会出现在标签补全中,这可能是因为尚未识别出任何破坏行为,或者是因为尚未实现相关功能。如果发现有遗漏的功能,请在 GitHub 上提交 Issue 或访问我的 Discord 告知我。
例如,若要阻止末影人拾取方块,你可以运行:
/entityGriefing minecraft:enderman DESTROY_BLOCKS false
若要为所有适用的实体设置 BREAK_DOORS 权限,你可以运行:
/entityGriefingAll BREAK_DOORS false
若要查看村民是否可以耕种作物,你可以运行:
/entityGriefing minecraft:villager FARM_CROPS
最后,若要查看猪可以进行的所有操作,你可以运行:
/entityGriefing minecraft:pig ALL
配置
本节列出了所有可修改的行为类型及其适用的实体。
| 能力 | 描述 | 适用实体 |
|---|---|---|
BREAK_DOORS |
破坏木门的能力 |
|
DESTROY_BLOCKS |
通过移动或其他动作破坏方块的能力。有关通过爆炸破坏方块的内容,请参阅 目前此能力无法应用于玩家。 |
|
EAT_BLOCKS |
通过某种形式的进食来修改方块的能力。 |
|
EXPLODE_BLOCKS |
通过爆炸手段破坏方块。 |
|
FARM_CROPS |
种植作物的能力。 |
|
MELT_SNOW |
处于着火状态的活体实体在站在细雪方块内时,会融化细雪。 |
|
PICKUP_ITEMS |
拾取物品的能力。这不是本模组的主要功能,因此尚未完全实现。 |
|
PLACE_BLOCKS |
放置方块的能力。 |
|
PLACE_EGGS |
在世界中放置蛋的能力。不会干扰繁殖周期。 |
|
SET_FIRE |
点燃方块的能力。 |
|
TRAMPLE_CROPS |
体型超过一定限度的活体实体( 如果禁用此选项,则只有当上方没有作物时,才能踩踏耕地。 |
|
TRAMPLE_FARMLAND |
体型超过一定限度的活体实体( 如果禁用此选项,耕地上的作物仍会被踩踏,但耕地本身不会变成泥土。 |
|
TRAMPLE_EGGS |
除海龟和蝙蝠外的所有活体实体在行走时都会踩碎蛋。 |
|
贡献
如需进一步讨论或获取新更新的通知,请加入我的 Discord。如果你喜欢我的工作,可以考虑在 Ko-Fi 上支持我!
Anti Entity Grief
A minecraft mod for fabric, allowing you to control the griefing capabilities of entities!
Summary
Entities can grief the world in all sorts of ways, leading from minor nuisances to major issues. The team at Mojang recognised this and so added the gamerule mobGriefing which allows you to disable all mobs from griefing. Unfortunately this is too broad a command to be useful, since in your attempt to disable endermen from stealing blocks you have now stopped your villagers from farming crops!
VanillaTweaks has some fantastic datapacks to handle this, namely 'Anti Creeper Grief', 'Anti Enerman Grief', and 'Anti Ghast Grief'. However these require downloading multiple datapacks to the server, and have limited control over entities due to the capabilities of datapacks.
This mod introduces a new method of applying settings per-entity type. It includes settings unique to each type (e.g. separate pick up / place block options for endermen) as well as generic settings (e.g. trampling crops).
Usage
This section contains examples of how to use the commands provided by this mod to control the behaviours of entities.
The commands take on the following form:
/entityGriefing <entity> [<capability> [true|false]]
/entityGriefingAll <capability> <true|false>
/entityGriefingReset
where <entity> is the entity type you want to control, <capability> is the type of griefing you want to control, and [true|false] is whether you want to enable or disable the capability.
Not all entities will appear in tab-completion, either because I haven't identified any griefing capabilities or because they haven't been implemented yet. Please open an issue on GitHub or visit my Discord to let me know if there is a missing feature that you feel should be included.
For example, to stop endermen from picking up blocks, you would run:
/entityGriefing minecraft:enderman DESTROY_BLOCKS false
To set the BREAK_DOORS permission for all applicable entities, you would run:
/entityGriefingAll BREAK_DOORS false
To see if villagers can farm crops, you would run:
/entityGriefing minecraft:villager FARM_CROPS
And finally to see all the things that a pig can do, you would run:
/entityGriefing minecraft:pig ALL
Configs
This section contains a list of all capabilities available for modification, and which entities they apply to.
| Capability | Description | Applicable Entities |
|---|---|---|
BREAK_DOORS |
The ability to break down doors |
|
DESTROY_BLOCKS |
The ability to destroy blocks through movement or other actions. See This cannot currently be applied to players. |
|
EAT_BLOCKS |
The ability to modify blocks through some form of eating. |
|
EXPLODE_BLOCKS |
Breaking blocks through means of explosions. |
|
FARM_CROPS |
The ability to farm crops. |
|
MELT_SNOW |
Living entities on fire will melt powdered snow blocks when standing inside them. |
|
PICKUP_ITEMS |
The ability to pick up items. Not a primary focus of this mod, so has not been fully implemented yet. |
|
PLACE_BLOCKS |
The ability to place blocks. |
|
PLACE_EGGS |
The ability to place eggs in the world. Does not disrupt the pregnancy cycle. |
|
SET_FIRE |
The ability to set fire to blocks. |
|
TRAMPLE_CROPS |
Living entities over a certain size ( If this is disabled, farmland trampling is only possible if no crops are above them. |
|
TRAMPLE_FARMLAND |
Living entities over a certain size ( If this is disabled, crops on farmland can still be trampled without turning the farmland to dirt |
|
TRAMPLE_EGGS |
All living entities except for turtles and bats will trample eggs when walking on them. |
|
Contributing
To further discuss or get notified about new updates, check out my Discord. If you like what I do, consider supporting me on Ko-Fi!
下载 Anti Entity Grief
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Anti Entity Grief
下载 Anti Entity Grief
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Anti Entity Grief
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Anti Entity Grief
下载 Anti Entity Grief
下载 Anti Entity Grief
下载 Anti Entity Grief
下载 Anti Entity Grief
下载 Anti Entity Grief
已适配 1.21.5 预发布版本。无行为变更。
技术更新
- Mixins 现在使用 WrapOperation 替代 Redirect,以获得更好的兼容性
- Mixins 的 Injects 现在具备
id属性,以提升兼容性 - 对几处细节进行了调整,以适配 1.21.5 的代码变更
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧