Mirage-Skripter

CookieAfker-old

Feb 2nd, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.79 KB | None | 0 0
  1. on join:
  2. wait 1 tick
  3. give chest named "&5家電ショップ" to player
  4. if {point::%uuid of player%} is not set:
  5. set {point::%uuid of player%} to 1
  6. set {points::%uuid of player%} to 0
  7. set {tensei::%uuid of player%} to 0
  8. set {furnace::%uuid of player%} to 0
  9. set {grandma::%uuid of player%} to 0
  10. set {farm::%uuid of player%} to 0
  11. set {factory::%uuid of player%} to 0
  12. set {mine::%uuid of player%} to 0
  13. set {miner::%uuid of player%} to 0
  14. set {portal::%uuid of player%} to 0
  15. set {witch::%uuid of player%} to 0
  16. set {meteor::%uuid of player%} to 0
  17. set {planet::%uuid of player%} to 0
  18. set {matter::%uuid of player%} to 0
  19. message "&a&lCookieAfker&bは_mIrAgEdayo_によって作られました。"
  20. send "&eダウンロードしたい方はこちら &ehttps://discord.gg/SbpZx7Q"
  21.  
  22. every 1 second in "world":
  23. loop all players:
  24. add {point::%uuid of loop-player%} to {points::%uuid of loop-player%}
  25. set action bar of loop-player to "&e&n所持クッキー数&a: &5&l%{points::%uuid of loop-player%}% &e&n秒間獲得クッキー数&a: &5&l%{point::%uuid of loop-player%}%"
  26.  
  27. on right click with chest:
  28. if name of player's tool is "&5家電ショップ":
  29. cancel event
  30. open chest with 6 rows named "&5家電製品ショップ" to player
  31. wait 1 tick
  32. set slot 0 of player's current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%uuid of player%}%"
  33. set slot 8 of player's current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%uuid of player%}%"
  34. set slot 19 of player's current inventory to glowing furnace named "&c&l強化かまど &7値段:1000クッキー" with lore "&7通常より強化されたかまどを設置||&7所持数: &e%{furnace::%uuid of player%}%||&7秒間獲得クッキー数 +1"
  35. set slot 21 of player's current inventory to glowing cookie named "&f&lおばあちゃん &7値段:2000クッキー" with lore "&7一番安心する味||&7所持数: &e%{grandma::%uuid of player%}%||&7秒間獲得クッキー数 +2"
  36. set slot 23 of player's current inventory to glowing wheat named "&a&lクッキー畑 &7値段:4000クッキー" with lore "&7クッキーの種でクッキーを栽培||&7所持数: &e%{farm::%uuid of player%}%||&7秒間獲得クッキー数 +4"
  37. set slot 25 of player's current inventory to glowing crafting table named "&e&lクッキー工場 &7値段:8000クッキー" with lore "&7最新鋭の技術を使って高速でクッキーを生産||&7所持数: &e%{factory::%uuid of player%}%||&7秒間獲得クッキー数 +8"
  38. set slot 29 of player's current inventory to glowing wooden pickaxe named "&b&lクッキー洞窟 &7値段:16000クッキー" with lore "&7大量のクッキーが埋蔵されている洞窟||&7所持数: &e%{mine::%uuid of player%}%||&7秒間獲得クッキー数 +16"
  39. set slot 31 of player's current inventory to glowing diamond pickaxe named "&b&lクッキー自動採掘機 &7値段:32000クッキー" with lore "&7地中のクッキーを自動で探し採掘する||&7所持数: &e%{miner::%uuid of player%}%||&7秒間獲得クッキー数 +32"
  40. set slot 33 of player's current inventory to glowing purple stained glass pane named "&5&lクッキーポータル &7値段:64000クッキー" with lore "&7亜空間から大量のクッキーが転送される||&7所持数: &e%{portal::%uuid of player%}%||&7秒間獲得クッキー数 +64"
  41. set slot 37 of player's current inventory to glowing brewing stand named "&5&l世界クッキー研究所 &7値段:128000クッキー" with lore "&729世紀の技術を使用してクッキー大量生産||&7所持数: &e%{witch::%uuid of player%}%||&7秒間獲得クッキー数 +128"
  42. set slot 39 of player's current inventory to glowing obsidian named "&4&lクッキーメテオ &7値段:256000クッキー" with lore "&7巨大なメテオからクッキーを抽出||&7所持数: &e%{meteor::%uuid of player%}%||&7秒間獲得クッキー数 +256"
  43. set slot 41 of player's current inventory to glowing grass named "&6&lクッキー星 &7値段:512000クッキー" with lore "&7全てがクッキーで出来た巨大な星で採取||&7所持数: &e%{planet::%uuid of player%}%||&7秒間獲得クッキー数 +512"
  44. set slot 43 of player's current inventory to glowing purple dye named "&5&lクッキーマター &7値段:1024000クッキー" with lore "&7マターを使って超速度でクッキーを生成||&7所持数: &e%{matter::%uuid of player%}%||&7秒間獲得クッキー数 +1024"
  45.  
  46. on inventory click:
  47. if name of player's current inventory contains "&5家電製品ショップ":
  48. if clicked slot is 0:
  49. cancel event
  50. if clicked slot is 8:
  51. cancel event
  52. if clicked slot is 19:
  53. cancel event
  54. furnace(player)
  55. if clicked slot is 21:
  56. cancel event
  57. grandma(player)
  58. if clicked slot is 23:
  59. cancel event
  60. farm(player)
  61. if clicked slot is 25:
  62. cancel event
  63. factory(player)
  64. if clicked slot is 29:
  65. cancel event
  66. mine(player)
  67. if clicked slot is 31:
  68. cancel event
  69. miner(player)
  70. if clicked slot is 33:
  71. cancel event
  72. portal(player)
  73. if clicked slot is 37:
  74. cancel event
  75. witch(player)
  76. if clicked slot is 39:
  77. cancel event
  78. meteor(player)
  79. if clicked slot is 41:
  80. cancel event
  81. planet(player)
  82. if clicked slot is 43:
  83. cancel event
  84. matter(player)
  85.  
  86. function furnace(p: player):
  87. set {_u} to uuid of {_p}
  88. if {points::%{_u}%} >= 1000:
  89. add 1 to {point::%{_u}%}
  90. add 1 to {furnace::%{_u}%}
  91. remove 1000 from {points::%{_u}%}
  92. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  93. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  94. set slot 19 of {_p}'s current inventory to glowing furnace named "&c&l強化かまど &7値段:1000クッキー" with lore "&7通常より強化されたかまどを設置||&7所持数: &e%{furnace::%{_u}%}%||&7秒間獲得クッキー数 +1"
  95. else:
  96. close {_p}'s inventory
  97. send "&cクッキーが足りません。" to {_p}
  98.  
  99. function grandma(p: player):
  100. set {_u} to uuid of {_p}
  101. if {points::%{_u}%} >= 2000:
  102. add 2 to {point::%{_u}%}
  103. add 1 to {grandma::%{_u}%}
  104. remove 2000 from {points::%{_u}%}
  105. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  106. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  107. set slot 21 of {_p}'s current inventory to glowing cookie named "&f&lおばあちゃん &7値段:2000クッキー" with lore "&7一番安心する味||&7所持数: &e%{grandma::%{_u}%}%||&7秒間獲得クッキー数 +2"
  108. else:
  109. close {_p}'s inventory
  110. send "&cクッキーが足りません。" to {_p}
  111.  
  112. function farm(p: player):
  113. set {_u} to uuid of {_p}
  114. if {points::%{_u}%} >= 4000:
  115. add 4 to {point::%{_u}%}
  116. add 1 to {farm::%{_u}%}
  117. remove 4000 from {points::%{_u}%}
  118. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  119. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  120. set slot 23 of {_p}'s current inventory to glowing wheat named "&a&lクッキー畑 &7値段:4000クッキー" with lore "&7クッキーの種でクッキーを栽培||&7所持数: &e%{farm::%{_u}%}%||&7秒間獲得クッキー数 +4"
  121. else:
  122. close {_p}'s inventory
  123. send "&cクッキーが足りません。" to {_p}
  124.  
  125. function factory(p: player):
  126. set {_u} to uuid of {_p}
  127. if {points::%{_u}%} >= 8000:
  128. add 8 to {point::%{_u}%}
  129. add 1 to {factory::%{_u}%}
  130. remove 8000 from {points::%{_u}%}
  131. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  132. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  133. set slot 25 of {_p}'s current inventory to glowing crafting table named "&e&lクッキー工場 &7値段:8000クッキー" with lore "&7最新鋭の技術を使って高速でクッキーを生産||&7所持数: &e%{factory::%{_u}%}%||&7秒間獲得クッキー数 +8"
  134. else:
  135. close {_p}'s inventory
  136. send "&cクッキーが足りません。" to {_p}
  137.  
  138. function mine(p: player):
  139. set {_u} to uuid of {_p}
  140. if {points::%{_u}%} >= 16000:
  141. add 16 to {point::%{_u}%}
  142. add 1 to {mine::%{_u}%}
  143. remove 16000 from {points::%{_u}%}
  144. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  145. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  146. set slot 29 of {_p}'s current inventory to glowing wooden pickaxe named "&b&lクッキー洞窟 &7値段:16000クッキー" with lore "&7大量のクッキーが埋蔵されている洞窟||&7所持数: &e%{mine::%{_u}%}%||&7秒間獲得クッキー数 +16"
  147. else:
  148. close {_p}'s inventory
  149. send "&cクッキーが足りません。" to {_p}
  150.  
  151. function miner(p: player):
  152. set {_u} to uuid of {_p}
  153. if {points::%{_u}%} >= 32000:
  154. add 32 to {point::%{_u}%}
  155. add 1 to {miner::%{_u}%}
  156. remove 32000 from {points::%{_u}%}
  157. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  158. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  159. set slot 31 of {_p}'s current inventory to glowing diamond pickaxe named "&b&lクッキー自動採掘機 &7値段:32000クッキー" with lore "&7地中のクッキーを自動で探し採掘する||&7所持数: &e%{miner::%{_u}%}%||&7秒間獲得クッキー数 +32"
  160. else:
  161. close {_p}'s inventory
  162. send "&cクッキーが足りません。" to {_p}
  163.  
  164. function portal(p: player):
  165. set {_u} to uuid of {_p}
  166. if {points::%{_u}%} >= 64000:
  167. add 64 to {point::%{_u}%}
  168. add 1 to {portal::%{_u}%}
  169. remove 64000 from {points::%{_u}%}
  170. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  171. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  172. set slot 33 of {_p}'s current inventory to glowing purple stained glass pane named "&5&lクッキーポータル &7値段:64000クッキー" with lore "&7亜空間から大量のクッキーが転送される||&7所持数: &e%{portal::%{_u}%}%||&7秒間獲得クッキー数 +64"
  173. else:
  174. close {_p}'s inventory
  175. send "&cクッキーが足りません。" to {_p}
  176.  
  177. function witch(p: player):
  178. set {_u} to uuid of {_p}
  179. if {points::%{_u}%} >= 128000:
  180. add 128 to {point::%{_u}%}
  181. add 1 to {witch::%{_u}%}
  182. remove 128000 from {points::%{_u}%}
  183. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  184. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  185. set slot 37 of {_p}'s current inventory to glowing brewing stand named "&5&l世界クッキー研究所 &7値段:128000クッキー" with lore "&729世紀の技術を使用してクッキー大量生産||&7所持数: &e%{witch::%{_u}%}%||&7秒間獲得クッキー数 +128"
  186. else:
  187. close {_p}'s inventory
  188. send "&cクッキーが足りません。" to {_p}
  189.  
  190. function meteor(p: player):
  191. set {_u} to uuid of {_p}
  192. if {points::%{_u}%} >= 256000:
  193. add 256 to {point::%{_u}%}
  194. add 1 to {meteor::%{_u}%}
  195. remove 256000 from {points::%{_u}%}
  196. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  197. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  198. set slot 39 of {_p}'s current inventory to glowing obsidian named "&4&lクッキーメテオ &7値段:256000クッキー" with lore "&7巨大なメテオからクッキーを抽出||&7所持数: &e%{meteor::%{_u}%}%||&7秒間獲得クッキー数 +256"
  199. else:
  200. close {_p}'s inventory
  201. send "&cクッキーが足りません。" to {_p}
  202.  
  203. function planet(p: player):
  204. set {_u} to uuid of {_p}
  205. if {points::%{_u}%} >= 512000:
  206. add 512 to {point::%{_u}%}
  207. add 1 to {planet::%{_u}%}
  208. remove 512000 from {points::%{_u}%}
  209. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  210. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  211. set slot 41 of {_p}'s current inventory to glowing grass named "&6&lクッキー星 &7値段:512000クッキー" with lore "&7全てがクッキーで出来た巨大な星で採取||&7所持数: &e%{planet::%{_u}%}%||&7秒間獲得クッキー数 +512"
  212. else:
  213. close {_p}'s inventory
  214. send "&cクッキーが足りません。" to {_p}
  215.  
  216. function matter(p: player):
  217. set {_u} to uuid of {_p}
  218. if {points::%{_u}%} >= 1024000:
  219. add 1024 to {point::%{_u}%}
  220. add 1 to {matter::%{_u}%}
  221. remove 1024000 from {points::%{_u}%}
  222. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  223. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  224. set slot 43 of {_p}'s current inventory to glowing purple dye named "&5&lクッキーマター &7値段:1024000クッキー" with lore "&7マターを使って超速度でクッキーを生成||&7所持数: &e%{matter::%{_u}%}%||&7秒間獲得クッキー数 +1024"
  225. else:
  226. close {_p}'s inventory
  227. send "&cクッキーが足りません。" to {_p}
Advertisement
Add Comment
Please, Sign In to add comment