跳到正文

ControlPickup

作者:MonpHD

You don't want to pickup a dirt block or other blocks? This mod helps you out!

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Purpose: Prevent unwanted automatic pickup of items/blocks (e.g., potted plants) by disabling pickup per block type. Works with servers — changes are sent as commands so server authority is respected when available, and client fallback keeps the UI responsive offline.
Key Features:
GUI: Openable via the Controls menu (assign a hotkey) — search blocks by localized name and add/remove entries.
Localized Search: Autocomplete searches by display name (not raw IDs) and shows block icons for easy selection.
Server-Compatible: Client sends /disablepickup and /enablepickup commands so the server enforces pickup rules when supported.
Persistence: Client-side lists persist between sessions for instant feedback and offline use.
German Localization: UI strings are included in German (plus English).
Lightweight Blur: Background is softly blurred behind the GUI while keeping icons and text sharp (configurable in source).
How To Use

Open Controls and bind the key for “Anti Pickup Settings”, or open the GUI from the client mod menu.
Type into the search box (use localized names like “Potted White Tulip”), pick a suggestion, and click Apply.
Toggle between disabling pickups or explicitly enabling pickups using the mode button.
On servers that support it, the client will send /disablepickup namespace:block or /enablepickup namespace:block automatically.
Commands (client → server)

/disablepickup — instructs server to disable pickup for that block type
/enablepickup — instructs server to re-enable pickup for that block type
Compatibility & Requirements

Platform: Fabric mod (tested on Minecraft 1.21.4).
Runtime: Java 21 (development setup uses Fabric Loom).
Notes: Server-side enforcement requires the server to accept the mod’s commands or run the corresponding server component; otherwise the client falls back to local behavior for convenience.
Files & Troubleshooting

GUI logic: AntiPickupConfigScreen.java
Client networking: AntiPickupClientNetworking.java
Local config: AntiPickupClientConfig (persists lists)
If the GUI looks blurry on your system, try adjusting the blur strength in AntiPickupConfigScreen.java (blurDownscale).
License & Credits

常见问题

ControlPickup 支持哪些 Minecraft 版本?

ControlPickup 支持 Minecraft Java 版 1.21.4,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

ControlPickup 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

MonpHD 的其他作品

查看全部 →