Rovanio Mina

can u make me a skript thats Like donutsmp Amethyist Shop with 3x3 pickaxe with same enchants and axe and shovel and all of the other items

Kodari AI
KodariSep 13 at 1:58 pm 1
AmethystShopGUI
Creates a GUI-based shop system inspired by DonutSMP's Amethyst Shop. Features a 3x3 pickaxe with matching enchantments, an axe, shovel, and all other standard tools/items. Players open the shop via command, browse categorized pages, and purchase items with in-game currency. Includes configurable prices, enchantment presets, and a persistent shop inventory that saves across restarts.
Rovanio Mina

i want it for 26.1.2 papermc

Kodari AI
KodariSep 13 at 2:00 pm 1

Do you mean Paper 1.21.2 or Paper 26.1.2?

Also, which economy should the shop use?

  • Vault/Economy — works with EssentialsX

  • PlayerPoints

  • A built-in Skript balance system

Once confirmed, I’ll make the Amethyst Shop compatible with that setup.

Rovanio Mina

now i want u to create and new skript for Orders Like donutsmp and Ah And shop too all in diffrent skripts

Kodari AI
KodariSep 13 at 2:04 pm 2
  1. orders.sk — player buy/sell orders with escrow, fulfillment, cancellation, and GUI.

  2. ah.sk — auction-house listings with item preservation, buying, cancellation, and GUI.

  3. shop.sk — categorized shop, shared balance, /money, /pay, and purchases.

Created 3 separate Skript files:

  • orders.sk

    • /orders

    • /orders create buy <item> <amount> <unit price>

    • /orders create sell <item> <amount> <unit price>

    • /orders fill <id>

    • /orders cancel <id>

    • GUI order menu

  • ah.sk

    • /ah

    • /ah sell <price>

    • /ah buy <listing id>

    • /ah cancel <listing id>

    • GUI auction house

  • shop.sk

    • /shop

    • Tools, blocks, food, and items categories

    • Enchanted Amethyst Pickaxe, Axe, Shovel, Sword, Hoe, and Bow

    • /money

    • /pay <player> <amount>

    • /moneyset <player> <amount>

Place them in:

Plain Text
plugins/Skript/scripts/

Then reload them:

Plain Text
/sk reload shop
/sk reload ah
/sk reload orders

The scripts share the same balance variable and start players with $1000. Prices can be changed inside shop.sk. They use regular Skript syntax and should be suitable for modern Paper servers, including your setup.

Rovanio Mina

so in ame shop sk line are broken

1 image attached
Kodari AI
KodariSep 13 at 2:07 pm 1
  1. Fixed the invalid slimeball item syntax.

  2. Replaced the inventory-title checks with a player shop-session variable, which avoids the event-inventory parsing errors.

  3. Added cleanup when the shop closes.

Fixed amethyst-shop.sk:

  • Replaced the broken slimeball named syntax.

  • Removed the problematic inventory title checks.

  • Added a safer shop-session variable for clicks and dragging.

  • Added cleanup when players close the shop or leave.

You also have a duplicate command registered in another file:

Plain Text
amethyst.sk

Remove or rename the old amethyst.sk file, because it already contains /amethystshop. Keep only one script that defines that command.

Then reload:

Plain Text
/sk reload amethyst-shop

If the old file is still loaded, restart the server after removing it.

Rovanio Mina

it did this when i tried to buy i coudnt

1 image attached
Kodari AI
KodariSep 13 at 2:12 pm 1

The shop did not load because of two errors:

  1. Invalid item name — fixed slimeball to slime ball.

  2. Duplicate command — you have another amethyst.sk file that already registers /amethystshop.

On your server, do this:

  1. Go to:

    Plain Text
    plugins/Skript/scripts/
    
  2. Delete or rename the old:

    Plain Text
    amethyst.sk
    

    Keep only:

    Plain Text
    amethyst-shop.sk
    
  3. Reload the script:

    Plain Text
    /sk reload amethyst-shop
    

