Advertisement
Azxx

Untitled

Dec 22nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.63 KB | None | 0 0
  1. if {dview.%arg 1%} is not set:
  2. message "8[&eInsane&8] &cDisable view for %arg 1%."
  3. set {dview.%arg 1%} to true
  4.  
  5. command /view <player>:
  6. permission: view.view
  7. trigger:
  8. message "8[&eInsane&8] &7Player is being checked!"
  9. wait 5 ticks
  10. if {dview.%arg 1%} is true:
  11. message "8[&eInsane&8] &cThis player is hidden."
  12. else:
  13. set {target.%player%} to arg 1
  14. wait 1 tick
  15. open chest with 5 rows named "%arg 1%" to player
  16. set {_playerinv} to arg 1
  17. set {_slot} to 0
  18. loop 36 times:
  19. set {view.%arg 1%.%{_slot}%} to slot {_slot} of arg 1's inventory
  20. add 1 to {_slot}
  21. set {_slot} to 0
  22. set {_slotmenu} to 9
  23. wait 1 tick
  24. loop 36 times:
  25. format slot {_slotmenu} of player with {view.%arg 1%.%{_slot}%} to be unstealable
  26. add 1 to {_slot}
  27. add 1 to {_slotmenu}
  28. set {_health.%arg 1%} to arg 1's health
  29. set {hunger.%arg 1%} to arg 1's hunger
  30. set {armorview.helmet.%arg 1%} to arg 1's helmet
  31. set {armorview.chestplate.%arg 1%} to arg 1's chestplate
  32. set {armorview.leggings.%arg 1%} to arg 1's leggings
  33. set {armorview.boots.%arg 1%} to arg 1's boots
  34. set {effects.%arg 1%::*} to all of the active potion effects on arg 1
  35. if arg 1's gamemode is survival:
  36. format slot 3 of player with 20 glistering melon named "&cPlayer health points" with lore "&6%{_health.%arg 1%}% ?" to be unstealable
  37. else:
  38. format slot 3 of player with 20 glistering melon named "&cPlayer health points" with lore "&6Creative." to be unstealable
  39. if arg 1's gamemode is survival:
  40. if {hunger.%arg 1%} = 10:
  41. format slot 4 of player with 20 steak named "&ePlayer food points" with lore "&7" to be unstealable
  42. if {hunger.%arg 1%} = 9.5:
  43. format slot 4 of player with 19 steak named "&ePlayer food points" with lore "&7" to be unstealable
  44. if {hunger.%arg 1%} = 9:
  45. format slot 4 of player with 18 steak named "&ePlayer food points" with lore "&7" to be unstealable
  46. if {hunger.%arg 1%} = 8.5:
  47. format slot 4 of player with 17 steak named "&ePlayer food points" with lore "&7" to be unstealable
  48. if {hunger.%arg 1%} = 8:
  49. format slot 4 of player with 16 steak named "&ePlayer food points" with lore "&7" to be unstealable
  50. if {hunger.%arg 1%} = 7.5:
  51. format slot 4 of player with 15 steak named "&ePlayer food points" with lore "&7" to be unstealable
  52. if {hunger.%arg 1%} = 7:
  53. format slot 4 of player with 14 steak named "&ePlayer food points" with lore "&7" to be unstealable
  54. if {hunger.%arg 1%} = 6.5:
  55. format slot 4 of player with 13 steak named "&ePlayer food points" with lore "&7" to be unstealable
  56. if {hunger.%arg 1%} = 6:
  57. format slot 4 of player with 12 steak named "&ePlayer food points" with lore "&7" to be unstealable
  58. if {hunger.%arg 1%} = 5.5:
  59. format slot 4 of player with 11 steak named "&ePlayer food points" with lore "&7" to be unstealable
  60. if {hunger.%arg 1%} = 5:
  61. format slot 4 of player with 10 steak named "&ePlayer food points" with lore "&7" to be unstealable
  62. if {hunger.%arg 1%} = 4.5:
  63. format slot 4 of player with 9 steak named "&ePlayer food points" with lore "&7" to be unstealable
  64. if {hunger.%arg 1%} = 4:
  65. format slot 4 of player with 8 steak named "&ePlayer food points" with lore "&7" to be unstealable
  66. if {hunger.%arg 1%} = 3.5:
  67. format slot 4 of player with 7 steak named "&ePlayer food points" with lore "&7" to be unstealable
  68. if {hunger.%arg 1%} = 3: to
  69. format slot 4 of player with 6 steak named "&ePlayer food points" with lore "&7" to be unstealable
  70. if {hunger.%arg 1%} = 2.5:
  71. format slot 4 of player with 5 steak named "&ePlayer food points" with lore "&7" to be unstealable
  72. if {hunger.%arg 1%} = 2:
  73. format slot 4 of player with 4 steak named "&ePlayer food points" with lore "&7" to be unstealable
  74. if {hunger.%arg 1%} = 1.5:
  75. format slot 4 of player with 3 steak named "&ePlayer food points" with lore "&7" to be unstealable
  76. if {hunger.%arg 1%} = 1:
  77. format slot 4 of player with 2 steak named "&ePlayer food points" with lore "&7" to be unstealable
  78. if {hunger.%arg 1%} = 0.5:
  79. format slot 4 of player with 1 steak named "&ePlayer food points" with lore "&7" to be unstealable
  80. if {hunger.%arg 1%} = 0:
  81. format slot 4 of player with 1 steak named "&ePlayer food points" with lore "&7" to be unstealable
  82. else:
  83. format slot 4 of player with 20 steak named "&ePlayer food points" with lore "&7" to be unstealable
  84. if arg 1's gamemode is survival:
  85. format slot 2 of player with 4 diamond chestplate named "&cPlayer armor" to close then run [make player execute command "armorview %arg 1%"]
  86. else:
  87. format slot 2 of player with 4 diamond chestplate named "&cPlayer armor" to close then run [make player execute command "armorview %arg 1%"]
  88. format slot 6 of player with 2 paper named "&eUpdate" with lore "&7" to close then run [make player execute command "vreload"]
  89. if arg 1 doesn't have speed:
  90. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  91. if arg 1 has speed:
  92. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  93. stop
  94. if arg 1 doesn't have slowness:
  95. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  96. if arg 1 has slowness:
  97. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  98. stop
  99. if arg 1 doesn't have haste:
  100. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  101. if arg 1 has haste:
  102. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  103. stop
  104. if arg 1 doesn't have mining fatigue:
  105. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  106. if arg 1 has mining fatigue:
  107. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  108. stop
  109. if arg 1 doesn't have strength:
  110. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  111. if arg 1 has strength:
  112. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  113. stop
  114. if arg 1 doesn't have instant health:
  115. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  116. if arg 1 has instant health:
  117. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  118. stop
  119. if arg 1 doesn't have instant damage:
  120. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  121. if arg 1 has instant damage:
  122. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  123. stop
  124. if arg 1 doesn't have jump boost:
  125. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  126. if arg 1 has jump boost:
  127. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  128. stop
  129. if arg 1 doesn't have nausea:
  130. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  131. if arg 1 has nausea:
  132. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  133. stop
  134. if arg 1 doesn't have regeneration:
  135. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  136. if arg 1 has regeneration:
  137. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  138. stop
  139. if arg 1 doesn't have resistance:
  140. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  141. if arg 1 has resistance:
  142. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  143. stop
  144. if arg 1 doesn't have fire resistance:
  145. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  146. if arg 1 has fire resistance:
  147. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  148. stop
  149. if arg 1 doesn't have water breathing:
  150. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  151. if arg 1 has water breathing:
  152. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  153. stop
  154. if arg 1 doesn't have invisibility:
  155. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  156. if arg 1 has invisibility:
  157. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  158. stop
  159. if arg 1 doesn't have blindness:
  160. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  161. if arg 1 has blindness:
  162. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  163. stop
  164. if arg 1 doesn't have night vision:
  165. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  166. if arg 1 has night vision:
  167. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  168. stop
  169. if arg 1 doesn't have hunger:
  170. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  171. if arg 1 has hunger:
  172. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  173. stop
  174. if arg 1 doesn't have weakness:
  175. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  176. if arg 1 has weakness:
  177. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  178. stop
  179. if arg 1 doesn't have poison:
  180. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  181. if arg 1 has poison:
  182. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  183. stop
  184. if arg 1 doesn't have wither:
  185. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6No effects" to be unstealable
  186. if arg 1 has wither:
  187. format slot 5 of player with 4 brewing stand named "&cPotion effects" with lore "&6%{effects.%arg 1%::*}%" to be unstealable
  188. stop
  189. clear {effects.%arg 1%::*}
  190.  
  191. command /vreload:
  192. permission: view.view
  193. trigger:
  194. wait 2 ticks
  195. make console execute command "sk reload Inventory"
  196.  
  197. command /aview <player>:
  198. permission: view.view
  199. trigger:
  200. open chest with 1 row named "%arg 1%" to player
  201. wait 2 tick
  202. set {armor.%arg 1%.1} to helmet of arg 1
  203. set {armor.%arg 1%.2} to chestplate of arg 1
  204. set {armor.%arg 1%.3} to leggings of arg 1
  205. set {armor.%arg 1%.4} to boots of arg 1
  206. format slot 0 of player with {armor.%arg 1%.1} to be unstealable
  207. format slot 1 of player with {armor.%arg 1%.2} to be unstealable
  208. format slot 2 of player with {armor.%arg 1%.3} to be unstealable
  209. format slot 3 of player with {armor.%arg 1%.4} to be unstealable
  210. format slot 7 of player with 1 paper named "&cUpdate" to close then run [make player execute command "armorview %arg 1%"]
  211. format slot 8 of player with 1 redstone named "&cBack" to close then run [make player execute command "review %arg 1%"]
  212. clear {target.%player%}
  213.  
  214. command /armorview <player>:
  215. permission: view.view
  216. trigger:
  217. wait 2 ticks
  218. make player execute command "aview %arg 1%"
  219.  
  220. command /review <player>:
  221. permission: view.view
  222. trigger:
  223. wait 2 ticks
  224. make player execute command "view %arg 1%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement