Skip to content
home/templates/basic shop gui
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. 1

    copy or download

    grab the .sk file with the buttons up top.

    shop-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/shop-gui.sk
  3. 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

comments