If you want to keep amethyst.sk, remove its /amethystshop command instead. Only one script can contain that command.

The slime item has been corrected in amethyst-shop.sk. After the reload succeeds, open it with:

Plain Text
/amethystshop

Then click an item to purchase it.

Rovanio Mina
1 image attached
Kodari AI
KodariSep 13 at 2:13 pm 1

The error is not from line 342’s syntax. Another loaded Skript already registers /amethystshop, so Skript refuses to load this file.

Do this:

  1. Check which scripts are loaded:

    Plain Text
    /sk scripts
    
  2. Open:

    Plain Text
    plugins/Skript/scripts/
    
  3. Find the older script containing:

    Skript
    command /amethystshop
    
  4. Delete or rename that duplicate file. Keep only:

    Plain Text
    amethyst-shop.sk
    
  5. Reload:

    Plain Text
    /sk reload amethyst-shop
    

Also make sure there is only one script containing either:

Skript
command /amethystshop

or:

Skript
aliases: /ashop

If you cannot find the duplicate, temporarily change the command in amethyst-shop.sk from:

Skript
command /amethystshop [<number>]:

to:

Skript
command /amethystshop2 [<number>]:

Then reload it with:

Plain Text
/sk reload amethyst-shop

Use /amethystshop2 to test it. The permanent fix is removing the old duplicate command so you can keep /amethystshop.

Kodari can make mistakes. Review important code before using.
Files
ah.sk
amethyst-shop.sk
orders.sk
shop.sk
Code
4 1,026
amethyst-shop.sk
# Amethyst Shop
# Place this file in plugins/Skript/scripts/
# Reload with: /sk reload amethyst-shop
#
# This script includes:
# - Amethyst currency balance
# - GUI shop with tools, armor, combat items, blocks, and resources
# - Custom 3x3 Amethyst Pickaxe
# - Custom enchanted axe, shovel, hoe, sword, armor, and elytra
# - Admin currency command

options:
    shop-page-1: &5Amethyst Shop &8| &fTools
    shop-page-2: &5Amethyst Shop &8| &fItems

    pickaxe-name: &dAmethyst 3x3 Pickaxe
    axe-name: &dAmethyst Axe
    shovel-name: &dAmethyst Shovel
    hoe-name: &dAmethyst Hoe
    sword-name: &dAmethyst Sword

    pickaxe-efficiency: 10
    pickaxe-fortune: 5
    pickaxe-unbreaking: 5

    tool-efficiency: 10
    tool-unbreaking: 5
    axe-sharpness: 5
    shovel-fortune: 5
    sword-sharpness: 10
    sword-looting: 5
    sword-unbreaking: 5

function amethystBalance(p: player) :: number:
    if {amethyst.balance::%uuid of {_p}%} is not set:
        set {amethyst.balance::%uuid of {_p}%} to 0
    return {amethyst.balance::%uuid of {_p}%}

function amethystPrice(product: text) :: number:
    if {_product} is "pickaxe":
        return 250000
    if {_product} is "axe":
        return 200000
    if {_product} is "shovel":
        return 150000
    if {_product} is "hoe":
        return 125000
    if {_product} is "sword":
        return 250000
    if {_product} is "helmet":
        return 175000
    if {_product} is "chestplate":
        return 300000
    if {_product} is "leggings":
        return 275000
    if {_product} is "boots":
        return 175000
    if {_product} is "elytra":
        return 750000
    if {_product} is "shield":
        return 50000
    if {_product} is "diamonds":
        return 50000
    if {_product} is "netherite":
        return 100000
    if {_product} is "emeralds":
        return 35000
    if {_product} is "goldblocks":
        return 40000
    if {_product} is "ironblocks":
        return 25000
    if {_product} is "obsidian":
        return 30000
    if {_product} is "pearls":
        return 30000
    if {_product} is "goldenapple":
        return 75000
    if {_product} is "enchantedgoldenapple":
        return 250000
    if {_product} is "experience":
        return 25000
    if {_product} is "tnt":
        return 45000
    if {_product} is "cobweb":
        return 30000
    if {_product} is "rockets":
        return 20000
    if {_product} is "quartz":
        return 15000
    if {_product} is "slime":
        return 20000
    if {_product} is "amethyst":
        return 10000
    return 0

