Trash Slot!
This mod adds a little trash slot in your inventory.
❓ What is the point of this mod?
If you want to quickly get rid of a bunch of items you can put then in the trash slot and they disappear. Kinda like the creative trash slot, but in survival.
ℹ️ Backports
As you may or may not have seen I have backported this quite a bit. If the backports have bugs DO NOT COMPLAIN I will most likely not update the backports too often as they are too time consuming.
Extra Details
Tooltip
Versions 2.0.0 and up ship with a tooltip but versions 2.0.4 and up ship with it disabled with a command to toggle it because people told me it was annoying.

How to Install Trash Slot (Mod)
Trash Slot by Capple is verified for Fabric, Forge across Minecraft versions 1.12.2, 1.13.2, 1.14.4, 1.15.2, 1.16.5, 1.17.1, 1.18.2, 1.19.2 (latest release: 2.0.4, file size: 17 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.12.2, 1.13.2, 1.14.4, 1.15.2, 1.16.5, 1.17.1, 1.18.2, 1.19.2) and platform (Fabric, Forge).
- Make sure you have the compatible loader or environment installed for Fabric, Forge.
- Move the downloaded Trash Slot file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version``
/toggletrashslottooltip
``if enabled:

``
/toggletrashslottooltip
``if enabled:

``
@Inject(method = "handleCustomPayload", at = @At("HEAD"))
private void onTrashPayload(ServerboundCustomPayloadPacket packet, CallbackInfo ci) {
if (packet.getIdentifier().equals(TrashPayload.CHANNEL)) {
TrashPayload payload = TrashPayload.read(packet.getData());
player.server.execute(() -> TrashSlotMod.handle(player, payload));
}
}
````
@ModifyArg(method = "<clinit>", at = @At(value = "INVOKE",
target = "...CustomPacketPayload;codec(...FallbackProvider;Ljava/util/List;)..."), index = 0)
private static FallbackProvider<FriendlyByteBuf> injectCodec(FallbackProvider<FriendlyByteBuf> original) {
return id -> id.equals(TrashPayload.TYPE.id()) ? TrashPayload.CODEC : original.create(id);
}
`
and replaced ServerPlayNetworking with
`
@Inject(method = "handleCustomPayload", at = @At("HEAD"), cancellable = true)
private void onTrashPayload(ServerboundCustomPayloadPacket packet, CallbackInfo ci) {
if (packet.payload() instanceof TrashPayload payload) {
player.level().getServer().execute(() -> TrashSlotMod.handle(player, payload));
ci.cancel();
}
}
````
ClientPacketListener connection = Minecraft.getInstance().getConnection();
connection.send(new ServerboundCustomPayloadPacket(TrashPayload.CHANNEL, payload.write()));
````
ClientPacketListener connection = Minecraft.getInstance().getConnection();
connection.send(new ServerboundCustomPayloadPacket(payload));
``There were multiple bugs that got fixed plus a new icon and the trash slot is in a totally different spot.

notes: this version may have some bugs its not perfect
[](https://discord.gg/T5nnUu9CWv)
[](https://discord.gg/T5nnUu9CWv)
[](https://discord.gg/T5nnUu9CWv)