Advertisement
Cool_Colton

Untitled

Aug 11th, 2020
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.10 KB | None | 0 0
  1. on join:
  2. set metadata tag "1 life armor" of player to chest inventory with 4 rows named "&b1 Life &aArmor"
  3. set slot (integers from 10 to 25) of metadata tag "1 life armor" of player to light gray stained glass pane named " "
  4. set slot 17, and 18 of metadata tag "1 life armor" of player to black stained glass pane named " "
  5. set slot (integers from 0 to 9) of metadata tag "1 life armor" of player to black stained glass pane named " "
  6. set slot (integers from 26 to 36) of metadata tag "1 life armor" of player to black stained glass pane named " "
  7. set metadata tag "1 life sword" of player to chest inventory with 3 rows named "&b1 Life &aSwords"
  8. set slot (integers from 10 to 16) of metadata tag "1 life sword" of player to light gray stained glass pane named " "
  9. set slot (integers from 0 to 9) of metadata tag "1 life sword" of player to black stained glass pane named " "
  10. set slot (integers from 17 to 27) of metadata tag "1 life sword" of player to black stained glass pane named " "
  11. set metadata tag "Perm Armor" of player to chest inventory with 4 rows named "&bPermanent &aArmor"
  12. set metadata tag "Shop" of player to chest inventory with 5 rows named "&7Shop"
  13. set metadata tag "Armor" of player to chest inventory with 5 rows named "&aArmor Shop"
  14. set metadata tag "Sword" of player to chest inventory with 5 rows named "&aSword Shop"
  15. set metadata tag "Misc" of player to chest inventory with 5 rows named "&aMisc Shop"
  16. set slot 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, and 34 of metadata tag "Perm Armor" of player to light gray stained glass pane named " "
  17. set slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 37, 38, 39, 40, 41, 42, 43, and 44 of metadata tag "Perm Armor" of player to black stained glass pane named " "
  18. set slot 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, and 34 of metadata tag "Shop" of player to light gray stained glass pane named " "
  19. set slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 37, 38, 39, 40, 41, 42, 43, and 44 of metadata tag "Shop" of player to black stained glass pane named " "
  20. set slot 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, and 34 of metadata tag "Armor" of player to light gray stained glass pane named " "
  21. set slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 37, 38, 39, 40, 41, 42, 43, and 44 of metadata tag "Armor" of player to black stained glass pane named " "
  22. set slot 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, and 34 of metadata tag "Sword" of player to light gray stained glass pane named " "
  23. set slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 37, 38, 39, 40, 41, 42, 43, and 44 of metadata tag "Sword" of player to black stained glass pane named " "
  24. set slot 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24, 25, 28, 29, 30, 31, 32, 33, and 34 of metadata tag "Misc" of player to light gray stained glass pane named " "
  25. set slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 35, 36, 37, 38, 39, 40, 41, 42, 43, and 44 of metadata tag "Misc" of player to black stained glass pane named " "
  26.  
  27. # Main Shop
  28.  
  29. set slot 20 of metadata tag "Shop" of player to diamond chestplate named "&aArmor"
  30. set slot 22 of metadata tag "Shop" of player to diamond sword named "&bSwords"
  31. set slot 24 of metadata tag "Shop" of player to ender pearl named "&3Misc"
  32.  
  33. # Armor
  34.  
  35. set slot 21 of metadata tag "Armor" of player to diamond chestplate named "&41 life &aArmor"
  36. set {_d} to diamond chestplate
  37. enchant {_d} with protection 2
  38. set slot 23 of metadata tag "Armor" of player to {_d} named "&4Permanent &aArmor"
  39.  
  40. set {_b} to iron chestplate
  41. enchant {_b} with protection 1
  42. set slot 11 of metadata tag "1 life armor" of player to {_b} named "&4Protection &b1 &fIron chestplate &7(100)"
  43. set slot 13 of metadata tag "1 life armor" of player to {_b} named "&4Protection &b2 &fIron chestplate &7(200)"
  44. set slot 15 of metadata tag "1 life armor" of player to {_b} named "&4Protection &b3 &fIron chestplate &7(400)"
  45. enchant {_d} with protection 1
  46. set slot 21 of metadata tag "1 life armor" of player to {_d} named "&4Protection &b1 &3Diamond chestplate &7(750)"
  47. set slot 23 of metadata tag "1 life armor" of player to {_d} named "&4Protection &b2 &3Diamond chestplate &7(1000)"
  48.  
  49.  
  50. # Swords
  51.  
  52. set slot
  53.  
  54. # Misc
  55.  
  56. on disconnect:
  57. delete metadata tag "Shop" of player
  58.  
  59.  
  60. on inventory click:
  61. if event-inventory = (metadata tag "Shop" of player):
  62. cancel event
  63. if event-item is diamond chestplate named "&aArmor":
  64. open metadata tag "Armor" of player to player
  65. else if event-item is diamond sword named "&bSwords":
  66. open metadata tag "Sword" of player to player
  67. else if event-item is ender pearl named "&3Misc":
  68. open metadata tag "Misc" of player to player
  69. else if event-inventory = (metadata tag "Armor" of player):
  70. cancel event
  71. set {_d} to diamond chestplate
  72. enchant {_d} with protection 2
  73. if event-item is diamond chestplate named "&41 life &aArmor":
  74. open metadata tag "1 life armor" of player to player
  75. if event-item is {_d} named "&4Permanent &aArmor":
  76. else if event-inventory = (metadata tag "1 life armor" of player):
  77. set {_b} to iron chestplate
  78. enchant {_b} with protection 1
  79. set {_d} to diamond chestplate
  80. enchant {_d} with protection 1
  81. if event-item is {_b} named "&4Protection &b1 &fIron chestplate &7(100)":
  82. if {coins::%player's uuid%} is more than 100:
  83.  
  84. else if event-item is {_b} named "&4Protection &b2 &fIron chestplate &7(200)":
  85. if {coins::%player's uuid%} is more than 200:
  86.  
  87. else if event-item is {_b} named "&4Protection &b3 &fIron chestplate &7(400)":
  88. if {coins::%player's uuid%} is more than 400:
  89.  
  90. else if event-item is {_d} named "&4Protection &b1 &3Diamond chestplate &7(750)":
  91. if {coins::%player's uuid%} is more than 750:
  92.  
  93. else if event-item is {_d} named "&4Protection &b2 &3Diamond chestplate &7(1000)":
  94. if {coins::%player's uuid%} is more than 1000:
  95.  
  96.  
  97. command /shop:
  98. trigger:
  99. open metadata tag "Shop" of player to player
  100.  
  101.  
  102. on spawn:
  103.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement