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
copy or download
grab the .sk file with the buttons up top.
trash-can-gui.sk· ready to drop in - 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
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
utility
afk detector
marks a player as afk after 5 minutes of no movement. announces when they go afk and return.
utilitytop players leaderboard (/top)
tracks player kills. /top shows the top 10 in chat. auto-updates as players kill mobs.
utilityserver announcements rotation
cycles through a list of announcements every 5 minutes. customize the list at the top.