Guest User

Untitled

a guest
Aug 16th, 2017
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.52 KB | None | 0 0
  1. command /AutoMinerSHOP:
  2. trigger:
  3. open chest with 5 rows named "AutoMiner Shop" to player
  4. wait 2 ticks
  5. create gui slot 0 of player with light gray glass pane
  6. create gui slot 1 of player with light gray glass pane
  7. create gui slot 2 of player with light gray glass pane
  8. create gui slot 3 of player with light gray glass pane
  9. create gui slot 4 of player with light gray glass pane
  10. create gui slot 5 of player with light gray glass pane
  11. create gui slot 6 of player with light gray glass pane
  12. create gui slot 7 of player with light gray glass pane
  13. create gui slot 8 of player with light gray glass pane
  14. create gui slot 9 of player with light gray glass pane
  15. 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")
  16. create gui slot 11 of player with light gray glass pane
  17. 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")
  18. create gui slot 13 of player with light gray glass pane
  19. 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")
  20. create gui slot 15 of player with light gray glass pane
  21. 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")
  22. create gui slot 17 of player with light gray glass pane
  23. create gui slot 18 of player with light gray glass pane
  24. create gui slot 19 of player with light gray glass pane
  25. create gui slot 20 of player with light gray glass pane
  26. create gui slot 21 of player with light gray glass pane
  27. create gui slot 22 of player with light gray glass pane
  28. create gui slot 23 of player with light gray glass pane
  29. create gui slot 24 of player with light gray glass pane
  30. create gui slot 25 of player with light gray glass pane
  31. create gui slot 26 of player with light gray glass pane
  32. create gui slot 27 of player with light gray glass pane
  33. create gui slot 28 of player with light gray glass pane
  34. 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")
  35. create gui slot 30 of player with light gray glass pane
  36. 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")
  37. create gui slot 32 of player with light gray glass pane
  38. 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")
  39. create gui slot 34 of player with light gray glass pane
  40. create gui slot 35 of player with light gray glass pane
  41. create gui slot 36 of player with light gray glass pane
  42. create gui slot 37 of player with light gray glass pane
  43. create gui slot 38 of player with light gray glass pane
  44. create gui slot 39 of player with light gray glass pane
  45. create gui slot 40 of player with light gray glass pane
  46. create gui slot 41 of player with light gray glass pane
  47. create gui slot 42 of player with light gray glass pane
  48. create gui slot 43 of player with light gray glass pane
  49. create gui slot 44 of player with light gray glass pane
  50.  
  51.  
  52. function Buyautominer(p: Player, c: integer, l: text):
  53. if {_p}'s balance >= {_c}:
  54. remove {_c} from {_p}'s balance
  55. give {_p} 1 chest with lore "%{_l}%"
  56. else:
  57. message "You cannot afford this item!" to {_p}
Advertisement
Add Comment
Please, Sign In to add comment