Mirage-Skripter

CookieClicker-latest

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