Files
config.sk
menu-core.sk
scripts.sk
Code
3 624
scripts.sk
# ============================================
# ScriptMenu — Script & Category Definitions
# ============================================
# ADD YOUR SCRIPTS AND CATEGORIES HERE
#
# How to add a new category:
# 1. Increment {cat::nextid}
# 2. Set category properties (name, material, slot, lore, permission)
# 3. Add index to {catlist::*}
# 4. Add scripts using same index
#
# How to add a script to a category:
# 1. Increment {script::<%catid%>::nextid}
# 2. Set script properties (name, material, slot, lore, command, permission, cooldown)
# 3. Add index to {scriptlist::<%catid%>::*}
# ============================================
on script load:
# Clear old data to prevent duplicates on reload
delete {cat::*}
delete {catlist::*}
delete {script::*}
delete {scriptlist::*}
#
# ─── CATEGORIES ─────────────────────────────────
#
{cat::nextid} = 0
# ── Category 1: Player Utilities ──
{cat::nextid} += 1
set {_c} to {cat::nextid}
{cat::%{_c}%::name} = "Player Utilities"
{cat::%{_c}%::material} = compass
{cat::%{_c}%::slot} = 10
{cat::%{_c}%::lore} = &7Helpful tools and utilities for players
{cat::%{_c}%::permission} =
add {_c} to {catlist::*}
# ── Category 2: Admin Tools ──
{cat::nextid} += 1
set {_c} to {cat::nextid}
{cat::%{_c}%::name} = "Admin Tools"
{cat::%{_c}%::material} = command_block
{cat::%{_c}%::slot} = 12
{cat::%{_c}%::lore} = &7Server administration and moderation tools
{cat::%{_c}%::permission} = scriptmenu.admin
add {_c} to {catlist::*}
# ── Category 3: Mini-Games ──
{cat::nextid} += 1
set {_c} to {cat::nextid}
{cat::%{_c}%::name} = "Mini-Games"
{cat::%{_c}%::material} = firework_rocket
{cat::%{_c}%::slot} = 14
{cat::%{_c}%::lore} = &7Fun mini-games and activities
{cat::%{_c}%::permission} =
add {_c} to {catlist::*}
# ── Category 4: World Management ──
{cat::nextid} += 1
set {_c} to {cat::nextid}
{cat::%{_c}%::name} = "World Management"
{cat::%{_c}%::material} = grass_block
{cat::%{_c}%::slot} = 16
{cat::%{_c}%::lore} = &7World and environment settings
{cat::%{_c}%::permission} = scriptmenu.world
add {_c} to {catlist::*}
# ── Category 5: Economy ──
{cat::nextid} += 1
set {_c} to {cat::nextid}
{cat::%{_c}%::name} = "Economy"
{cat::%{_c}%::material} = gold_ingot
{cat::%{_c}%::slot} = 28
{cat::%{_c}%::lore} = &7Money, shops, and trading
{cat::%{_c}%::permission} =
add {_c} to {catlist::*}
# ── Category 6: Teleportation ──
{cat::nextid} += 1
set {_c} to {cat::nextid}
{cat::%{_c}%::name} = "Teleportation"
{cat::%{_c}%::material} = ender_pearl
{cat::%{_c}%::slot} = 30
{cat::%{_c}%::lore} = &7Warp, teleport, and travel commands
{cat::%{_c}%::permission} =
add {_c} to {catlist::*}
# ── Category 7: Fun & Effects ──
{cat::nextid} += 1
set {_c} to {cat::nextid}
{cat::%{_c}%::name} = "Fun & Effects"
{cat::%{_c}%::material} = diamond
{cat::%{_c}%::slot} = 32
{cat::%{_c}%::lore} = &7Particle effects, cosmetics, and fun
{cat::%{_c}%::permission} =
add {_c} to {catlist::*}
# ── Category 8: Server Info ──
{cat::nextid} += 1
set {_c} to {cat::nextid}
{cat::%{_c}%::name} = "Server Info"
{cat::%{_c}%::material} = book
{cat::%{_c}%::slot} = 34
{cat::%{_c}%::lore} = &7Server information and status
{cat::%{_c}%::permission} =
add {_c} to {catlist::*}
#
# ─── Category 1 Scripts: Player Utilities ──
#
{script::1::nextid} = 0
{script::1::nextid} += 1
set {_s} to {script::1::nextid}
{script::1::%{_s}%::name} = "Night Vision"
{script::1::%{_s}%::material} = glowstone_dust
{script::1::%{_s}%::slot} = 0
{script::1::%{_s}%::lore} = &7Toggle night vision effect
{script::1::%{_s}%::command} = effect give %player% night_vision 999999 1 true
{script::1::%{_s}%::permission} = scriptmenu.nightvision
{script::1::%{_s}%::cooldown} = 5
add {_s} to {scriptlist::1::*}
{script::1::nextid} += 1
set {_s} to {script::1::nextid}
{script::1::%{_s}%::name} = "Clear Inventory"
{script::1::%{_s}%::material} = bucket
{script::1::%{_s}%::slot} = 1
{script::1::%{_s}%::lore} = &7Clear your inventory
{script::1::%{_s}%::command} = clear %player%
{script::1::%{_s}%::permission} = scriptmenu.clearinv
{script::1::%{_s}%::cooldown} = 10
add {_s} to {scriptlist::1::*}
{script::1::nextid} += 1
set {_s} to {script::1::nextid}
{script::1::%{_s}%::name} = "Heal Me"
{script::1::%{_s}%::material} = golden_apple
{script::1::%{_s}%::slot} = 2
{script::1::%{_s}%::lore} = &7Instantly heal and feed yourself
{script::1::%{_s}%::command} = heal %player%
{script::1::%{_s}%::permission} = scriptmenu.heal
{script::1::%{_s}%::cooldown} = 30
add {_s} to {scriptlist::1::*}
{script::1::nextid} += 1
set {_s} to {script::1::nextid}
{script::1::%{_s}%::name} = "Fly Mode"
{script::1::%{_s}%::material} = feather
{script::1::%{_s}%::slot} = 3
{script::1::%{_s}%::lore} = &7Toggle flight mode
{script::1::%{_s}%::command} = fly %player%
{script::1::%{_s}%::permission} = scriptmenu.fly
{script::1::%{_s}%::cooldown} = 3
add {_s} to {scriptlist::1::*}
#
# ─── Category 2 Scripts: Admin Tools ──
#
{script::2::nextid} = 0
{script::2::nextid} += 1
set {_s} to {script::2::nextid}
{script::2::%{_s}%::name} = "Kill All Mobs"
{script::2::%{_s}%::material} = diamond_sword
{script::2::%{_s}%::slot} = 0
{script::2::%{_s}%::lore} = &7Remove all hostile mobs in world
{script::2::%{_s}%::command} = kill @e[type=!player]
{script::2::%{_s}%::permission} = scriptmenu.killmobs
{script::2::%{_s}%::cooldown} = 10
add {_s} to {scriptlist::2::*}
{script::2::nextid} += 1
set {_s} to {script::2::nextid}
{script::2::%{_s}%::name} = "Vanish"
{script::2::%{_s}%::material} = ender_eye
{script::2::%{_s}%::slot} = 1
{script::2::%{_s}%::lore} = &7Toggle vanish mode
{script::2::%{_s}%::command} = vanish %player%
{script::2::%{_s}%::permission} = scriptmenu.vanish
{script::2::%{_s}%::cooldown} = 3
add {_s} to {scriptlist::2::*}
{script::2::nextid} += 1
set {_s} to {script::2::nextid}
{script::2::%{_s}%::name} = "Broadcast Message"
{script::2::%{_s}%::material} = jukebox
{script::2::%{_s}%::slot} = 2
{script::2::%{_s}%::lore} = &7Send a server-wide announcement
{script::2::%{_s}%::command} = say &6[Announcement] &fMessage from %player%
{script::2::%{_s}%::permission} = scriptmenu.broadcast
{script::2::%{_s}%::cooldown} = 15
add {_s} to {scriptlist::2::*}
{script::2::nextid} += 1
set {_s} to {script::2::nextid}
{script::2::%{_s}%::name} = "Set Time to Day"
{script::2::%{_s}%::material} = clock