UI-Utils
查找重复项的模组。可能在 Mac 上不兼容,需要 Fabric API。
使用方法:
- 打开任何带有该模组的物品栏/容器,你应该会看到一些按钮和一个文本框。

-
“Close without packet”(无数据包关闭):在不向服务器发送 CloseHandledScreenC2SPacket 的情况下关闭当前的 GUI(屏幕处理器)。
-
“De-sync”(不同步):在服务器端关闭当前 GUI,但在客户端保持其打开状态。
-
“Send packets: true/false”(发送数据包:真/假):告知客户端是否应该发送任何 ClickSlotC2SPacket 和 ButtonClickC2SPacket。
-
“Delay packets: true/false”(延迟数据包:真/假):开启时,它会将所有 ClickSlotC2SPacket 和 ButtonClickC2SPacket 存储到一个列表中,并不会立即发送它们,直到关闭此选项时才一次性全部发送。
-
“Save GUI”(保存 GUI):将当前 GUI 保存到变量中,可以通过按键绑定选项中的快捷键访问(默认键为 'V')。
-
“Disconnect and send packets”(断开连接并发送数据包):如果“Delay packets”已开启,它将立即发送存储的数据包列表,然后立即断开连接(在非原版服务器上可能导致潜在竞争条件)。
-
“Sync Id: ??” 是一个用于内部同步各种 GUI 相关数据包的数字。
-
“Revision: ??” 是一个用于内部同步从服务器发送到客户端的各种 GUI 相关数据包的数字。
-
“Fabricate packet”(伪造数据包):允许你在创建的窗口中自定义创建 ClickSlotC2SPacket 和 ButtonClickC2SPacket。
-
“Copy GUI Title JSON”(复制 GUI 标题 JSON):以 JSON 格式复制当前 GUI 的名称。
-
文本框是一个聊天字段,用于在 GUI 内聊天或运行命令。
Fabricate packet 教程:


-
将你在游戏内 GUI 中看到的“Sync Id”和“Revision”值输入到“Click Slot Packet”GUI 中。
-
“Slot”值应设置为你想要点击的槽位(从 0 开始)。对于通用 GUI(例如双层箱子),你通常可以在 Google 上找到 GUI 槽位的位置:

-
“Button”字段应设置为以下之一:(0 代表左键点击,1 代表右键点击,0-8 和 40 将在下面解释)。
-
“Action”字段应设置为以下选项之一,

-
“PICKUP”将槽位字段中的物品放到你的光标上,反之亦然;“QUICK_MOVE”相当于 Shift+点击;“SWAP”充当快捷栏或副手的交换(例如,如果你的“Action”设置为“SWAP”且“Button”设置为 0-8,它会将“Slot”字段中的物品与其中一个快捷栏槽位(从 0 开始)交换,反之亦然;“Button”设置为 40 会将“Slot”字段中的物品与你的副手交换,反之亦然);“CLONE”相当于鼠标中键克隆物品(仅在创造模式下有效);“THROW”丢弃“Slot”字段中的物品;“QUICK_CRAFT”有点复杂,你需要自己尝试或查看相关代码;“PICKUP_ALL”将拾取所有与光标上物品匹配的物品,只要“Slot”在该 GUI 的有效范围内。
-
“Send”按钮将根据你输入的所有信息发送数据包,并返回成功或失败的结果。
-
“Times to send”字段告诉客户端在按下“Send”时发送该数据包的次数。
-
延迟复选框告诉客户端在“Delay Packets”开启时是否等待数据包发送。

- 当点击上图中的“Send”时,它应该将基岩物品掉落在地上。

- Fabricate packet 教程(按钮点击):


-
在“Button Click Packet”GUI 中输入“Sync Id”字段,作为你在游戏内 GUI 中将看到的“Sync Id”值。
-
在“Button Id”字段中输入你想要在 GUI 中点击的按钮编号(从 0 开始)。
-
在“发送次数”(默认为 1)字段中输入要发送的数据包数量。
-
如果启用了“延迟数据包”,并且您希望延迟数据包,请勾选“延迟”复选框。
- 此功能示例:



