guiIntermediatemc 1.20.x – 1.21.x21 lines
basic shop gui
no-addon chest gui with 3 buyable items. player click → message + give item. items are locked.
vanilla Skriptno addons required.
shop-gui.sk21 lines
command /shop: trigger: set {_gui} to chest inventory with 3 rows named "&aShop" set slot 11 of {_gui} to diamond named "&bDiamond" with lore "&7Click to buy" set slot 13 of {_gui} to emerald named "&aEmerald" with lore "&7Click to buy" set slot 15 of {_gui} to gold ingot named "&6Gold Ingot" with lore "&7Click to buy" open {_gui} to player on inventory click: if name of event-inventory is "&aShop": cancel event if index of event-slot is 11: give 1 diamond to player send "&aYou received a diamond!" to player if index of event-slot is 13: give 1 emerald to player send "&aYou received an emerald!" to player if index of event-slot is 15: give 1 gold ingot to player send "&aYou received a gold ingot!" to player
get it running
shop-gui.sk · 21 lines · vanilla Skript- 1
copy or download
grab the .sk file with the buttons up top.
shop-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/shop-gui.sk - 3
reload in-game
run this in chat or console — your script goes live instantly:
/sk reload shop-gui
that's it — your script is live. hop in-game to try it.
/ related templates
more gui templates
gui
hub / server selector gui
right-click a compass to open a server selector. each slot teleports to a configured warp.
guipaginated chest gui menu
gui helper for browsing a long list across multiple pages. hard-coded item list + auto-generated next/prev/close navigation row.
guiplayer trade gui (/trade)
two-player trade with confirm/ready flow. each player adds items to their side; both must accept before the trade completes.