Skip to content

Instantly share code, notes, and snippets.

@gamingoninsulin
Created February 26, 2025 20:07
Show Gist options
  • Save gamingoninsulin/c10b518134aefb5374ba6872b295817e to your computer and use it in GitHub Desktop.
Save gamingoninsulin/c10b518134aefb5374ba6872b295817e to your computer and use it in GitHub Desktop.
sk_achemy.sk
options:
emc_variable: {emc.%player's uuid%}
alchemy_chest_title: "§5Alchemy Table"
learned_items: {learned.%player's uuid%.*}
command /emc [<integer>]:
trigger:
if argument 1 is not set:
send "§aYour EMC: §e%{emc_variable}%"
else:
send "§cInvalid usage. /emc"
command /emcset <player> <integer>:
permission: emc.admin
trigger:
set {emc.%argument 1's uuid%} to argument 2
send "§aSet %argument 1%'s EMC to %argument 2%."
command /emcadd <integer>:
trigger:
if player's held item is air:
send "§cYou must be holding an item."
stop
set {_emc} to argument 1
add {_emc} to {emc.%player's uuid%}
send "§aAdded %argument 1% EMC to your account."
command /emcremove <integer>:
trigger:
if {emc.%player's uuid%} is less than argument 1:
send "§cYou do not have enough EMC."
stop
set {_emc} to argument 1
remove {_emc} from {emc.%player's uuid%}
send "§cRemoved %argument 1% EMC from your account."
command /emcvalue [<item>]:
trigger:
if argument 1 is not set:
if player's held item is air:
send "§cYou must be holding an item."
stop
else:
set {_item} to player's held item
else:
set {_item} to argument 1
set {_emc} to {emc_value.%{_item}%}
if {_emc} is not set:
send "§cThis item has no EMC value."
else:
send "§aThe EMC value of %{_item}% is %{_emc}%."
command /emcconvert <integer> <item>:
trigger:
if argument 1 is not set:
send "§cCorrect usage: /emcconvert <amount> <item>"
stop
if argument 2 is not set:
send "§cCorrect usage: /emcconvert <amount> <item>"
stop
set {_emc} to {emc_value.%argument 2%}
if {_emc} is not set:
send "§cThis item has no EMC value."
stop
set {_totalemc} to argument 1 * {_emc}
if {emc.%player's uuid%} is less than {_totalemc}:
send "§cYou do not have enough EMC."
stop
remove {_totalemc} from {emc.%player's uuid%}
give argument 1 of argument 2 to player
send "§aConverted %argument 1% of %argument 2% to items."
command /emcitemconvert <integer>:
trigger:
if player's held item is air:
send "§cYou must be holding an item."
stop
set {_item} to player's held item
set {_emc} to {emc_value.%{_item}%}
if {_emc} is not set:
send "§cThis item has no EMC value."
stop
set {_totalemc} to {_emc} * argument 1
remove argument 1 of {_item} from player
add {_totalemc} to {emc.%player's uuid%}
send "§aConverted %argument 1% of %{_item}% to %{_totalemc}% EMC."
command /alchemy:
trigger:
set {_chest} to a new chest inventory with 54 slots named "§5Alchemy Table"
open {_chest} to player
set {_emc} to {emc.%player's uuid%}
set {_alchemy_inv} to player's current inventory
# Learned Items
if {learned.%player's uuid%.diamond} is true:
set slot 10 of {_alchemy_inv} to diamond named "§bDiamond"
if {learned.%player's uuid%.iron_ingot} is true:
set slot 11 of {_alchemy_inv} to iron ingot named "§fIron Ingot"
if {learned.%player's uuid%.gold_ingot} is true:
set slot 12 of {_alchemy_inv} to gold ingot named "§6Gold Ingot"
if {learned.%player's uuid%.emerald} is true:
set slot 13 of {_alchemy_inv} to emerald named "§aEmerald"
if {learned.%player's uuid%.nether_star} is true:
set slot 14 of {_alchemy_inv} to nether star named "§cNether Star"
# Learning Slots
if {learned.%player's uuid%.diamond} is not true:
if {_emc} >= {emc_value.diamond}:
set slot 30 of {_alchemy_inv} to diamond named "§bLearn Diamond (8192 EMC)"
if {learned.%player's uuid%.iron_ingot} is not true:
if {_emc} >= {emc_value.iron_ingot}:
set slot 31 of {_alchemy_inv} to iron ingot named "§fLearn Iron Ingot (256 EMC)"
if {learned.%player's uuid%.gold_ingot} is not true:
if {_emc} >= {emc_value.gold_ingot}:
set slot 32 of {_alchemy_inv} to gold ingot named "§6Learn Gold Ingot (1024 EMC)"
if {learned.%player's uuid%.emerald} is not true:
if {_emc} >= {emc_value.emerald}:
set slot 33 of {_alchemy_inv} to emerald named "§aLearn Emerald (9216 EMC)"
if {learned.%player's uuid%.nether_star} is not true:
if {_emc} >= {emc_value.nether_star}:
set slot 34 of {_alchemy_inv} to nether star named "§cLearn Nether Star (65536 EMC)"
on inventory click:
if name of event-inventory is "§5Alchemy Table":
cancel event
set {_emc} to {emc.%player's uuid%}
set {_clicked} to clicked slot
set {_alchemy_inv} to event-inventory
# Learning Logic
if {_clicked} is 33: # Emerald learning
if {_emc} >= {emc_value.emerald}:
if {learned.%player's uuid%.emerald} is not true:
set {learned.%player's uuid%.emerald} to true
remove {emc_value.emerald} from {emc.%player's uuid%}
set slot 13 of {_alchemy_inv} to emerald named "§aEmerald"
send "§aYou have learned the Emerald recipe."
else:
send "§cYou do not have enough EMC or have already learned this."
if {_clicked} is 31: # Iron Ingot learning
if {_emc} >= {emc_value.iron_ingot}:
if {learned.%player's uuid%.iron_ingot} is not true:
set {learned.%player's uuid%.iron_ingot} to true
remove {emc_value.iron_ingot} from {emc.%player's uuid%}
set slot 11 of {_alchemy_inv} to iron ingot named "§fIron Ingot"
send "§aYou have learned the Iron Ingot recipe."
else:
send "§cYou do not have enough EMC or have already learned this."
if {_clicked} is 32: # Gold Ingot learning
if {_emc} >= {emc_value.gold_ingot}:
if {learned.%player's uuid%.gold_ingot} is not true:
set {learned.%player's uuid%.gold_ingot} to true
remove {emc_value.gold_ingot} from {emc.%player's uuid%}
set slot 12 of {_alchemy_inv} to gold ingot named "§6Gold Ingot"
send "§aYou have learned the Gold Ingot recipe."
else:
send "§cYou do not have enough EMC or have already learned this."
if {_clicked} is 33: # Emerald learning
if {_emc} >= {emc_value.emerald}:
if {learned.%player's uuid%.emerald} is not true:
set {learned.%player's uuid%.emerald} to true
remove {emc_value.emerald} from {emc.%player's uuid%}
set slot 13 of {_alchemy_inv} to emerald named "§aEmerald"
send "§aYou have learned the Emerald recipe."
else:
send "§cYou do not have enough EMC or have already learned this."
if {_clicked} is 34: # Nether Star learning
if {_emc} >= {emc_value.nether_star}:
if {learned.%player's uuid%.nether_star} is not true:
set {learned.%player's uuid%.nether_star} to true
remove {emc_value.nether_star} from {emc.%player's uuid%}
set slot 14 of {_alchemy_inv} to nether star named "§cNether Star"
send "§aYou have learned the Nether Star recipe."
else:
send "§cYou do not have enough EMC or have already learned this."
on load:
# Blocks
set {emc_value.stone} to 1
set {emc_value.granite} to 1
set {emc_value.polished_granite} to 1
set {emc_value.diorite} to 1
set {emc_value.polished_diorite} to 1
set {emc_value.andesite} to 1
set {emc_value.polished_andesite} to 1
set {emc_value.dirt} to 1
set {emc_value.coarse_dirt} to 1
set {emc_value.grass_block} to 1
set {emc_value.podzol} to 1
set {emc_value.cobblestone} to 1
set {emc_value.oak_planks} to 4
set {emc_value.spruce_planks} to 4
set {emc_value.birch_planks} to 4
set {emc_value.jungle_planks} to 4
set {emc_value.acacia_planks} to 4
set {emc_value.dark_oak_planks} to 4
set {emc_value.oak_log} to 8
set {emc_value.spruce_log} to 8
set {emc_value.birch_log} to 8
set {emc_value.jungle_log} to 8
set {emc_value.acacia_log} to 8
set {emc_value.dark_oak_log} to 8
set {emc_value.stripped_oak_log} to 8
set {emc_value.stripped_spruce_log} to 8
set {emc_value.stripped_birch_log} to 8
set {emc_value.stripped_jungle_log} to 8
set {emc_value.stripped_acacia_log} to 8
set {emc_value.stripped_dark_oak_log} to 8
set {emc_value.oak_leaves} to 1
set {emc_value.spruce_leaves} to 1
set {emc_value.birch_leaves} to 1
set {emc_value.jungle_leaves} to 1
set {emc_value.acacia_leaves} to 1
set {emc_value.dark_oak_leaves} to 1
set {emc_value.sand} to 2
set {emc_value.red_sand} to 2
set {emc_value.gravel} to 2
set {emc_value.clay} to 4
set {emc_value.clay_block} to 16
set {emc_value.sandstone} to 2
set {emc_value.red_sandstone} to 2
set {emc_value.smooth_sandstone} to 2
set {emc_value.smooth_red_sandstone} to 2
set {emc_value.cut_sandstone} to 2
set {emc_value.cut_red_sandstone} to 2
set {emc_value.chiseled_sandstone} to 2
set {emc_value.chiseled_red_sandstone} to 2
set {emc_value.glass} to 4
set {emc_value.glass_pane} to 1
set {emc_value.white_wool} to 8
set {emc_value.orange_wool} to 8
set {emc_value.magenta_wool} to 8
set {emc_value.light_blue_wool} to 8
set {emc_value.yellow_wool} to 8
set {emc_value.lime_wool} to 8
set {emc_value.pink_wool} to 8
set {emc_value.gray_wool} to 8
set {emc_value.light_gray_wool} to 8
set {emc_value.cyan_wool} to 8
set {emc_value.purple_wool} to 8
set {emc_value.blue_wool} to 8
set {emc_value.brown_wool} to 8
set {emc_value.green_wool} to 8
set {emc_value.red_wool} to 8
set {emc_value.black_wool} to 8
set {emc_value.brick} to 8
set {emc_value.brick_block} to 32
set {emc_value.nether_brick} to 8
set {emc_value.nether_bricks} to 32
set {emc_value.nether_brick_fence} to 8
set {emc_value.nether_brick_stairs} to 24
set {emc_value.nether_brick_wall} to 8
set {emc_value.soul_sand} to 4
set {emc_value.glowstone} to 64
set {emc_value.obsidian} to 128
set {emc_value.sponge} to 128
set {emc_value.wet_sponge} to 64
set {emc_value.lapis_block} to 864
set {emc_value.lapis_ore} to 96
set {emc_value.dispenser} to 128
set {emc_value.dropper} to 128
set {emc_value.sticky_piston} to 128
set {emc_value.piston} to 128
set {emc_value.gold_block} to 9216
set {emc_value.gold_ore} to 1024
set {emc_value.iron_block} to 2304
set {emc_value.iron_ore} to 256
set {emc_value.diamond_block} to 73728
set {emc_value.diamond_ore} to 8192
set {emc_value.redstone_block} to 729
set {emc_value.redstone_ore} to 81
set {emc_value.coal_block} to 72
set {emc_value.coal_ore} to 8
set {emc_value.emerald_block} to 82944
set {emc_value.emerald_ore} to 9216
set {emc_value.quartz_block} to 16
set {emc_value.quartz_ore} to 16
set {emc_value.nether_quartz_ore} to 16
set {emc_value.purpur_block} to 32
set {emc_value.purpur_pillar} to 32
set {emc_value.end_stone} to 4
set {emc_value.end_stone_bricks} to 4
set {emc_value.prismarine} to 64
set {emc_value.prismarine_bricks} to 64
set {emc_value.dark_prismarine} to 64
set {emc_value.sea_lantern} to 192
set {emc_value.shulker_box} to 2048
set {emc_value.white_shulker_box} to 2048
set {emc_value.orange_shulker_box} to 2048
set {emc_value.magenta_shulker_box} to 2048
set {emc_value.light_blue_shulker_box} to 2048
# items
set {emc_value.stick} to 1
set {emc_value.string} to 4
set {emc_value.coal} to 8
set {emc_value.iron_ingot} to 256
set {emc_value.gold_ingot} to 1024
set {emc_value.diamond} to 8192
set {emc_value.redstone} to 81
set {emc_value.lapis_lazuli} to 96
set {emc_value.emerald} to 9216
set {emc_value.quartz} to 16
set {emc_value.flint} to 16
set {emc_value.leather} to 64
set {emc_value.bone} to 32
set {emc_value.ender_pearl} to 1024
set {emc_value.blaze_rod} to 512
set {emc_value.ghast_tear} to 2048
set {emc_value.nether_star} to 65536
set {emc_value.slime_ball} to 64
set {emc_value.egg} to 8
set {emc_value.sugar} to 4
set {emc_value.wheat} to 4
set {emc_value.apple} to 16
set {emc_value.golden_apple} to 8208
set {emc_value.golden_carrot} to 1040
set {emc_value.carrot} to 16
set {emc_value.potato} to 16
set {emc_value.baked_potato} to 20
set {emc_value.poisonous_potato} to 8
set {emc_value.pumpkin_seeds} to 4
set {emc_value.melon_seeds} to 4
set {emc_value.beetroot_seeds} to 4
set {emc_value.beetroot} to 4
set {emc_value.mushroom_stew} to 80
set {emc_value.rabbit_stew} to 320
set {emc_value.beetroot_soup} to 20
set {emc_value.honey_bottle} to 68
set {emc_value.honeycomb} to 32
set {emc_value.ink_sac} to 16
set {emc_value.glow_ink_sac} to 16
set {emc_value.cocoa_beans} to 32
set {emc_value.nether_wart} to 64
set {emc_value.phantom_membrane} to 256
set {emc_value.rabbit_foot} to 128
set {emc_value.rabbit_hide} to 32
set {emc_value.turtle_shell_piece} to 128
set {emc_value.scute} to 128
set {emc_value.prismarine_shard} to 64
set {emc_value.prismarine_crystals} to 128
set {emc_value.nautilus_shell} to 512
set {emc_value.heart_of_the_sea} to 4096
set {emc_value.trident} to 8192
set {emc_value.cod} to 32
set {emc_value.salmon} to 64
set {emc_value.tropical_fish} to 128
set {emc_value.pufferfish} to 256
set {emc_value.fermented_spider_eye} to 84
set {emc_value.glistering_melon_slice} to 1040
set {emc_value.spider_eye} to 16
set {emc_value.gunpowder} to 64
set {emc_value.blaze_powder} to 256
set {emc_value.magma_cream} to 288
set {emc_value.brewing_stand} to 1028
set {emc_value.glass_bottle} to 4
set {emc_value.potion} to 4
set {emc_value.splash_potion} to 4
set {emc_value.lingering_potion} to 4
set {emc_value.dragon_breath} to 256
set {emc_value.experience_bottle} to 512
set {emc_value.firework_rocket} to 68
set {emc_value.firework_star} to 196
set {emc_value.writable_book} to 16
set {emc_value.book} to 4
set {emc_value.enchanted_book} to 8192
set {emc_value.name_tag} to 1024
set {emc_value.saddle} to 512
set {emc_value.music_disc_13} to 1024
set {emc_value.music_disc_cat} to 1024
set {emc_value.music_disc_blocks} to 1024
set {emc_value.music_disc_chirp} to 1024
set {emc_value.music_disc_far} to 1024
set {emc_value.music_disc_mall} to 1024
set {emc_value.music_disc_mellohi} to 1024
set {emc_value.music_disc_stal} to 1024
set {emc_value.music_disc_strad} to 1024
set {emc_value.music_disc_ward} to 1024
set {emc_value.music_disc_11} to 1024
set {emc_value.music_disc_wait} to 1024
set {emc_value.lead} to 132
set {emc_value.shears} to 512
set {emc_value.bowl} to 4
set {emc_value.fishing_rod} to 8
set {emc_value.clock} to 1028
set {emc_value.compass} to 260
set {emc_value.map} to 4
set {emc_value.filled_map} to 4
set {emc_value.carrot_on_a_stick} to 1040
set {emc_value.warped_fungus_on_a_stick} to 1040
set {emc_value.warped_fungus_on_a_stick} to 1040
set {emc_value.shield} to 260
set {emc_value.totem_of_undying} to 18432
set {emc_value.trident} to 8192
set {emc_value.crossbow} to 520
set {emc_value.spyglass} to 516
set {emc_value.recovery_compass} to 2048
set {emc_value.echo_shard} to 2048
set {emc_value.amethyst_shard} to 64
set {emc_value.bundle} to 132
set {emc_value.honey_bottle} to 68
set {emc_value.goat_horn} to 256
# Armor
set {emc_value.leather_helmet} to 192
set {emc_value.leather_chestplate} to 384
set {emc_value.leather_leggings} to 320
set {emc_value.leather_boots} to 128
set {emc_value.iron_helmet} to 768
set {emc_value.iron_chestplate} to 1536
set {emc_value.iron_leggings} to 1280
set {emc_value.iron_boots} to 512
set {emc_value.gold_helmet} to 3072
set {emc_value.gold_chestplate} to 6144
set {emc_value.gold_leggings} to 5120
set {emc_value.gold_boots} to 2048
set {emc_value.diamond_helmet} to 24576
set {emc_value.diamond_chestplate} to 49152
set {emc_value.diamond_leggings} to 40960
set {emc_value.diamond_boots} to 16384
set {emc_value.netherite_helmet} to 24832
set {emc_value.netherite_chestplate} to 49408
set {emc_value.netherite_leggings} to 41216
set {emc_value.netherite_boots} to 16640
# Tools
set {emc_value.wooden_sword} to 8
set {emc_value.wooden_shovel} to 4
set {emc_value.wooden_pickaxe} to 12
set {emc_value.wooden_axe} to 12
set {emc_value.wooden_hoe} to 8
set {emc_value.stone_sword} to 2
set {emc_value.stone_shovel} to 1
set {emc_value.stone_pickaxe} to 3
set {emc_value.stone_axe} to 3
set {emc_value.stone_hoe} to 2
set {emc_value.iron_sword} to 512
set {emc_value.iron_shovel} to 256
set {emc_value.iron_pickaxe} to 768
set {emc_value.iron_axe} to 768
set {emc_value.iron_hoe} to 512
set {emc_value.gold_sword} to 2048
set {emc_value.gold_shovel} to 1024
set {emc_value.gold_pickaxe} to 3072
set {emc_value.gold_axe} to 3072
set {emc_value.gold_hoe} to 2048
set {emc_value.diamond_sword} to 16384
set {emc_value.diamond_shovel} to 8192
set {emc_value.diamond_pickaxe} to 24576
set {emc_value.diamond_axe} to 24576
set {emc_value.diamond_hoe} to 16384
set {emc_value.netherite_sword} to 16640
set {emc_value.netherite_shovel} to 8448
set {emc_value.netherite_pickaxe} to 24832
set {emc_value.netherite_axe} to 24832
set {emc_value.netherite_hoe} to 16640
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment