盾牌削弱
让盾牌只阻挡部分受到的伤害,而不是全部!
警告:这个整合包经常崩溃。非常多。 注意:尽管在版本列表中列为支持 Forge/NeoForge,但这个整合包与 Forge/NeoForge 不兼容。这不是整合包的错,而是 Forge/NeoForge 的错,因为该整合包使用的 Minecraft 统计系统(用于确定盾牌逻辑)在 NeoForge/Forge 中已损坏。
有问题?请在我的 Discord 上发帖,因为在那里更有可能被看到。侧边栏可以找到它。任何非紧急问题都应发布在 GitHub 仓库中。
重要
如果您下载了模组的 1.0.0 或 1.0.1 版本,请更新到 1.0.2,因为 1.0.0 版本完全无法工作,而 1.0.1 版本在 1.20.3-1.20.6 上无法工作。
注意
盾牌仍将阻挡所有击退效果,并且当您阻挡攻击但因未阻挡的伤害死亡时,死亡信息不正确。但在制作此整合包时,我不得不决定是使用 minecraft:generic 伤害类型(会使盾牌阻挡所有击退并显示错误的死亡信息),还是使用 minecraft:mob_attack 伤害类型(会提供更好的死亡信息,但我需要想办法绕过盾牌)。我能想到的唯一方法会导致击退效果完全反转,使您被推向攻击者而非远离,因为我需要让伤害来自玩家背后。我决定选择前者,因为击退效果的问题是不可接受的。
配置
配置存储在 "ShieldNerfSettings" 记分板目标中。
设置
- PercentDmgBlocked - **不是**由盾牌阻挡的伤害比例,以百分比表示。(我知道这个名字有误导性,但为了开发目的更简单)
- 50 是默认值,在整合包加载时设置。值为 0 时为原版行为。值为 33 大约符合 Minecraft 1.9.x 和 1.10.x 的情况。值为 50 表示阻挡一半伤害,适用于 1.8.x 及更早版本的 Minecraft(剑格挡)。100 表示盾牌不阻挡任何伤害。
- 任何高于 100 的值会使玩家在格挡时受到比未格挡更多的伤害。
- EnableHurtSound - 是否在受到部分伤害时播放受伤声音。仅在 PercentDmgBlocked > 0 时有效。
已知问题
- 击退和死亡信息相关问题
- 见“注意”部分。
- 伤害倾斜不会显示,
受伤声音不会播放(已修复),并且在受到格挡攻击的部分伤害时,HUD 上的心形不会闪烁。- 我不知道这是什么原因造成的,但我相当确定数据整合包无法修复这个问题,因为这是 Minecraft 处理此类事情的方式所决定的。
致整合包制作者:
我允许您在整合包中使用此数据整合包/模组。您可以将其包含在整合包中,无需事先征求我的同意。不过,如果它在您的整合包中被使用,通知我一声会很好。
关于未来 Minecraft 版本
当 1.21.5 正式发布后,此数据整合包将变得过时,因为 25w04a 中添加了 blocks_attacks 物品组件,它更具可定制性且比本整合包工作得更好。因此,我将不再支持 1.21.5 及更高版本。相反,我将制作一个新的数据整合包,使用 blocks_attacks 组件来修改盾牌的默认行为。
Shield Nerf
Make shields only block some of the damage taken, instead of all of the damage taken!
Warning: This pack tends to break. A lot. Notice: This pack is incompatible with Forge/NeoForge despite being listed as supported in the versions. This isn't the pack's fault, it's Forge's/NeoForge's, because Minecraft's statistics system which the pack uses to determine shield logic is broken in NeoForge/Forge.
Questions? Post them in my discord as they are more likely to get seen there. Find it on the sidebar. Any non-urgent issue should be posted in the github repository.
Important
If you downloaded 1.0.0 or 1.0.1 of the mod, please update to 1.0.2 as version 1.0.0 doesn't work at all and 1.0.1 doesn't work on 1.20.3-1.20.6.
Notice
Shields will still block all knockback, and the death message isn't correct if you die from the non-blocked damage when you block a hit, but when making this I had to decide whether to use the minecraft:generic damage type which would make shields block all knockback and have the incorrect death message, or to use the minecraft:mob_attack damage type, which would give a better death message, but I would need to figure out how to bypass the shield, which the only method I can think of would cause knockback to be COMPLETELY REVERSED so that you'd get knocked toward the attacker instead of away from it, because I'd need to cause the damage to come from behind the player, and I decided on the former because the knockback part is a dealbreaker.
Configuration
Configuration is stored in the "ShieldNerfSettings" scoreboard objective.
Settings
- PercentDmgBlocked - The amount of damage that ISN'T blocked by the shield, as a percent. (I know, misleading name, but it's simpler for development purposes)
- 50 is the default and is set when the pack loads. A value of 0 is vanilla behavior. A value of 33 is about correct for Minecraft 1.9.x and 1.10.x. A value of 50 is half damage blocked, and is correct for 1.8.x and older versions of Minecraft (sword blocking). 100 makes the shield not block any damage.
- Any number above 100 will make the player take more damage when blocking than if they hadn't blocked.
- EnableHurtSound - Whether the hurt sound plays when you take partial damage. Only works if PercentDmgBlocked > 0
Known Issues
- Knockback and death message related issues
- See the Notice section.
- The damage tilt won't show,
the hurt sound won't play(fixed), and the hearts on the HUD won't flash when taking partial damage from a blocked attack.- I have no idea what causes this, but I'm pretty sure it isn't fixable by the datapack due to the nature of how Minecraft handles this kind of stuff.
To Modpack Creators:
I permit the use of this datapack/mod in your modpacks. You can include it in modpacks without the need to ask me about it. However, notifying me if it is being included in your modpack would be nice.
Regarding Future Versions of Minecraft
When 1.21.5 fully releases, this datapack will become obsolete due to the addition of the blocks_attacks item component added in 25w04a, which is more customizable and works much better than this pack. Therefore I will not be supporting versions 1.21.5 and newer. I will instead make a new datapack that modifies the default behavior of shields using the blocks_attacks component instead.
下载 Shield Nerf
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Shield Nerf
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Shield Nerf
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Shield Nerf
下载 Shield Nerf
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Shield Nerf
下载 Shield Nerf
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Shield Nerf
修复一个伤害无视护甲的 bug
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包
此数据包添加了属于阿瓦里海盗的独特结构,将他们的独特风格带入你的 Minecraft 世界!兼容性:1.20 至 26.3
数据包
一个 Minecraft 光线投射库,能够精确检测玩家正在查看的方块,包括像台阶和楼梯这样的特殊方块形状。
数据包
此数据包添加了新的“祝福模式”难度。
数据包
允许服务器管理员方便地禁用 Xaero's Map 系列模组中的实体雷达、小地图等功能,使竞技游戏更加公平。
数据包
使用原版/生存友好的方法更改青蛙的变种类型。支持原版(寒冷、温带、温暖)以及可选的“More Frogs 2”变种:深红、末影、地狱、毒镖、紫珀、幽匿、灵魂、诡异和木头。
数据包
手持潜影盒时可直接打开,无需将其放置在地面上。只需按住 Shift 并右键点击即可访问你的潜影盒。
评论 0
登录后参与评分
还没有评论,来抢沙发吧