Overview#
TrashSlot is a quality-of-life utility mod designed to streamline inventory management. It adds a dedicated 'Trash' slot to the player's inventory and various container screens (such as chests, furnaces, and crafting tables). This mod eliminates the need to drop items on the ground to despawn, which reduces world lag and prevents the accidental re-collection of discarded materials.
The mod is highly flexible, allowing players to reposition the slot via drag-and-drop or through detailed configuration files. It includes a safety buffer system that stores the last deleted item, providing a fail-safe against accidental deletion of valuable equipment or resources.
Core Mechanics#
The TrashSlot mod functions as a virtual disposal unit within the GUI. Unlike standard inventory slots, the Trash Slot does not store items permanently but acts as a gateway for deletion.
Item Disposal Methods
There are three primary ways to interact with the Trash Slot:
- Manual Drag: Click an item or stack to pick it up, then click the Trash Slot to delete it.
- Shift-Clicking: While the inventory is open, players can Shift-Click items directly into the Trash Slot for rapid disposal.
- Keybind Deletion: Hovering the mouse over an item in any inventory and pressing the designated 'Delete' key will instantly move that item to the Trash Slot.
The Recovery Buffer
The Trash Slot maintains a single-item memory buffer. When an item is moved to the slot, it is not immediately erased from the game's memory. Instead, it sits in the slot until:
- A new item is placed into the Trash Slot (overwriting the previous one).
- The inventory GUI is closed (depending on configuration settings).
- The player manually clears the slot.
This allows players to click the Trash Slot to retrieve the last discarded item if a mistake was made.
User Interface Elements#
The mod introduces specific UI components that appear across different game screens.
The Trash Slot
By default, the Trash Slot appears to the right of the main inventory player model. It features a unique icon (usually a trash can) to distinguish it from standard inventory slots.
Positioning and Customization
Players can customize the location of the slot to prevent overlap with other modded UI elements:
- In-Game Adjustment: The slot can be clicked and dragged to a new position directly within the GUI.
- Anchor Points: The slot can be anchored to different corners of the screen (Top-Left, Top-Right, Bottom-Left, Bottom-Right) to ensure it remains consistent across different window scales.
Delete All Button
In specific versions and configurations, a 'Delete All' button can be enabled. This button, often represented by a larger icon or found in the Creative inventory, allows for the complete clearing of the player's current inventory contents in a single click.
Controls and Keybinds#
TrashSlot introduces customizable keybinds to facilitate faster inventory management. These can be remapped in the standard Minecraft Controls menu.
| Action | Default Key | Description |
|---|---|---|
| Delete Item | Delete |
Deletes the item currently under the mouse cursor. |
| Delete All | Shift + Delete |
Clears all items in the current container (requires 'Delete All' to be enabled in config). |
| Toggle Slot | Not Bound |
Allows players to quickly hide or show the Trash Slot UI element. |
Configuration#
The mod's behavior is governed by a configuration file (typically trashslot-client.toml or trashslot-common.toml). This allows for per-screen customization.
General Settings
- Enabled: Global toggle to turn the mod on or off.
- Silent Mode: If enabled, deleting items will not play the destruction sound effect.
Slot Configuration
Each GUI screen can have its own settings for the Trash Slot:
| Option | Type | Description |
|---|---|---|
x |
Integer | The X-coordinate offset of the slot. |
y |
Integer | The Y-coordinate offset of the slot. |
enabled |
Boolean | Whether the slot should appear on this specific screen (e.g., Chest, Crafting Table). |
anchor |
String | The screen corner the slot is attached to. |
Creative Mode Integration
In Creative Mode, the Trash Slot can be configured to bypass the buffer and instantly delete items, or it can be disabled entirely since the Creative menu already contains a 'Destroy Item' slot.
Compatibility#
TrashSlot is designed with high compatibility for other mods. It dynamically detects container screens and attempts to inject the slot into a non-obstructive position.
- Modded Containers: Works with Iron Chests, Sophisticated Backpacks, and various machine interfaces.
- Inventory Tweaks: Compatible with sorting mods; the Trash Slot is excluded from auto-sort algorithms to prevent accidental deletion of items during sorting.
- JEI/REI/EMI: The slot position can be adjusted to avoid overlapping with item list overlays from Just Enough Items or similar mods.
Gallery#
