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":