Skip to content
home/templates/trash can gui (/trash)
utilityBeginnermc 1.20.x – 1.21.x9 lines

trash can gui (/trash)

opens a single-row chest the player can dump unwanted items into. contents discarded on close.

vanilla Skriptno addons required.
trash-can-gui.sk9 lines
command /trash:
    trigger:
        set {_gui} to chest inventory with 3 rows named "&cTrash Can"
        open {_gui} to player

on inventory close:
    if name of event-inventory is "&cTrash Can":
        send "&7Trash emptied — %size of contents of event-inventory% items discarded." to player

get it running

trash-can-gui.sk · 9 lines · vanilla Skript
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    trash-can-gui.sk· ready to drop in
  2. 2

    drop it in your scripts folder

    save it exactly here on your server — no typos, just copy the path:

    …/plugins/Skript/scripts/trash-can-gui.sk
  3. 3

    reload in-game

    run this in chat or console — your script goes live instantly:

    /sk reload trash-can-gui
that's it — your script is live. hop in-game to try it.
/ related templates

more utility templates

comments