Files
README.txt
shop.sk
Code
2 129
shop.sk
# ═══════════════════════════════════════════════════════════════
# MODERN SHOP SYSTEM
# Version: 1.0
# Description: Sleek shop with cPvP gear, blocks, and redstone
# ═══════════════════════════════════════════════════════════════
options:
# Visual Theme - Modern & Bold
primary: &b&l
secondary: &f
accent: &e&l
error: &c&l
success: &a&l
# Shop Title
shop-title: &8&l[&b&lMODERN SHOP&8&l]
# Currency Symbol
currency: ⛃
# Prices - PvP Gear
price-diamond-sword: 500
price-diamond-axe: 450
price-diamond-helmet: 300
price-diamond-chestplate: 400
price-diamond-leggings: 350
price-diamond-boots: 250
price-bow: 200
price-arrow: 5
price-shield: 150
price-golden-apple: 50
price-enchanted-golden-apple: 500
price-ender-pearl: 75
price-totem: 1000
# Prices - Building Blocks
price-oak-log: 10
price-stone: 5
price-cobblestone: 3
price-stone-brick: 8
price-oak-planks: 5
price-glass: 10
price-white-concrete: 15
price-black-concrete: 15
price-quartz-block: 20
price-smooth-stone: 10
# Prices - Redstone & Farms
price-redstone: 20
price-repeater: 30
price-comparator: 40
price-observer: 50
price-piston: 25
price-sticky-piston: 35
price-hopper: 100
price-dropper: 30
price-dispenser: 35
price-redstone-torch: 15
# ═══════════════════════════════════════════════════════════════
# MAIN SHOP COMMAND
# ═══════════════════════════════════════════════════════════════
command /shop [<text>]:
trigger:
if arg-1 is not set:
set {_gui} to chest inventory with 3 rows named "&b&lSHOP &f▸ Categories"
# Category: PvP Gear
set slot 11 of {_gui} to diamond sword named "{@accent}⚔ PVP GEAR" with lore "{@secondary}Swords, armor, and combat items||{@primary}Click to browse!"
# Category: Building Blocks
set slot 13 of {_gui} to stone bricks named "{@accent}▣ BUILDING BLOCKS" with lore "{@secondary}Blocks for construction||{@primary}Click to browse!"
# Category: Redstone & Farms
set slot 15 of {_gui} to redstone named "{@accent}⚡ REDSTONE & FARMS" with lore "{@secondary}Redstone components and farm items||{@primary}Click to browse!"
# Decorative glass panes
set {_filler} to light gray stained glass pane named "&r"
loop integers from 0 to 26:
if slot loop-integer of {_gui} is air:
set slot loop-integer of {_gui} to {_filler}
open {_gui} to player
else if arg-1 is "pvp":
set {_gui} to chest inventory with 6 rows named "&b&lSHOP &f▸ PvP Gear"
# Row 1: Weapons