ControlPickup
ModLicenseRef-All-Rights-Reserved

ControlPickup

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

40
Downloads
1
Followers
5 months ago
Updated
📦
1
Versions

📖About ControlPickup

Idea: FlixlTV(on Twitch FlixlTV Twitch)

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:blocknamespace:block or /enablepickup namespace:blocknamespace: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