function amethystItem(product: text) :: item:
    set {_item} to air

    if {_product} is "pickaxe":
        set {_item} to netherite pickaxe named "{@pickaxe-name}"
        enchant {_item} with efficiency {@pickaxe-efficiency}
        enchant {_item} with fortune {@pickaxe-fortune}
        enchant {_item} with unbreaking {@pickaxe-unbreaking}
        enchant {_item} with mending 1
        return {_item}

    if {_product} is "axe":
        set {_item} to netherite axe named "{@axe-name}"
        enchant {_item} with efficiency {@tool-efficiency}
        enchant {_item} with sharpness {@axe-sharpness}
        enchant {_item} with unbreaking {@tool-unbreaking}
        enchant {_item} with mending 1
        return {_item}

    if {_product} is "shovel":
        set {_item} to netherite shovel named "{@shovel-name}"
        enchant {_item} with efficiency {@tool-efficiency}
        enchant {_item} with fortune {@shovel-fortune}
        enchant {_item} with unbreaking {@tool-unbreaking}
        enchant {_item} with mending 1
        return {_item}

    if {_product} is "hoe":
        set {_item} to netherite hoe named "{@hoe-name}"
        enchant {_item} with efficiency {@tool-efficiency}
        enchant {_item} with unbreaking {@tool-unbreaking}
        enchant {_item} with mending 1
        return {_item}

    if {_product} is "sword":
        set {_item} to netherite sword named "{@sword-name}"
        enchant {_item} with sharpness {@sword-sharpness}
        enchant {_item} with looting {@sword-looting}
        enchant {_item} with fire aspect 2
        enchant {_item} with unbreaking {@sword-unbreaking}
        enchant {_item} with mending 1
        return {_item}

    if {_product} is "helmet":
        set {_item} to netherite helmet named "&dAmethyst Helmet"
        enchant {_item} with protection 5
        enchant {_item} with unbreaking 5
        enchant {_item} with mending 1
        return {_item}

    if {_product} is "chestplate":
        set {_item} to netherite chestplate named "&dAmethyst Chestplate"
        enchant {_item} with protection 5
        enchant {_item} with unbreaking 5
        enchant {_item} with mending 1
        return {_item}

    if {_product} is "leggings":
        set {_item} to netherite leggings named "&dAmethyst Leggings"
        enchant {_item} with protection 5
        enchant {_item} with unbreaking 5
        enchant {_item} with mending 1
        return {_item}

    if {_product} is "boots":
        set {_item} to netherite boots named "&dAmethyst Boots"
        enchant {_item} with protection 5
        enchant {_item} with feather falling 5
        enchant {_item} with depth strider 3
        enchant {_item} with unbreaking 5
        enchant {_item} with mending 1
        return {_item}

    if {_product} is "elytra":
        set {_item} to elytra named "&dAmethyst Elytra"
        enchant {_item} with unbreaking 5
        enchant {_item} with mending 1
        return {_item}

    if {_product} is "shield":
        set {_item} to shield named "&dAmethyst Shield"
        enchant {_item} with unbreaking 5
        enchant {_item} with mending 1
        return {_item}

    if {_product} is "diamonds":
        set {_item} to diamond named "&b16 Diamonds"
        set amount of {_item} to 16
        return {_item}

    if {_product} is "netherite":
        set {_item} to netherite ingot named "&8Netherite Ingot"
        return {_item}

    if {_product} is "emeralds":
        set {_item} to emerald named "&a16 Emeralds"
        set amount of {_item} to 16
        return {_item}

    if {_product} is "goldblocks":
        set {_item} to gold block named "&616 Gold Blocks"
        set amount of {_item} to 16
        return {_item}

    if {_product} is "ironblocks":