UDON_JP

Untitled

May 21st, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.93 KB | None | 0 0
  1. on join:
  2. wait 1 tick
  3. if {point::%uuid of player%} is not set:
  4. set {point::%uuid of player%} to 1
  5. set {points::%uuid of player%} to 0
  6. set {tensei::%uuid of player%} to 0
  7. set {furnace::%uuid of player%} to 0
  8. set {grandma::%uuid of player%} to 0
  9. set {farm::%uuid of player%} to 0
  10. set {factory::%uuid of player%} to 0
  11. set {mine::%uuid of player%} to 0
  12. set {miner::%uuid of player%} to 0
  13. set {portal::%uuid of player%} to 0
  14. set {witch::%uuid of player%} to 0
  15. set {meteor::%uuid of player%} to 0
  16. set {planet::%uuid of player%} to 0
  17. set {matter::%uuid of player%} to 0
  18.  
  19. on right click with cookie:
  20. if name of player's tool is "&6クッキークリッカー":
  21. add {point::%uuid of player%} to {points::%uuid of player%}
  22.  
  23. command /totalranking:
  24. trigger:
  25. message "&6所持クッキー数ランキング"
  26. set {_h} to 0
  27. loop {points::*}:
  28. set {_list::%loop-index%} to loop-value
  29. loop 10 times:
  30. loop {_list::*}:
  31. loop-value-2 > {_h}
  32. set {_h} to loop-value-2
  33. set {_highplayer} to loop-index parsed as player
  34. set {_hp} to loop-index
  35. message "&a&l%loop-number%位 &b%{_highplayer}%&5:&e%{_h}%&bCookies"
  36. set {_h} to 0
  37. delete {_list::%{_hp}%}
  38.  
  39. command /clickranking:
  40. trigger:
  41. message "&6クリック枚獲得クッキー数ランキング"
  42. set {_h} to 0
  43. loop {point::*}:
  44. set {_list::%loop-index%} to loop-value
  45. loop 10 times:
  46. loop {_list::*}:
  47. loop-value-2 > {_h}
  48. set {_h} to loop-value-2
  49. set {_highplayer} to loop-index parsed as player
  50. set {_hp} to loop-index
  51. message "&a&l%loop-number%位 &b%{_highplayer}%&5:&e%{_h}%&bCookies"
  52. set {_h} to 0
  53. delete {_list::%{_hp}%}
  54.  
  55. every 1 tick:
  56. loop all players:
  57. if {survivor::*} contains player:
  58. stop
  59. if {hunter::*} contains player:
  60. stop
  61. if {spectator::*} contains player:
  62. stop
  63. 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%}%"
  64.  
  65. on right click with chest:
  66. if name of player's tool is "&5家電ショップ":
  67. cancel event
  68. open chest with 6 rows named "&5家電製品ショップ" to player
  69. wait 1 tick
  70. set slot 0 of player's current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%uuid of player%}%"
  71. wait 5 tick
  72. set slot 8 of player's current inventory to glowing book named "&aあなたのクリック毎獲得クッキー数: &e%{point::%uuid of player%}%"
  73. wait 5 tick
  74. 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"
  75. wait 2 tick
  76. 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"
  77. wait 1 tick
  78. 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"
  79. wait 1 tick
  80. 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"
  81. wait 1 tick
  82. 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"
  83. wait 1 tick
  84. 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"
  85. wait 1 tick
  86. 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"
  87. wait 1 tick
  88. 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"
  89. wait 1 tick
  90. 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"
  91. wait 1 tick
  92. 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"
  93. wait 1 tick
  94. 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"
  95.  
  96. on inventory click:
  97. if name of player's current inventory contains "&5家電製品ショップ":
  98. if clicked slot is 0:
  99. cancel event
  100. if clicked slot is 8:
  101. cancel event
  102. if clicked slot is 19:
  103. cancel event
  104. furnace(player)
  105. if clicked slot is 21:
  106. cancel event
  107. grandma(player)
  108. if clicked slot is 23:
  109. cancel event
  110. farm(player)
  111. if clicked slot is 25:
  112. cancel event
  113. factory(player)
  114. if clicked slot is 29:
  115. cancel event
  116. mine(player)
  117. if clicked slot is 31:
  118. cancel event
  119. miner(player)
  120. if clicked slot is 33:
  121. cancel event
  122. portal(player)
  123. if clicked slot is 37:
  124. cancel event
  125. witch(player)
  126. if clicked slot is 39:
  127. cancel event
  128. meteor(player)
  129. if clicked slot is 41:
  130. cancel event
  131. planet(player)
  132. if clicked slot is 43:
  133. cancel event
  134. matter(player)
  135.  
  136. function furnace(p: player):
  137. set {_u} to uuid of {_p}
  138. if {points::%{_u}%} >= 1000:
  139. add 1 to {point::%{_u}%}
  140. add 1 to {furnace::%{_u}%}
  141. remove 1000 from {points::%{_u}%}
  142. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  143. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたのクリック毎獲得クッキー数: &e%{point::%{_u}%}%"
  144. 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"
  145. else:
  146. close {_p}'s inventory
  147. send "&cクッキーが足りません。" to {_p}
  148.  
  149. function grandma(p: player):
  150. set {_u} to uuid of {_p}
  151. if {points::%{_u}%} >= 2000:
  152. add 2 to {point::%{_u}%}
  153. add 1 to {grandma::%{_u}%}
  154. remove 2000 from {points::%{_u}%}
  155. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  156. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたのクリック毎獲得クッキー数: &e%{point::%{_u}%}%"
  157. 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"
  158. else:
  159. close {_p}'s inventory
  160. send "&cクッキーが足りません。" to {_p}
  161.  
  162. function farm(p: player):
  163. set {_u} to uuid of {_p}
  164. if {points::%{_u}%} >= 4000:
  165. add 4 to {point::%{_u}%}
  166. add 1 to {farm::%{_u}%}
  167. remove 4000 from {points::%{_u}%}
  168. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  169. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたのクリック毎獲得クッキー数: &e%{point::%{_u}%}%"
  170. 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"
  171. else:
  172. close {_p}'s inventory
  173. send "&cクッキーが足りません。" to {_p}
  174.  
  175. function factory(p: player):
  176. set {_u} to uuid of {_p}
  177. if {points::%{_u}%} >= 8000:
  178. add 8 to {point::%{_u}%}
  179. add 1 to {factory::%{_u}%}
  180. remove 8000 from {points::%{_u}%}
  181. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  182. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたのクリック毎獲得クッキー数: &e%{point::%{_u}%}%"
  183. 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"
  184. else:
  185. close {_p}'s inventory
  186. send "&cクッキーが足りません。" to {_p}
  187.  
  188. function mine(p: player):
  189. set {_u} to uuid of {_p}
  190. if {points::%{_u}%} >= 16000:
  191. add 16 to {point::%{_u}%}
  192. add 1 to {mine::%{_u}%}
  193. remove 16000 from {points::%{_u}%}
  194. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  195. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたのクリック毎獲得クッキー数: &e%{point::%{_u}%}%"
  196. 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"
  197. else:
  198. close {_p}'s inventory
  199. send "&cクッキーが足りません。" to {_p}
  200.  
  201. function miner(p: player):
  202. set {_u} to uuid of {_p}
  203. if {points::%{_u}%} >= 32000:
  204. add 32 to {point::%{_u}%}
  205. add 1 to {miner::%{_u}%}
  206. remove 32000 from {points::%{_u}%}
  207. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  208. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたのクリック毎獲得クッキー数: &e%{point::%{_u}%}%"
  209. 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"
  210. else:
  211. close {_p}'s inventory
  212. send "&cクッキーが足りません。" to {_p}
  213.  
  214. function portal(p: player):
  215. set {_u} to uuid of {_p}
  216. if {points::%{_u}%} >= 64000:
  217. add 64 to {point::%{_u}%}
  218. add 1 to {portal::%{_u}%}
  219. remove 64000 from {points::%{_u}%}
  220. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  221. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたのクリック毎獲得クッキー数: &e%{point::%{_u}%}%"
  222. 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"
  223. else:
  224. close {_p}'s inventory
  225. send "&cクッキーが足りません。" to {_p}
  226.  
  227. function witch(p: player):
  228. set {_u} to uuid of {_p}
  229. if {points::%{_u}%} >= 128000:
  230. add 128 to {point::%{_u}%}
  231. add 1 to {witch::%{_u}%}
  232. remove 128000 from {points::%{_u}%}
  233. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  234. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたのクリック毎獲得クッキー数: &e%{point::%{_u}%}%"
  235. 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"
  236. else:
  237. close {_p}'s inventory
  238. send "&cクッキーが足りません。" to {_p}
  239.  
  240. function meteor(p: player):
  241. set {_u} to uuid of {_p}
  242. if {points::%{_u}%} >= 256000:
  243. add 256 to {point::%{_u}%}
  244. add 1 to {meteor::%{_u}%}
  245. remove 256000 from {points::%{_u}%}
  246. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  247. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたのクリック毎獲得クッキー数: &e%{point::%{_u}%}%"
  248. 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"
  249. else:
  250. close {_p}'s inventory
  251. send "&cクッキーが足りません。" to {_p}
  252.  
  253. function planet(p: player):
  254. set {_u} to uuid of {_p}
  255. if {points::%{_u}%} >= 512000:
  256. add 512 to {point::%{_u}%}
  257. add 1 to {planet::%{_u}%}
  258. remove 512000 from {points::%{_u}%}
  259. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  260. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたのクリック毎獲得クッキー数: &e%{point::%{_u}%}%"
  261. 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"
  262. else:
  263. close {_p}'s inventory
  264. send "&cクッキーが足りません。" to {_p}
  265.  
  266. function matter(p: player):
  267. set {_u} to uuid of {_p}
  268. if {points::%{_u}%} >= 1024000:
  269. add 1024 to {point::%{_u}%}
  270. add 1 to {matter::%{_u}%}
  271. remove 1024000 from {points::%{_u}%}
  272. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  273. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたのクリック毎獲得クッキー数: &e%{point::%{_u}%}%"
  274. 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"
  275. else:
  276. close {_p}'s inventory
  277. send "&cクッキーが足りません。" to {_p}
Add Comment
Please, Sign In to add comment