概述
Accidental Sweep 通过为每个被攻击的生物添加新的检查(在横扫攻击中生效,若目标是宠物生物则在普通攻击中也生效)来工作;如果该生物匹配此检查条件,则阻止攻击发生。
它基于 Minecraft Wiki 提供了三个不同的列表:
-
中立生物 免疫横扫攻击,除非主要目标是与该生物同类型的生物。攻击它们时会产生正常的横扫攻击,可以击中与其类型相同的其他生物以及不在列表中的生物。
-
被动生物 的工作方式与中立生物类似,唯一的区别是击中它们会对生物本身及列表外的生物造成伤害,但不会攻击与其类型相同的其他生物。
-
宠物生物 只有在玩家潜行或造成暴击时才能被攻击。攻击这些生物时,只会攻击主要目标。
完整的生物列表可在 GitHub 上找到。
功能
常见问题
我可以在我的整合包/服务器上使用这个吗?
- 只要你不声称这是你自己的作品,我认为使用它没有问题。
为什么我无法攻击某些生物?
- 该生物可能位于宠物生物列表中。要攻击这些生物,你需要对其造成暴击或在攻击时保持潜行。请确保“绕过防止”选项已开启。如果你仍然无法攻击这些生物,请在此处提交问题。
这是 AI 生成的吗?
- 不,我绝不会在我的任何项目中使用任何形式的 AI。所有与此相关的问题都纯粹归咎于人类的愚蠢。
你会将此模组移植到 X 版本吗?
- 目前我计划将其向下移植至 1.20.1(可能还包括 1.19.2),但 1.21 之后的每个版本可能都会被移植。移植模组仍在我待办事项列表中,将在未来某个时间完成。
Forge/Neoforge 版本?
- 如果有人想自行移植,会有相应的版本,但目前没有相关计划。
它与 Quilt 兼容吗?
展示


源代码可在 GitHub 找到
Overview
Accidental Sweep works by adding new check in the Sweeping Attack (and normal attack if the target is a Pet Mob) for every mob being attacked, and preventing the attack from happening if the mob matches this check.
It has three different lists based of the Minecraft Wiki.
-
Neutral Mobs are immune to Sweep Attacks, unless the main target is the type as that mob. Attacking it does a normal Sweep Attack that can hit mobs of the same type as it and mobs outside the lists.
-
Passive Mobs works in a similar way to Neutral Mobs, the only difference is that hitting does damage to the mob itself and mobs outside the lists, it does not attack other mobs of the same type.
-
Pet Mobs can only be attacked if the player is sneaking or hitting a Critical Attack, attacking these mobs will only attack the main target.
The full lists of mobs is available on GitHub.
Features
-
Weapons with a Sweep Attack will not attack neutral/passive/pet mobs when you are attacking a different mob
-
Allows you to bypass the prevention when you are sneaking, hitting a Critical Attack or when the mob is attacking you (Can be disabled in settings)
-
Allows you to add or remove mobs to the mob lists
-
The mod is client-sided and should not need to be installed on server
-
Control the mod with Mod Menu
-
Allows you to turn On/Off the mod
-
Brazilian Portuguese translations
FAQ
Can i use this on my modpack/server?
- As long as you don't claim it as your own, i don't see a problem in using it.
Why can't i attack some mobs?
- That mob is probably inside Pet Mobs, to attack those mobs you will need to either hit a Critical Attack on them or be sneaking while attacking. Make sure that the "Bypass prevention" options are turned on. If you are still can't attack these mobs, please open a issue here.
Is this AI generated?
- No, i will never use any type of AI in any of my projects. All of the problems with this are purely blamed by human stupidity.
Will you port this mod to X version?
- Currently i only have plans to port it down to 1.20.1 (and possibly 1.19.2), but every version after 1.21 will probably be ported to. Porting the mod is still in my TODO list, it will be done some time in the future.
Forge/Neoforge version?
- If someone wants to port it themself there will be, but there is no plans for it.
Does this work with Quilt?
- Possibly, it was not tested tho.
Showcase


Source code can be found on GitHub
评论 0
登录后参与评分
还没有评论,来抢沙发吧