
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.

Ченджлог
2.0.4Релиз1.20.1 · 14 августа 2026 г.
Some people told me the tooltip was annoying so i added a command to toggle it (disabled by defualt)
/toggletrashslottooltip
if enabled:

2.0.4Релиз26.2 · 14 августа 2026 г.
Some people told me the tooltip was annoying so i added a command to toggle it (disabled by defualt)
/toggletrashslottooltip
if enabled:

2.0.3Релиз1.20.1 · 10 августа 2026 г.
Removed fabric api dependency. replaced ServerPlayNetworking receiver with
@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));
}
}
2.0.3Релиз26.2 · 10 августа 2026 г.
Removed fabric api dependency. replaced PayloadTypeRegistry registration with
@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();
}
}
2.0.2Релиз1.20.1 · 22 июля 2026 г.
Changed ClientPlayNetworking.send to
ClientPacketListener connection = Minecraft.getInstance().getConnection();
connection.send(new ServerboundCustomPayloadPacket(TrashPayload.CHANNEL, payload.write()));
2.0.2Релиз26.2 · 22 июля 2026 г.
Changed ClientPlayNetworking.send to
ClientPacketListener connection = Minecraft.getInstance().getConnection();
connection.send(new ServerboundCustomPayloadPacket(payload));
2.0.1Релиз1.20.1 · 18 июля 2026 г.
Ported to fabric 1.20.1
2.0.1Релиз26.2 · 18 июля 2026 г.
Replaced ModInitializer with a mixin. I plan to make it not require fabric api in the future.
Комментарии
Загружаем…