Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aliases:
- redstone = 331
- reeds = 338
- magma = 213
- end_bricks = 206
- logs = 17:0
- planks = 5:0
- purpur_block = 201
- cobble = 4
- stone_brick = 98
- stone = 1
- function shopbuy(player: player, cost: integer, amount: integer, item: item):
- if balance of {_player} >= {_cost}:
- give {_player} {_amount} of {_item}
- remove {_cost} from balance of {_player}
- send "&b| &7Purchased {_amount} x {_item} for ${_cost}!" to {_p}
- function keyfire(player: player, cost: integer):
- if {crystals.%{_player}%} >= {_cost}:
- make console execute command "crate %{_player}% fire"
- remove {_cost} from {crystals.%{_player}%}
- function keyplasma(player: player, cost: integer):
- if {crystals.%{_player}%} >= {_cost}:
- make console execute command "crate %{_player}% plasma"
- remove {_cost} from {crystals.%{_player}%}
- on script load:
- create a gui with id "G2S" with virtual chest with 4 rows named "&8Nevus Shop!":
- format gui slot 20 with wheat_item named "&eFarming" with lore "&7Click to open!":
- open gui "CShop" to player
- format gui slot 24 with redstone_dust named "&eRedstone" with lore "&7Click to open!":
- open gui "RShop" to player
- format gui slot 10 with grass named "&eBlocks" with lore "&7Click to open!":
- open gui "BShop" to player
- format gui slot 16 with diamond named "&eMinerals" with lore "&7Click to open!":
- open gui "TShop" to player
- format gui slot 13 with tripwire_hook named "&eCrate Keys!" with lore "&7Click to open!":
- open gui "KShop" to player
- create a gui with id "CShop" with virtual chest with 5 rows named "&8Farmables":
- format gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 37, 38, 39, 40, 41, 42, 43, and 44 with gray glass pane named ""
- format gui slot 36 with arrow named "&cGo Back":
- open gui "G2S" to player
- create a gui with id "RShop" with virtual chest with 5 rows named "&8Redstone":
- format gui slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 37, 38, 39, 40, 41, 42, 43, and 44 with gray glass pane named ""
- format gui slot 36 with arrow named "&cGo Back":
- open gui "G2S" to player
- create a gui with id "BShop" with virtual chest with 6 rows named "&8Blocks":
- format gui slot 10 with grass named "&eGrass &7[x4]" with lore "&ePrice: &7$500":
- shopbuy(player, 500, 4, grass) # Grass
- format gui slot 11 with Dirt named "&eDirt &7[x16]" with lore "&ePrice: &7$250":
- shopbuy(player, 250, 16, Dirt) # Dirt
- format gui slot 12 with stone_brick named "&eStone Brick &7[x8]" with lore "&ePrice: &7$1000":
- shopbuy(player, 1000, 8, stone_brick) # Stone Brick
- format gui slot 13 with stone named "&eStone &7[x8]" with lore "&ePrice: &7$250":
- shopbuy(player, 250, 8, stone) # Stone
- format gui slot 14 with Cobble named "&eCobblestone &7[x16]" with lore "&ePrice: &7$50":
- shopbuy(player, 50, 16, Cobble) # Cobble
- format gui slot 15 with Brick block named "&eBricks &7[x4]" with lore "&ePrice: &7$750":
- shopbuy(player, 750, 4, brick block) # Brick
- format gui slot 16 with end_stone named "&eEndstone &7[x4]" with lore "&ePrice: &7$1000":
- shopbuy(player, 1000, 4, end_stone) # End Stone
- format gui slot 19 with sea_lantern named "&eSea Lanter &7[x1]" with lore "&ePrice: &7$100":
- shopbuy(player, 100, 1, sea_lantern) # Sea Lantern
- format gui slot 20 with obsidian named "&eObsidian &7[x1]" with lore "&ePrice: &7$1000":
- shopbuy(player, 1000, 1, obsidian) # Obsidian
- format gui slot 21 with white_wool named "&eWool &7[x4]" with lore "&ePrice: &7$250":
- shopbuy(player, 250, 4, white_wool) # White Wool
- format gui slot 22 with planks named "&eOak Planks &7[x16]" with lore "&ePrice: &7$100":
- shopbuy(player, 100, 16, planks) # Oak Planks
- format gui slot 23 with logs named "&eOak Logs &7[x16]" with lore "&ePrice: &7$400":
- shopbuy(player, 400, 16, logs) # Oak Logs
- format gui slot 24 with nether_brick block named "&eNether Brick &7[x4]" with lore "&ePrice: &7$750":
- shopbuy(player, 750, 4, nether_brick block) # Nether Brick
- format gui slot 25 with red_nether_brick named "&eRed Nether Brick &7[x4]" with lore "&ePrice: &7$750":
- shopbuy(player, 750, 4, red_nether_brick block) # Red Nether Brick
- format gui slot 28 with Magma named "&eMagma &7[x1]" with lore "&ePrice: &7$2500":
- shopbuy(player, 2500, 1, magma) # Magma
- format gui slot 29 with Quartz block named "&eQuartz Block &7[x1]" with lore "&ePrice: &7$180,000":
- shopbuy(player, 170000, 1, Quartz block) # Quartz
- format gui slot 30 with prismarine:0 named "&ePrismarine &7[x4]" with lore "&ePrice: &7$500":
- shopbuy(player, 500, 4, prismarine:0) # prismarine
- format gui slot 31 with prismarine:1 named "&ePrismarine Brick &7[x1]" with lore "&ePrice: &7$750":
- shopbuy(player, 750, 1, prismarine:1) # prismarine Brick
- format gui slot 32 with prismarine:2 named "&eDark Prismarine &7[x1]" with lore "&ePrice: &7$750":
- shopbuy(player, 750, 1, prismarine:2) # dark prismarine
- format gui slot 33 with end_bricks named "&eEnd Bricks &7[x1]" with lore "&ePrice: &7$1000":
- shopbuy(player, 1000, 1, end_bricks) # End Stone Brick
- format gui slot 34 with purpur_block named "&ePurpur Block &7[x1]" with lore "&ePrice: &7$5000":
- shopbuy(player, 5000, 1, purpur_block) # PurPur Block
- format gui slot 49 with arrow named "&cGo Back":
- open gui "G2S" to player
- create a gui with id "TShop" with virtual chest with 6 rows named "&8Minerals":
- format gui slot 10 with 263 named "&eCoal &7[x16]" with lore "&ePrice: &7$2500":
- shopbuy(player, 2500, 16, 263) # Coal
- format gui slot 11 with iron_ingot named "&eIron Ingot &7[x4]" with lore "&ePrice: &7$5,000":
- shopbuy(player, 5000, 4, iron_ingot) # Iron
- format gui slot 12 with gold_ingot named "&eGold Ingot &7[x2]" with lore "&ePrice: &7$7500":
- shopbuy(player, 7500, 2, gold_ingot) # Stone Brick
- format gui slot 13 with lapis named "&eLapis &7[x1]" with lore "&ePrice: &7$10,000":
- shopbuy(player, 10000, 1, lapis) # Lapis
- format gui slot 14 with diamond named "&eDiamond &7[x1]" with lore "&ePrice: &7$15,000":
- shopbuy(player, 15000, 1, Diamond) # Diamond
- format gui slot 15 with 406 named "&eQuartz &7[x1]" with lore "&ePrice: &7$20,000":
- shopbuy(player, 20000, 1, 406) #Quartz
- format gui slot 16 with emerald named "&eEmerald &7[x1]" with lore "&ePrice: &7$25,000":
- shopbuy(player, 25000, 1, emerald) # Emerald
- format gui slot 19 with 263 named "&eCoal &7[x32]" with lore "&ePrice: &7$5000":
- shopbuy(player, 5000, 32, 263) # Coal
- format gui slot 20 with iron_ingot named "&eIron Ingot &7[x8]" with lore "&ePrice: &7$10,000":
- shopbuy(player, 10000, 8, iron_ingot) # Iron
- format gui slot 21 with gold_ingot named "&eGold Ingot &7[x4]" with lore "&ePrice: &7$15,000":
- shopbuy(player, 15000, 4, gold_ingot) # Stone Brick
- format gui slot 22 with lapis named "&eLapis &7[x4]" with lore "&ePrice: &7$20,000":
- shopbuy(player, 20000, 4, lapis) # Lapis
- format gui slot 23 with diamond named "&eDiamond &7[x4]" with lore "&ePrice: &7$30,000":
- shopbuy(player, 30000, 4, Diamond) # Diamond
- format gui slot 24 with 406 named "&eQuartz &7[x4]" with lore "&ePrice: &7$40,000":
- shopbuy(player, 40000, 4, 406) #Quartz
- format gui slot 25 with emerald named "&eEmerald &7[x4]" with lore "&ePrice: &7$50,000":
- shopbuy(player, 50000, 4, emerald) # Emerald
- format gui slot 28 with 263 named "&eCoal &7[x64]" with lore "&ePrice: &7$10,000":
- shopbuy(player, 10000, 32, 263) # Coal
- format gui slot 29 with iron_ingot named "&eIron Ingot &7[x32]" with lore "&ePrice: &7$40,000":
- shopbuy(player, 40000, 32, iron_ingot) # Iron
- format gui slot 30 with gold_ingot named "&eGold Ingot &7[x16]" with lore "&ePrice: &7$60,000":
- shopbuy(player, 60000, 16, gold_ingot) # Stone Brick
- format gui slot 31 with lapis named "&eLapis &7[x16]" with lore "&ePrice: &7$160,000":
- shopbuy(player, 160000, 16, lapis) # Lapis
- format gui slot 32 with diamond named "&eDiamond &7[x16]" with lore "&ePrice: &7$240,000":
- shopbuy(player, 240000, 16, Diamond) # Diamond
- format gui slot 33 with 406 named "&eQuartz &7[x16]" with lore "&ePrice: &7$320,000":
- shopbuy(player, 320000, 16, 406) #Quartz
- format gui slot 34 with emerald named "&eEmerald &7[x16]" with lore "&ePrice: &7$400,000":
- shopbuy(player, 400000, 16, emerald) # Emerald
- format gui slot 49 with arrow named "&cGo Back":
- open gui "G2S" to player
- create a gui with id "KShop" with virtual chest with 3 rows named "&8Keys!":
- format gui slot 22 with arrow named "&cGo Back":
- open gui "G2S" to player
- format gui slot 12 with Tripwire_hook named "&eFire Key" with lore "&7100 Crystals":
- keyfire(player, 100)
- format gui slot 14 with Tripwire_hook named "&ePlasma Key" with lore "&7250 Crystals":
- keyplasma(player, 250)
- command /Shop:
- trigger:
- open gui "G2S" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement