PatPat Fix
一个为 PatPat 模组设计的附加组件,即使服务器完全没有安装 PatPat(既无模组也无插件),也能实现玩家之间抚摸动作的同步。
通常情况下,PatPat 仅在以下条件下进行玩家间同步:
- 服务器本身运行 PatPat 模组(Fabric 服务器),或
- 服务器运行 PatPat 插件(Bukkit/Spigot/Paper),或
- 玩家安装了 ProxLib + 支持邻近数据包的语音聊天模组
PatPat Fix 提供了第四种方式,且独立于服务器:客户端将抚摸事件直接发送至外部中继服务器,由中继服务器转发给同一服务器上的其他玩家。无需在服务器端拥有管理员权限、插件或模组。
工作原理
- 像往常一样抚摸生物/玩家
- 附加组件拦截该事件,并通过 WebSocket 将其发送至中继服务器
- 中继服务器将事件转发给同一服务器上所有也安装了此附加组件的其他玩家
- 他们的客户端播放动画和音效——就像抚摸事件正常从服务器传来一样
要求
- Fabric Loader
- 原版 PatPat 模组(必需——没有它,此附加组件无法工作)
- Java 21+(适用于 1.20-1.21.11 版本)/ Java 25+(适用于 26.1-26.2 版本)
- 可访问中继服务器(你自己的,或由他人提供的)
安装方法
- 安装 Fabric Loader
- 将原版 PatPat 放入
mods/ 文件夹
- 将 PatPat Fix 放入
mods/ 文件夹
- 启动游戏并加入服务器
配置
通过 ModMenu(1.20-1.21.11 构建版),或使用聊天命令:
/patrelay status — 显示当前模式和中继地址
/patrelay mode websocket — 启用中继模式
/patrelay mode packet — 回退到 PatPat 内置的邻近数据包
/patrelay host <address> — 设置中继服务器地址
/patrelay enable / disable — 开启/关闭附加组件
自建中继服务器
中继服务器是一个小型开源 Node.js WebSocket 服务器,你可以在任何 VPS 上自行托管。房间根据 Minecraft 服务器地址自动形成——同一服务器上的玩家会自动进入同一个房间。
版本说明
- 26.1 / 26.2 — 尚不支持 ModMenu 设置界面(Minecraft 的 GUI 渲染管线在 26.x 中发生了变化;设置界面将在后续移植);请通过
/patrelay 命令配置
- 1.20 - 1.21.11 — 包含完整的 ModMenu 设置界面
作者
F1xASASASA
PatPat Fix
An addon for the PatPat mod that syncs pats between players even when the server doesn't have PatPat installed at all (no mod, no plugin).
Normally PatPat syncs between players only if:
- the server itself runs the PatPat mod (Fabric server), or
- the server runs the PatPat Plugin (Bukkit/Spigot/Paper), or
- players have ProxLib + a voice chat mod with proximity packet support
PatPat Fix adds a fourth way, independent of the server: the client sends the pat event straight to an external relay server, which forwards it to other players on the same server. No admin rights, plugins, or mods are needed on the server side.
How it works
- You pat a mob/player as usual
- The addon intercepts that event and sends it to the relay server over WebSocket
- The relay forwards it to every other player on the same server who also has the addon installed
- Their clients play the animation and sound - exactly as if the pat had arrived normally from the server
Requirements
- Fabric Loader
- The original PatPat mod (required - this addon does nothing without it)
- Java 21+ (for 1.20-1.21.11) / Java 25+ (for 26.1-26.2)
- Access to a relay server (your own, or one someone else has pointed you to)
Installation
- Install Fabric Loader
- Put the original PatPat in your
mods/ folder
- Put PatPat Fix in your
mods/ folder
- Launch the game and join a server
Configuration
Through ModMenu (1.20-1.21.11 builds), or with chat commands:
/patrelay status — show current mode and relay address
/patrelay mode websocket — enable relay mode
/patrelay mode packet — fall back to PatPat's built-in proximity packets
/patrelay host <address> — set the relay server address
/patrelay enable / disable — toggle the addon on/off
Running your own relay
The relay is a small open-source Node.js WebSocket server you can self-host on any VPS. Rooms are formed automatically by the Minecraft server address - players on the same server automatically end up in the same room.
Versions
- 26.1 / 26.2 - no ModMenu settings screen yet (Minecraft's GUI render pipeline changed in 26.x; the screen will be ported later); configure via
/patrelay
- 1.20 - 1.21.11 - full ModMenu settings screen included
Author
F1xASASASA
评论 0
登录后参与评分
还没有评论,来抢沙发吧