MC-264204 修复
一个服务端模组,用于修复当玩家被山羊击杀时,进度(advancements)和统计信息(statistics)无法正确追踪的 bug。该问题在此处跟踪:。
技术描述
山羊造成的伤害具有独特的 NO_ANGER 标志,该标志会隐藏攻击实体,使其不被受击者感知,从而防止生物因受到攻击而变得敌对。然而,此标志未考虑到受击实体为玩家的情况。在这种情况下,该标志不应生效,因为玩家并非生物。
修复方案是在受击实体为玩家时跳过对该标志的检查,使玩家能够感知到攻击实体,从而使进度和统计信息的触发条件能够正常工作。
自 Mojang 添加山羊以来,这一问题一直未被考虑。但在 Minecraft 1.20 中,由于他们进行了代码重构并移除了原本能使该机制大致正常工作的代码,导致该问题爆发。
MC-264204 Fix
A server-side mod that fixes a bug when the death from a goat is not tracked by advancements and statistics. This issue is tracked here: .
Technical description
The damage dealt by the goat has a unique NO_ANGER flag, which hides the attacking entity from the attacked one, thereby preventing mobs from becoming aggressive in response to the attack. However, this flag does not account for cases where the attacked entity is a player. In such cases, it should not function this way, since players are not mobs.
The fix involves skipping the check for this flag when the attacked entity is a player, allowing the player to be aware of the attacking entity, so advancements and statistics triggers will be works.
This hasn't been taken into account since Mojang added the goat, but in Minecraft 1.20 it broke because they did a refactoring and removed the code that was making it work more or less correctly.
下载 MC-264204 Fix
下载 MC-264204 Fix
下载 MC-264204 Fix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MC-264204 Fix
下载 MC-264204 Fix
下载 MC-264204 Fix
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