Attribute Swap Unpatched
正如你可能知道的,在 26.1.2 预发布版 2 中,Mojang “修复”了属性交换。这是一种 PvP 社区常用的技巧,通过在快捷栏中快速切换物品,将一个物品的属性应用到另一个物品上,从而获得优势。
为什么
这个漏洞是在几年前被发现的,它极大地改变了现代 PvP 玩法。Mojang 移除该漏洞的做法遭到了社区的强烈反对。因此,我创建了此模组以还原 Mojang 对此漏洞所做的修复,让玩家能够继续使用属性交换功能。
原理
Mojang 的修复方式是在客户端按下快捷栏键绑定后,将你的快捷栏槽位切换延迟一个 tick(游戏刻)。服务端逻辑没有变化,这意味着:
- 如果客户端执行属性交换,原版服务器仍然会接受。
- 属性交换变得不太稳定,但并未完全移除,并产生了一些“副作用”,例如无法在同一 tick 内同时切换槽位和使用物品/放置方块。
某些服务器可能会在其端屏蔽属性交换(例如,Paper 服务器默认禁用属性交换)。
然而,对于此模组而言,服务端和客户端都必须安装该模组才能使用属性交换。
使用方法
- 在客户端安装此模组,可以让你和其他安装了该模组的玩家(如果在局域网模式下)在你的世界中执行属性交换,但在原版服务器上无效。
- 在服务端安装此模组,可以让安装了该模组的服务器玩家执行属性交换。
还原
在 26.2 预发布版 3 中,Mojang 撤销了对属性交换所做的修复。现在客户端的快捷栏逻辑类似于修复前的旧版本。此模组仍会还原 26.2 预发布版 2 中的修复,并且如果 Mojang 在未来的版本中再次修补此漏洞,本模组将继续还原该修复。
Attribute Swap Unpatched
As you may know, in version 26.1.2 pre-release 2, Mojang "patched" attribute swapping. It is a technique commonly used in the PvP community to gain advantage by quickly switching items in their hotbar to apply attributes of an item to another.
Why
This bug was discovered a few years ago and it changed modern PvP a lot. The removal of this bug from Mojang got many backlashes from the community. Thus, I created this mod to revert patches Mojang made to this bug and let players continue using attribute swap.
How
Mojang patched this by switching your hotbar slot 1 tick later after a hotbar keybind is pressed on the client-side, the server-side has no changes in its logic, meaning:
- A vanilla server still accepts attribute swaps if the client does so.
- Attribute swapping is less consistent, but not entirely removed and it created some "side effects", such as not being able to switch slot and use item/place block at the same tick.
Certain servers may block attribute swap on their side (For example, a Paper server disables attribute swapping by default).
However, for this mod, both the server and client must have it if they want to use attribute swapping.
Usage
- Installing this mod on the client lets you and other players that have this mod installed (if opened to LAN) perform attribute swaps in your worlds, but not in vanilla servers.
- Installing this mod on the server lets players on the server that have this mod installed to perform attribute swaps.
Revert
In version 26.2 pre-release 3, Mojang reverted the fix made to attribute swapping. Now the client-side hotbar logic behaves similarly to older versions before the fix. This mod still reverts the fix for 26.2 pre-release 2, and possibly continues reverting the bug fix if Mojang decides to patch it again in future releases.
评论 0
登录后参与评分
还没有评论,来抢沙发吧