Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aliases:
- piston = minecraft:piston
- sticky piston = minecraft:sticky_piston
- redstone repeater = minecraft:redstone_repeater
- function playSound(sound: string, player: player):
- play sound {_sound} at {_player} for {_player}
- function setShop(slot: integer, player: player, amount: integer, item: item, name: string, lore: strings, sell: number, buy: number):
- set {_uuid} to uuid of {_player}
- set {_buyMoney} to split("%{_buy} * {_amount}%")
- set {_sellAmount} to split("%{_sell}%")
- add "&aPrice: " and "&a* &fBuy Price (x%{_amount}%): &a$%{_buyMoney}%" to {_lore::*}
- if {_sell} = 0:
- add "&a* &fSell Price (ea): &cNot Sellable" and " " to {_lore::*}
- if {_sell} >= 1:
- add "&a* &fSell Price (ea): &c$%{_sellAmount}%" and " " to {_lore::*}
- if {_sell} >= 1:
- format gui slot {_slot} of {_player} with {_amount} of {_item} named {_name} with lore {_lore::*} to run with "right" click:
- sell({_player}, {_item}, {_sell})
- format gui slot {_slot} of {_player} with {_amount} of {_item} named {_name} with lore {_lore::*} to run with "left" click:
- set {_money} to {_buy} * {_amount}
- if {_player} has enough space for {_amount} of {_item}:
- if {balance::%{_uuid}%} >= {_money}:
- give {_player} {_amount} of {_item}
- remove {_money} from {balance::%{_uuid}%}
- set {_show} to split("%{_money}%")
- send "&a&lShop &8➟ &7You bought items that costed &a$%{_show}%"
- playSound("ENTITY_VILLAGER_YES", player)
- else:
- send "&a&lShop &8➟ &7You do not have enough money to buy this item" to {_player}
- playSound("ENTITY_VILLAGER_NO", player)
- else:
- send "&a&lShop &8➟ &7You do not have enough space to buy this item" to {_player}
- playSound("ENTITY_VILLAGER_NO", player)
- function setSpawnerShop(slot: integer, player: player, amount: integer, item: item, type: text, name: string, lore: strings, buy: number):
- set {_uuid} to uuid of {_player}
- set {_buyMoney} to split("%{_buy} * {_amount}%")
- add "&aPrice: " and "&a* &fBuy Price (x%{_amount}%): &a$%{_buyMoney}%" to {_lore::*}
- add "&a* &fSell Price (ea): &cNot Sellable" and " " to {_lore::*}
- format gui slot {_slot} of {_player} with {_amount} of {_item} named {_name} with lore {_lore::*} to run with "left" click:
- set {_money} to {_buy} * {_amount}
- if {_player} has enough space for {_amount} of {_item}:
- if {balance::%{_uuid}%} >= {_money}:
- remove {_money} from {balance::%{_uuid}%}
- set {_show} to split("%{_money}%")
- console command "spawner give %{_player}% %{_type}% %{_amount}%"
- send "&a&lShop &8➟ &7You bought items that costed &a$%{_show}%"
- playSound("ENTITY_VILLAGER_YES", player)
- else:
- send "&a&lShop &8➟ &7You do not have enough money to buy this item" to {_player}
- playSound("ENTITY_VILLAGER_NO", player)
- else:
- send "&a&lShop &8➟ &7You do not have enough space to buy this item" to {_player}
- playSound("ENTITY_VILLAGER_NO", player)
- command /shop:
- trigger:
- shop(player)
- function sell(p: player, i: item, n: number):
- set {_uuid} to uuid of {_p}
- set {_count} to amount of {_i} in {_p}'s inventory
- set {_sell} to {_count} * {_n}
- remove all {_i} from {_p}'s inventory
- set {_beforeBooster} to {_sell}
- set {_boosterAmount} to {_sell} * {booster::%{_uuid}%}
- add {_boosterAmount} to {_sell}
- add {_sell} to {balance::%{_uuid}%}
- set {_beforeBooster} to split("%{_beforeBooster}%")
- set {_boosterAmount} to split("%{_boosterAmount}%")
- if {_sell} = 0:
- send "&a&lShop &8➟ &7You have no items to sell" to {_p}
- playSound("ENTITY_VILLAGER_NO", {_p})
- else:
- send " " to {_p}
- send "&a&lShop &8➟ &7You earned &a$%{_beforeBooster}%" to {_p}
- send "&a&lShop &8 &7Your booster gave you an extra &a$%{_boosterAmount}% &7(&ex%{booster::%{_uuid}%}%&7)" to {_p}
- send " " to {_p}
- function shop(p: player):
- set {_n} to 0
- set {_n1} to 1
- open virtual chest inventory with size 5 named "&7The Shop" to {_p}
- loop 100 times:
- make gui slot {_n} of {_p} with white stained glass pane named "&7" to do nothing
- add 2 to {_n}
- make gui slot {_n1} of {_p} with light green stained glass pane named "&7" to do nothing
- add 2 to {_n1}
- make gui slot 10 of {_p} with grass named "&a&lBlocks Section" lored "||&7(Click To View)" to run:
- open virtual chest inventory with size 1 named "&7View Blocks Amount" to {_p}
- make gui slot 1 of {_p} with grass named "&7View in x1" to run:
- blocks({_p}, 1)
- make gui slot 3 of {_p} with 16 of grass named "&7View in x16" to run:
- blocks({_p}, 16)
- make gui slot 5 of {_p} with 32 of grass named "&7View in x32" to run:
- blocks({_p}, 32)
- make gui slot 7 of {_p} with 64 of grass named "&7View in x64" to run:
- blocks({_p}, 64)
- make gui slot 12 of {_p} with redstone named "&c&lRedstone Section" lored "||&7(Click To View)" to run:
- open virtual chest inventory with size 1 named "&7View Blocks Amount" to {_p}
- make gui slot 1 of {_p} with redstone named "&7View in x1" to run:
- redstone({_p}, 1)
- make gui slot 3 of {_p} with 16 of redstone named "&7View in x16" to run:
- redstone({_p}, 16)
- make gui slot 5 of {_p} with 32 of redstone named "&7View in x32" to run:
- redstone({_p}, 32)
- make gui slot 7 of {_p} with 64 of redstone named "&7View in x64" to run:
- redstone({_p}, 64)
- make gui slot 14 of {_p} with diamond named "&b&lOres Section" lored "||&7(Click To View)" to run:
- open virtual chest inventory with size 1 named "&7View Blocks Amount" to {_p}
- make gui slot 1 of {_p} with diamond named "&7View in x1" to run:
- ores({_p}, 1)
- make gui slot 3 of {_p} with 16 of diamond named "&7View in x16" to run:
- ores({_p}, 16)
- make gui slot 5 of {_p} with 32 of diamond named "&7View in x32" to run:
- ores({_p}, 32)
- make gui slot 7 of {_p} with 64 of diamond named "&7View in x64" to run:
- ores({_p}, 64)
- make gui slot 16 of {_p} with glass block named "&c&lC&6&lo&e&ll&a&lo&b&lr &c&lB&6&ll&e&lo&a&lc&b&lk&d&ls &7&lSection" lored "||&7(Click To View)" to run:
- open virtual chest inventory with size 1 named "&7View Blocks Amount" to {_p}
- make gui slot 1 of {_p} with glass block named "&7View in x1" to run:
- color({_p}, 1)
- make gui slot 3 of {_p} with 16 of glass block named "&7View in x16" to run:
- color({_p}, 16)
- make gui slot 5 of {_p} with 32 of glass block named "&7View in x32" to run:
- color({_p}, 32)
- make gui slot 7 of {_p} with 64 of glass block named "&7View in x64" to run:
- color({_p}, 64)
- make gui slot 29 of {_p} with seeds named "&a&lFarming Section" lored "||&7(Click To View)" to run:
- open virtual chest inventory with size 1 named "&7View Blocks Amount" to {_p}
- make gui slot 1 of {_p} with seeds named "&7View in x1" to run:
- farming({_p}, 1)
- make gui slot 3 of {_p} with 16 of seeds named "&7View in x16" to run:
- farming({_p}, 16)
- make gui slot 5 of {_p} with 32 of seeds named "&7View in x32" to run:
- farming({_p}, 32)
- make gui slot 7 of {_p} with 64 of seeds named "&7View in x64" to run:
- farming({_p}, 64)
- make gui slot 33 of {_p} with mob spawner named "&6&lSpawner Section" lored "||&7(Click To View)" to run:
- open virtual chest inventory with size 1 named "&7View Blocks Amount" to {_p}
- make gui slot 1 of {_p} with mob spawner named "&7View in x1" to run:
- spawner({_p}, 1)
- make gui slot 3 of {_p} with 16 of mob spawner named "&7View in x16" to run:
- spawner({_p}, 16)
- make gui slot 5 of {_p} with 32 of mob spawner named "&7View in x32" to run:
- spawner({_p}, 32)
- make gui slot 7 of {_p} with 64 of mob spawner named "&7View in x64" to run:
- spawner({_p}, 64)
- make gui slot 31 of {_p} with gunpowder named "&8&lMob Drops Section" lored "||&7(Click To View)" to run:
- open virtual chest inventory with size 1 named "&7View Blocks Amount" to {_p}
- make gui slot 1 of {_p} with gunpowder named "&7View in x1" to run:
- mobdrops({_p}, 1)
- make gui slot 3 of {_p} with 16 of gunpowder named "&7View in x16" to run:
- mobdrops({_p}, 16)
- make gui slot 5 of {_p} with 32 of gunpowder named "&7View in x32" to run:
- mobdrops({_p}, 32)
- make gui slot 7 of {_p} with 64 of gunpowder named "&7View in x64" to run:
- mobdrops({_p}, 64)
- function mobdrops(p: player, n: number):
- open virtual chest inventory with size 6 named "&7The Shop &8| &fMob Drops" to {_p}
- set {_x} to 0
- loop 54 times:
- make gui slot {_x} of {_p} with light green glass pane named "&7" to do nothing
- add 1 to {_x}
- make gui slot 49 of {_p} with arrow named "&7Back Page" to run:
- shop({_p})
- #! setShop(slot, player, amount, item, name, lore, sell price, buy price) !#
- setShop(10, {_p}, {_n}, blaze rod, "", "", 10, 100)
- setShop(11, {_p}, {_n}, ender pearl, "", "", 10, 100)
- setShop(12, {_p}, {_n}, gunpowder, "", "", 10, 100)
- setShop(13, {_p}, {_n}, blaze powder, "", "", 10, 100)
- setShop(14, {_p}, {_n}, ghast tear, "", "", 10, 100)
- setShop(15, {_p}, {_n}, feather, "", "", 10, 100)
- setShop(16, {_p}, {_n}, dye, "", "", 10, 100)
- setShop(19, {_p}, {_n}, bone, "", "", 10, 100)
- setShop(20, {_p}, {_n}, slimeball, "", "", 10, 100)
- setShop(21, {_p}, {_n}, spider eye, "", "", 10, 100)
- setShop(22, {_p}, {_n}, string, "", "", 10, 100)
- setShop(23, {_p}, {_n}, gold nugget, "", "", 10, 100)
- setShop(24, {_p}, {_n}, rabbit hide, "", "", 10, 100)
- setShop(25, {_p}, {_n}, rabbit foot, "", "", 10, 100)
- setShop(28, {_p}, {_n}, arrow, "", "", 10, 100)
- setShop(29, {_p}, {_n}, magma cream, "", "", 10, 100)
- setShop(30, {_p}, {_n}, rotten flesh, "", "", 10, 100)
- setShop(31, {_p}, {_n}, leather, "", "", 10, 100)
- setShop(32, {_p}, {_n}, nether star, "", "", 10, 100)
- setShop(33, {_p}, {_n}, wither skeleton skull, "", "", 10, 100)
- function spawner(p: player, n: number):
- open virtual chest inventory with size 6 named "&7The Shop &f(Spawners)" to {_p}
- set {_x} to 0
- loop 54 times:
- make gui slot {_x} of {_p} with light green glass pane named "&7" to do nothing
- add 1 to {_x}
- make gui slot 49 of {_p} with arrow named "&7Back Page" to run:
- shop({_p})
- setSpawnerShop(10, {_p}, {_n}, mob spawner, "zombie", "&c&lZombie Spawner", "", 25000)
- setSpawnerShop(11, {_p}, {_n}, mob spawner, "skeleton", "&c&lSkeleton Spawner", "", 25000)
- setSpawnerShop(12, {_p}, {_n}, mob spawner, "spider", "&c&lSpider Spawner", "", 25000)
- setSpawnerShop(13, {_p}, {_n}, mob spawner, "endermen", "&c&lSpider Spawner", "", 25000)
- setSpawnerShop(14, {_p}, {_n}, mob spawner, "blaze", "&c&lSpider Spawner", "", 25000)
- setSpawnerShop(15, {_p}, {_n}, mob spawner, "creeper", "&c&lSpider Spawner", "", 25000)
- setSpawnerShop(16, {_p}, {_n}, mob spawner, "rabbit", "&c&lSpider Spawner", "", 25000)
- setSpawnerShop(19, {_p}, {_n}, mob spawner, "chicken", "&c&lSpider Spawner", "", 25000)
- setSpawnerShop(20, {_p}, {_n}, mob spawner, "cow", "&c&lSpider Spawner", "", 25000)
- setSpawnerShop(21, {_p}, {_n}, mob spawner, "ghast", "&c&lGhast Spawner", "", 25000)
- setSpawnerShop(22, {_p}, {_n}, mob spawner, "ghast", "&c&lGhast Spawner", "", 25000)
- setSpawnerShop(23, {_p}, {_n}, mob spawner, "pigman", "&c&lPigman Spawner", "", 25000)
- setSpawnerShop(24, {_p}, {_n}, mob spawner, "magma", "&c&lMagma Cube Spawner", "", 25000)
- setSpawnerShop(25, {_p}, {_n}, mob spawner, "slime", "&cSlime Spawner", "", 25000)
- function farming(p: player, n: number):
- open virtual chest inventory with size 6 named "&7The Shop &f(Farming)" to {_p}
- set {_x} to 0
- loop 54 times:
- make gui slot {_x} of {_p} with light green glass pane named "&7" to do nothing
- add 1 to {_x}
- make gui slot 49 of {_p} with arrow named "&7Back Page" to run:
- shop({_p})
- setShop(10, {_p}, {_n}, oak sapling, "", "", 15, 450)
- setShop(11, {_p}, {_n}, spruce sapling, "", "", 15, 450)
- setShop(12, {_p}, {_n}, birch sapling, "", "", 15, 450)
- setShop(13, {_p}, {_n}, jungle sapling, "", "", 15, 450)
- setShop(14, {_p}, {_n}, acacia sapling, "", "", 15, 450)
- setShop(15, {_p}, {_n}, dark oak sapling, "", "", 15, 450)
- setShop(16, {_p}, {_n}, seeds, "", "", 2, 35)
- setShop(19, {_p}, {_n}, pumpkin seeds, "", (" ", "&7This requires the &6Pumpkin Recipe &7to plant" and " "), 3, 500)
- setShop(20, {_p}, {_n}, melon seeds, "", (" ", "&7This requires the &6Melon Recipe &7to plant" and " "), 3, 500)
- setShop(21, {_p}, {_n}, pumpkin, "", "", 9, 750)
- setShop(22, {_p}, {_n}, sugar cane, "", (" ", "&7This requires the &6Sugarcane Recipe &7to plant" and " "), 12, 1250)
- setShop(23, {_p}, {_n}, cocoa beans, "", "", 5, 250)
- setShop(24, {_p}, {_n}, cactus, "", "&7This requires the &6Cactus Recipe &7to plant", 3, 750)
- setShop(25, {_p}, {_n}, nether wart item, "", (" ", "&7This requires the &6Nether Wart Recipe &7to plant" and " "), 125, 5000)
- setShop(28, {_p}, {_n}, vines, "", "", 0, 35)
- setShop(29, {_p}, {_n}, brown mushroom, "", "", 0, 50)
- setShop(30, {_p}, {_n}, red mushroom, "", "", 0, 50)
- setShop(31, {_p}, {_n}, carrot, "", "", 4, 350)
- setShop(32, {_p}, {_n}, water bucket, "", "", 0, 125)
- setShop(33, {_p}, {_n}, lava bucket, "", "", 0, 8000)
- setShop(34, {_p}, {_n}, melon, "", "", 5, 125)
- function color(p: player, n: number):
- open virtual chest inventory with size 6 named "&7The Shop &f(Color)" to {_p}
- set {_x} to 0
- loop 54 times:
- make gui slot {_x} of {_p} with light green glass pane named "&7" to do nothing
- add 1 to {_x}
- make gui slot 49 of {_p} with arrow named "&7Back Page" to run:
- shop({_p})
- make gui slot 53 of {_p} with bone named "&7Next Page &a⟶" to run:
- color2({_p}, {_n})
- set {_i::*} to glass, white glass, orange glass, magenta glass, light blue glass, yellow glass and light green glass
- set {_s} to 10
- loop {_i::*}:
- setShop({_s}, {_p}, {_n}, loop-value, "", "", 0, 35)
- add 1 to {_s}
- set {_i2::*} to pink glass, gray glass, light gray glass, cyan glass, purple glass, blue glass and brown glass #green glass, red glass and black glass
- set {_s2} to 19
- loop {_i2::*}:
- setShop({_s2}, {_p}, {_n}, loop-value, "", "", 0, 35)
- add 1 to {_s2}
- set {_i3::*} to green glass, red glass and black glass
- set {_s3} to 28
- loop {_i3::*}:
- setShop({_s3}, {_p}, {_n}, loop-value, "", "", 0, 35)
- add 1 to {_s3}
- function color2(p: player, n: number):
- open virtual chest inventory with size 6 named "&7The Shop &f(Color)" to {_p}
- set {_x} to 0
- loop 54 times:
- make gui slot {_x} of {_p} with light green glass pane named "&7" to do nothing
- add 1 to {_x}
- make gui slot 49 of {_p} with arrow named "&c⟵ &7Back Page" to run:
- color({_p}, {_n})
- make gui slot 53 of {_p} with bone named "&7Next Page &a⟶" to run:
- color3({_p}, {_n})
- set {_i::*} to glass pane, white stained glass pane, orange stained glass pane, magenta stained glass pane, light blue stained glass pane, yellow stained glass pane and light green stained glass pane
- set {_s} to 10
- loop {_i::*}:
- setShop({_s}, {_p}, {_n}, loop-value, "", "", 0, 35)
- add 1 to {_s}
- set {_i2::*} to pink stained glass pane, gray stained glass pane, light gray stained glass pane, cyan stained glass pane, purple stained glass pane, blue stained glass pane and brown stained glass pane
- set {_s2} to 19
- loop {_i2::*}:
- setShop({_s2}, {_p}, {_n}, loop-value, "", "", 0, 35)
- add 1 to {_s2}
- set {_i3::*} to green stained glass pane, red stained glass pane and black stained glass pane
- set {_s3} to 28
- loop {_i3::*}:
- setShop({_s3}, {_p}, {_n}, loop-value, "", "", 0, 35)
- add 1 to {_s3}
- function color3(p: player, n: number):
- open virtual chest inventory with size 6 named "&7The Shop &f(Color)" to {_p}
- set {_x} to 0
- loop 54 times:
- make gui slot {_x} of {_p} with light green glass pane named "&7" to do nothing
- add 1 to {_x}
- make gui slot 49 of {_p} with arrow named "&c⟵ &7Back Page" to run:
- color2({_p}, {_n})
- set {_i::*} to white wool, orange wool, magenta wool, light blue wool, yellow wool, light green wool and pink wool
- set {_s} to 10
- loop {_i::*}:
- setShop({_s}, {_p}, {_n}, loop-value, "", "", 0, 35)
- add 1 to {_s}
- set {_i2::*} to gray wool, light gray wool, cyan wool, purple wool, blue wool, brown wool and green wool
- set {_s2} to 19
- loop {_i2::*}:
- setShop({_s2}, {_p}, {_n}, loop-value, "", "", 0, 35)
- add 1 to {_s2}
- set {_i3::*} to red wool and black wool
- set {_s3} to 28
- loop {_i3::*}:
- setShop({_s3}, {_p}, {_n}, loop-value, "", "", 0, 35)
- add 1 to {_s3}
- function ores(p: player, n: number):
- open virtual chest inventory with size 6 named "&7The Shop &f(Ores)" to {_p}
- set {_x} to 0
- loop 54 times:
- make gui slot {_x} of {_p} with light green glass pane named "&7" to do nothing
- add 1 to {_x}
- make gui slot 49 of {_p} with arrow named "&7Back Page" to run:
- shop({_p})
- setShop(10, {_p}, {_n}, iron ingot, "", "", 15, 200)
- setShop(11, {_p}, {_n}, gold ingot, "", "", 25, 350)
- setShop(12, {_p}, {_n}, emerald, "", "", 250, 1250)
- setShop(13, {_p}, {_n}, diamond, "", "", 500, 2500)
- setShop(14, {_p}, {_n}, coal, "", "", 0, 25)
- setShop(15, {_p}, {_n}, redstone, "", "", 0, 55)
- setShop(16, {_p}, {_n}, lapis lazuli, "", "", 0, 50)
- setShop(19, {_p}, {_n}, iron block, "", "", 135, 1800)
- setShop(20, {_p}, {_n}, gold block, "", "", 225, 3150)
- setShop(21, {_p}, {_n}, emerald block, "", "", 2250, 11250)
- setShop(22, {_p}, {_n}, diamond block, "", "", 4500, 22500)
- setShop(23, {_p}, {_n}, coal block, "", "", 0, 225)
- setShop(24, {_p}, {_n}, redstone block, "", "", 0, 375)
- setShop(25, {_p}, {_n}, lapis lazuli block, "", "", 0, 450)
- function redstone(p: player, n: number):
- open virtual chest inventory with size 6 named "&7The Shop &f(Redstone)" to {_p}
- set {_x} to 0
- loop 54 times:
- make gui slot {_x} of {_p} with light green glass pane named "&7" to do nothing
- add 1 to {_x}
- make gui slot 49 of {_p} with arrow named "&7Back Page" to run:
- shop({_p})
- setShop(10, {_p}, {_n}, dropper, "", "", 0, 125)
- setShop(11, {_p}, {_n}, redstone repeater, "", "", 0, 75)
- setShop(12, {_p}, {_n}, redstone comparator, "", "", 0, 75)
- setShop(13, {_p}, {_n}, piston, "", "", 0, 125)
- setShop(14, {_p}, {_n}, sticky piston, "", "", 0, 125)
- setShop(15, {_p}, {_n}, lever, "", "", 0, 50)
- setShop(16, {_p}, {_n}, redstone torch, "", "", 0, 15)
- setShop(19, {_p}, {_n}, dispenser, "", "", 0, 75)
- setShop(20, {_p}, {_n}, stone button, "", "", 0, 25)
- setShop(21, {_p}, {_n}, wooden button, "", "", 0, 25)
- setShop(22, {_p}, {_n}, stone pressure plate, "", "", 0, 75)
- setShop(23, {_p}, {_n}, wooden pressure plate, "", "", 0, 50)
- setShop(24, {_p}, {_n}, heavy weighted pressure plate, "", "", 0, 75)
- setShop(25, {_p}, {_n}, light weighted pressure plate, "", "", 0, 75)
- setShop(28, {_p}, {_n}, observer, "", "", 0, 125)
- setShop(29, {_p}, {_n}, tripwire hook, "", "", 0, 75)
- setShop(30, {_p}, {_n}, redstone lamp, "", "", 0, 100)
- setShop(31, {_p}, {_n}, redstone block, "", "", 0, 375)
- setShop(32, {_p}, {_n}, wooden trapdoor, "", "", 0, 50)
- setShop(33, {_p}, {_n}, redstone, "", "", 0, 55)
- setShop(34, {_p}, {_n}, hopper, "", "", 0, 350)
- function blocks(p: player, n: number):
- open virtual chest inventory with size 6 named "&7The Shop &f(Blocks)" to {_p}
- set {_x} to 0
- loop 54 times:
- make gui slot {_x} of {_p} with light green glass pane named "&7" to do nothing
- add 1 to {_x}
- make gui slot 49 of {_p} with arrow named "&7Back Page" to run:
- shop({_p})
- make gui slot 53 of {_p} with bone named "&7Next Page &a⟶" to run:
- blocks2({_p}, {_n})
- #! setShop(slot, player, amount, item, name, lore, sell price, buy price) !#
- setShop(10, {_p}, {_n}, grass, "", "", 0, 10)
- setShop(11, {_p}, {_n}, dirt, "", "", 0, 5)
- setShop(12, {_p}, {_n}, cobble, "", "", 1, 10)
- setShop(13, {_p}, {_n}, stone, "", "", 2, 15)
- setShop(14, {_p}, {_n}, granite, "", "", 0, 15)
- setShop(15, {_p}, {_n}, podzol, "", "", 0, 15)
- setShop(16, {_p}, {_n}, andesite, "", "", 0, 15)
- setShop(19, {_p}, {_n}, oak log, "", "", 0, 25)
- setShop(20, {_p}, {_n}, spruce log, "", "", 0, 25)
- setShop(21, {_p}, {_n}, birch log, "", "", 0, 25)
- setShop(22, {_p}, {_n}, jungle log, "", "", 0, 25)
- setShop(23, {_p}, {_n}, sand, "", "", 0, 50)
- setShop(24, {_p}, {_n}, red sand, "", "", 0, 35)
- setShop(25, {_p}, {_n}, gravel, "", "", 0, 25)
- setShop(22, {_p}, {_n}, glowstone, "", "", 0, 50)
- setShop(23, {_p}, {_n}, quartz block, "", "", 0, 35)
- setShop(24, {_p}, {_n}, chiseled quartz block, "", "", 0, 40)
- setShop(25, {_p}, {_n}, clay block, "", "", 0, 25)
- setShop(28, {_p}, {_n}, brick block, "", "", 0, 65)
- setShop(29, {_p}, {_n}, prismarine block, "", "", 0, 55)
- setShop(30, {_p}, {_n}, prismarine brick, "", "", 0, 55)
- setShop(31, {_p}, {_n}, trapped chest, "", "", 0, 75)
- setShop(32, {_p}, {_n}, ender chest, "", "", 0, 125)
- setShop(33, {_p}, {_n}, brewing stand, "", "", 0, 150)
- setShop(34, {_p}, {_n}, cauldron, "", "", 0, 75)
- function blocks2(p: player, n: number):
- open virtual chest inventory with size 6 named "&7The Shop &f(Blocks)" to {_p}
- set {_x} to 0
- loop 54 times:
- make gui slot {_x} of {_p} with light green glass pane named "&7" to do nothing
- add 1 to {_x}
- make gui slot 49 of {_p} with arrow named "&c⟵ &7Back Page" to run:
- blocks({_p}, {_n})
- setShop(10, {_p}, {_n}, cobweb, "", "", 0, 55)
- setShop(11, {_p}, {_n}, lily pad, "", "", 0, 35)
- setShop(12, {_p}, {_n}, soul sand, "", "", 0, 55)
- setShop(13, {_p}, {_n}, clay block, "", "", 0, 40)
- setShop(14, {_p}, {_n}, endstone, "", "", 0, 35)
- setShop(15, {_p}, {_n}, sea lantern, "", "", 0, 40)
- setShop(16, {_p}, {_n}, snow block, "", "", 0, 30)
- setShop(19, {_p}, {_n}, ice block, "", "", 0, 50)
- setShop(20, {_p}, {_n}, packed ice, "", "", 0, 75)
- setShop(21, {_p}, {_n}, netherrack, "", "", 0, 35)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement