Configuring Instant Deletion, Hidden-Slot Deletion, and the Deny List in TrashSlot
TrashSlot adds a deletion slot to supported inventory screens, and its behaviour can be adjusted through several settings and hotkeys. This guide covers instant deletion, permitting deletion while the slot is hidden, and controlling which items are protected from deletion.
Opening and Locking the Slot
The slot is not always visible. Use the toggle action to show or hide it, and the toggle lock action to lock or unlock it. Both are triggered with their corresponding hotkeys, which you assign yourself in the controls menu. When you hide the slot, a message confirms that it has been toggled off and tells you which key will bring it back. When you lock it, a message confirms the locked state and names the key that releases it; unlocking produces the matching message. A separate hint appears the first time the slot is hidden or when it can be enabled on a screen that supports it, and you can switch that hint off if you don't want to see it.
If the server you are playing on does not have the mod, the serverNotInstalled state applies: TrashSlot is disabled and none of its features are available.
Instant Deletion
The instantDeletion option changes how the deletion slot behaves. With it active, an item placed in the slot disappears immediately, in the same manner as deleting an item in Creative Mode. With it inactive, the slot does not remove items on contact.
There is also a related option, enableDeleteKeysInCreative, which controls whether the delete keybindings function while you are in Creative Mode. Turn it on if you want those keybindings to respond in Creative. Be aware that in Creative Mode items are destroyed for good no matter how instantDeletion is set, so the two settings do not interact the way you might expect.
Deleting Items of a Type
The Delete All Items of Type action removes every item of the same kind from your inventory. Use it when you want to clear out a whole stack type rather than dragging items one at a time into the slot. It is triggered by its corresponding hotkey, which you set in the controls menu.
Allowing Deletion While the Slot Is Hidden
By default, the delete keybindings only work while the slot is on screen. The allowDeletionWhileTrashSlotIsInvisible option changes that: with it enabled, you can use the deletion keybindings even when the trash slot itself is not shown. This is described as not recommended, so treat it as an advanced setting for players who specifically want deletion available at all times.
The Deletion Deny List
The deletionDenyList setting holds the items that are not allowed to be destroyed. Entries are written in comma-separated form using the `modid:name` pattern, so each protected item is identified by its mod and its registry name. Any item on this list is refused when you try to delete it, and the game responds with the message that the item cannot be trashed.
Quick Reference
- toggle — show or hide the slot (hotkey set in controls).
- toggle lock — lock or unlock the slot (hotkey set in controls).
- instantDeletion — remove items the moment they enter the slot.
- enableDeleteKeysInCreative — let delete keybindings work in Creative; items there are always gone for good.
- Delete All Items of Type — clear every item of one type at once (hotkey set in controls).
- allowDeletionWhileTrashSlotIsInvisible — use delete keybindings with the slot hidden.
- deletionDenyList — comma-separated `modid:name` entries that can never be deleted.