"^toggleuiutils" 命令:
- 启用/禁用游戏内 GUI 的 UI-Utils 渲染。
资源包绕过
您可以在多人游戏界面中开启“绕过资源包”以绕过服务器所需的资源包。如果仍然被踢出,请启用“强制拒绝”,这将阻止所有资源包。
构建:
您可以在 UI-Utils 网站上找到构建说明 (。
本模组的理念并非原创想法,市面上存在具有类似功能的模组。本模组的目标是保持最新版本并具备一些额外功能。
此处部分图片可能已过时。
请注意,Mac 系统可能适用于大部分模组功能,但 Fabricate 数据包功能可能无法正常工作。
目前这就是本模组的所有功能,未来可能会有更多更新,但我无法保证。
UI-Utils
Dupe hunting mod. May be incompatible with mac, needs Fabric API.
How to use:
- Open any inventory / container with the mod, and you should see some buttons and a text field.

-
"Close without packet" closes your current GUI (ScreenHandler) without sending a CloseHandledScreenC2SPacket to the server.
-
"De-sync" closes your current GUI server-side and keeps it open client-side.
-
"Send packets: true/false" tells the client whether it should send any ClickSlotC2SPacket(s) and ButtonClickC2SPacket(s).
-
"Delay packets: true/false" when turned on it will store all ClickSlotC2SPacket(s) and ButtonClickC2SPacket(s) into a list and will not send them immediately until turned off which sends them all at once.
-
"Save GUI" saves your current GUI to a variable and can be accessed by pressing a keybinding in the keybinding options (default key is 'V').
-
"Disconnect and send packets" will if "Delay packets" is turned on send the list of stored packets immediately and then disconnect right afterward (can create potential race conditions on non-vanilla servers).
-
"Sync Id: ??" is a number used internally to sync various GUI related packets.
-
"Revision: ??" is a number used internally to sync various GUI related packets sent from the server to the client.
-
"Fabricate packet" allows you to create a custom ClickSlotC2SPacket and ButtonClickC2SPacket within a window it creates.
-
"Copy GUI Title JSON" copies the name of your current GUI in JSON format.
-
The text box is a chat field for chatting or running commands while in a GUI.
Fabricate packet tutorial:
-
ClickSlotC2SPacket(s) are what the client sends to the server when clicking any slot in a GUI (e.g. shift clicking an item).
-
When clicking the "Fabricate packet" button you should see this window appear (may not work on OSX):

- Clicking "Click Slot" will open up this window:

-
Enter the "Sync Id" and "Revision" value you see in the in-game GUI to the "Click Slot Packet" GUI.
-
The "Slot" value should be set to what slot you would like to click (starting from 0) you can generally find the location of GUI slots on Google for generic GUI(s), e.g. double chest:

-
The "Button" field should be set to either: (0 is a left-click, 1 is a right-click, 0-8 and 40 will be explained below).
-
The "Action" field should be set to one of these options,

-
"PICKUP" puts the item on the slot field on your cursor or vice versa, "QUICK_MOVE" is a shift click, "SWAP" acts as a hotbar or offhand swap (e.g. if your "Action" is set to "SWAP" and the "Button" set to 0-8, it will swap the item in the "Slot" field to one of those hotbar slots (starting from 0) or vice versa, "Button" being set to 40 will swap the item in the "Slot" field to your offhand or vice versa), "CLONE" acts as a middle click to clone items (only works in creative mode), "THROW" drops the item in the "Slot" field, "QUICK_CRAFT" is a bit complicated, so you will have to experiment yourself or look into some code for it, "PICKUP_ALL" will pick up all the items matching to the item on your cursor, as long as "Slot" is within bounds of that GUI.
-
The "Send" button will send the packet for with all the info you inputted and will give a response if it was successful or failed to send the packet you provided.
-
The "Times to send" field tells the client how many times to send that packet when pressing "Send".
-
The delay checkbox tells the client if the packet should wait while "Delay Packets" is on.

- When clicking "Send" in the above image, it should drop the bedrock item on the ground.

- Fabricate packet tutorial (Button Click):
-
ButtonClickC2SPacket(s) are what the client sends to the server when clicking a button in a server-side GUI (e.g. clicking an enchantment in an enchantment table).
-
When clicking the "Fabricate packet" button you should see this window appear:

- Clicking "Button Click" will open up this window:

-
Enter the "Sync Id" field in the "Button Click Packet" GUI as the "Sync Id" value you will see in the in-game GUI.
-
Enter the "Button Id" field as what button you would like to click in a GUI (starting from 0.)
-
Enter into the field "Times to send" (by default it's one) the amount of packets you would like to send.
-
Check the "Delay" checkbox if you would like to delay your packet while "Delay Packets" is on.
- Example of this feature:



"^toggleuiutils" command:
- Enables/Disables UI-Utils in-game GUI rendering.
Resource Pack Bypassing
You can bypass a required resource pack on a server by turning on "Bypass Resource Pack" in the multiplayer screen, if you still get kicked, enable "Force Deny", which will block all resource packs.
Building:
You can find building instructions on the UI-Utils website (.
This mod concept is not an original idea, there are similar mods out there that have similar features, the goal of this mod is to be on the latest version and have some additional features.
Some images here may be outdated.
Note that mac may work with most of the mod but not the fabricate packet feature potentially.
That's all the features for this mod currently, there may be more updates in the future but I cannot guarantee.
评论 0
登录后参与评分
还没有评论,来抢沙发吧