Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /AutoMinerSHOP:
- trigger:
- open chest with 5 rows named "AutoMiner Shop" to player
- wait 2 ticks
- create gui slot 0 of player with light gray glass pane
- create gui slot 1 of player with light gray glass pane
- create gui slot 2 of player with light gray glass pane
- create gui slot 3 of player with light gray glass pane
- create gui slot 4 of player with light gray glass pane
- create gui slot 5 of player with light gray glass pane
- create gui slot 6 of player with light gray glass pane
- create gui slot 7 of player with light gray glass pane
- create gui slot 8 of player with light gray glass pane
- create gui slot 9 of player with light gray glass pane
- create gui slot 10 of player with coal ore named "&8&lCoal&e&l Miner" to run function Buyautominer(player, 1000, "&8&lCoal&e&l Miner")
- create gui slot 11 of player with light gray glass pane
- create gui slot 12 of player with iron ore named "&f&lIron&e&l Miner" to run function Buyautominer(player, 5000, "&f&lIron&e&l Miner")
- create gui slot 13 of player with light gray glass pane
- create gui slot 14 of player with lapis ore named "&9&lLapis&e&l Miner" to run function Buyautominer(player, 10000, "&9&lLapis&e&l Miner")
- create gui slot 15 of player with light gray glass pane
- create gui slot 16 of player with 73 named "&4&lRedstone&e&l Miner" to run function Buyautominer(player, 20000, "&4&lRedstone&e&l Miner")
- create gui slot 17 of player with light gray glass pane
- create gui slot 18 of player with light gray glass pane
- create gui slot 19 of player with light gray glass pane
- create gui slot 20 of player with light gray glass pane
- create gui slot 21 of player with light gray glass pane
- create gui slot 22 of player with light gray glass pane
- create gui slot 23 of player with light gray glass pane
- create gui slot 24 of player with light gray glass pane
- create gui slot 25 of player with light gray glass pane
- create gui slot 26 of player with light gray glass pane
- create gui slot 27 of player with light gray glass pane
- create gui slot 28 of player with light gray glass pane
- create gui slot 29 of player with gold ore named "&6&lGold&e&l Miner" to run function Buyautominer(player, 50000, "&6&lGold&e&l Miner")
- create gui slot 30 of player with light gray glass pane
- create gui slot 31 of player with diamond ore named "&b&lDiamond&e&l Miner" to run function Buyautominer(player, 100000, "&b&lDiamond&e&l Miner")
- create gui slot 32 of player with light gray glass pane
- create gui slot 33 of player with emerald ore named "&a&lEmerald&e&l Miner" to run function Buyautominer(player, 1000000, "&a&lEmerald&e&l Miner")
- create gui slot 34 of player with light gray glass pane
- create gui slot 35 of player with light gray glass pane
- create gui slot 36 of player with light gray glass pane
- create gui slot 37 of player with light gray glass pane
- create gui slot 38 of player with light gray glass pane
- create gui slot 39 of player with light gray glass pane
- create gui slot 40 of player with light gray glass pane
- create gui slot 41 of player with light gray glass pane
- create gui slot 42 of player with light gray glass pane
- create gui slot 43 of player with light gray glass pane
- create gui slot 44 of player with light gray glass pane
- function Buyautominer(p: Player, c: integer, l: text):
- if {_p}'s balance >= {_c}:
- remove {_c} from {_p}'s balance
- give {_p} 1 chest with lore "%{_l}%"
- else:
- message "You cannot afford this item!" to {_p}
Advertisement
Add Comment
Please, Sign In to add comment