此模组修复了 MC-264285,该漏洞会导致苦力怕在玩家使用不可破坏的交互物品(如打火石)点燃时,将这些物品摧毁。
漏洞详情
在 Minecraft 中,你可以使用某些物品(如火柴和燧石)来点燃苦力怕。原版代码在此功能上未正确检查物品是否被视为“不可破坏”,导致物品被完全消耗。本模组添加了正确的检查逻辑,防止物品被销毁或损坏。
验证方法
你可以通过生成一个不可破坏的打火石,并在生存模式下右键点击苦力怕以立即将其点燃,来验证此模组已修复该漏洞。如果模组已安装并正常工作,打火石不应受到任何耐久度损失,也不应立即破碎。
注意: 你必须在生存模式下测试此内容。创造模式下的玩家不受此漏洞影响,因为游戏不会尝试对创造模式玩家的物品造成损坏。
- 1.21+ /give @s flint_and_steel[unbreakable={}]
- 1.20.x /give @s flint_and_steel{Unbreakable:1}
本项目由 Nodecraft 赞助。使用代码 DARKHAX 可在你的第一个月服务中获得 30% 折扣!
This mod fixes MC-264285, a bug that resulted in Creepers destroying unbreakable interaction items when used to ignite them, like flint and steel.
Bug Details
In Minecraft you can use certain items like flint and steel to ignite a creeper. The vanilla code for this feature does not correctly check if the item is considered unbreakable, causing the item to be completely consumed. This mod adds the correct check in, and will prevent the item from being destroyed or damaged.
Varification
You can verify this mod has fixed the bug by spawning an unbreakable flint and steel and right clicking on a creeper while in survival mode to instantly ignite it. If the mod is installed and working correctly the flint and steel should not take any durability damage, and should not be instantly broken.
Note: You must test this while in survival mode. Players in creative mode are not affected by this bug as the game does not try to damage items for creative mode players.
- 1.21+ /give @s flint_and_steel[unbreakable={}]
- 1.20.x /give @s flint_and_steel{Unbreakable:1}
This project is sponsored by Nodecraft. Use code DARKHAX for 30% off your first month of service!
评论 0
登录后参与评分
还没有评论,来抢沙发吧