Advertisement
Guest User

Untitled

a guest
Feb 15th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.28 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. wait 5 tick
  34. set slot 8 of player's current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%uuid of player%}%"
  35. wait 5 tick
  36. 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"
  37. wait 2 tick
  38. 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"
  39. wait 1 tick
  40. 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"
  41. wait 1 tick
  42. 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"
  43. wait 1 tick
  44. 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"
  45. wait 1 tick
  46. 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"
  47. wait 1 tick
  48. 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"
  49. wait 1 tick
  50. 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"
  51. wait 1 tick
  52. 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"
  53. wait 1 tick
  54. 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"
  55. wait 1 tick
  56. 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"
  57.  
  58. on inventory click:
  59. if name of player's current inventory contains "&5家電製品ショップ":
  60. if clicked slot is 0:
  61. cancel event
  62. if clicked slot is 8:
  63. cancel event
  64. if clicked slot is 19:
  65. cancel event
  66. furnace(player)
  67. if clicked slot is 21:
  68. cancel event
  69. grandma(player)
  70. if clicked slot is 23:
  71. cancel event
  72. farm(player)
  73. if clicked slot is 25:
  74. cancel event
  75. factory(player)
  76. if clicked slot is 29:
  77. cancel event
  78. mine(player)
  79. if clicked slot is 31:
  80. cancel event
  81. miner(player)
  82. if clicked slot is 33:
  83. cancel event
  84. portal(player)
  85. if clicked slot is 37:
  86. cancel event
  87. witch(player)
  88. if clicked slot is 39:
  89. cancel event
  90. meteor(player)
  91. if clicked slot is 41:
  92. cancel event
  93. planet(player)
  94. if clicked slot is 43:
  95. cancel event
  96. matter(player)
  97.  
  98. function furnace(p: player):
  99. set {_u} to uuid of {_p}
  100. if {points::%{_u}%} >= 1000:
  101. add 1 to {point::%{_u}%}
  102. add 1 to {furnace::%{_u}%}
  103. remove 1000 from {points::%{_u}%}
  104. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  105. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  106. 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"
  107. else:
  108. close {_p}'s inventory
  109. send "&cクッキーが足りません。" to {_p}
  110.  
  111. function grandma(p: player):
  112. set {_u} to uuid of {_p}
  113. if {points::%{_u}%} >= 2000:
  114. add 2 to {point::%{_u}%}
  115. add 1 to {grandma::%{_u}%}
  116. remove 2000 from {points::%{_u}%}
  117. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  118. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  119. 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"
  120. else:
  121. close {_p}'s inventory
  122. send "&cクッキーが足りません。" to {_p}
  123.  
  124. function farm(p: player):
  125. set {_u} to uuid of {_p}
  126. if {points::%{_u}%} >= 4000:
  127. add 4 to {point::%{_u}%}
  128. add 1 to {farm::%{_u}%}
  129. remove 4000 from {points::%{_u}%}
  130. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  131. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  132. 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"
  133. else:
  134. close {_p}'s inventory
  135. send "&cクッキーが足りません。" to {_p}
  136.  
  137. function factory(p: player):
  138. set {_u} to uuid of {_p}
  139. if {points::%{_u}%} >= 8000:
  140. add 8 to {point::%{_u}%}
  141. add 1 to {factory::%{_u}%}
  142. remove 8000 from {points::%{_u}%}
  143. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  144. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  145. 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"
  146. else:
  147. close {_p}'s inventory
  148. send "&cクッキーが足りません。" to {_p}
  149.  
  150. function mine(p: player):
  151. set {_u} to uuid of {_p}
  152. if {points::%{_u}%} >= 16000:
  153. add 16 to {point::%{_u}%}
  154. add 1 to {mine::%{_u}%}
  155. remove 16000 from {points::%{_u}%}
  156. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  157. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  158. 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"
  159. else:
  160. close {_p}'s inventory
  161. send "&cクッキーが足りません。" to {_p}
  162.  
  163. function miner(p: player):
  164. set {_u} to uuid of {_p}
  165. if {points::%{_u}%} >= 32000:
  166. add 32 to {point::%{_u}%}
  167. add 1 to {miner::%{_u}%}
  168. remove 32000 from {points::%{_u}%}
  169. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  170. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  171. 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"
  172. else:
  173. close {_p}'s inventory
  174. send "&cクッキーが足りません。" to {_p}
  175.  
  176. function portal(p: player):
  177. set {_u} to uuid of {_p}
  178. if {points::%{_u}%} >= 64000:
  179. add 64 to {point::%{_u}%}
  180. add 1 to {portal::%{_u}%}
  181. remove 64000 from {points::%{_u}%}
  182. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  183. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  184. 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"
  185. else:
  186. close {_p}'s inventory
  187. send "&cクッキーが足りません。" to {_p}
  188.  
  189. function witch(p: player):
  190. set {_u} to uuid of {_p}
  191. if {points::%{_u}%} >= 128000:
  192. add 128 to {point::%{_u}%}
  193. add 1 to {witch::%{_u}%}
  194. remove 128000 from {points::%{_u}%}
  195. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  196. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  197. 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"
  198. else:
  199. close {_p}'s inventory
  200. send "&cクッキーが足りません。" to {_p}
  201.  
  202. function meteor(p: player):
  203. set {_u} to uuid of {_p}
  204. if {points::%{_u}%} >= 256000:
  205. add 256 to {point::%{_u}%}
  206. add 1 to {meteor::%{_u}%}
  207. remove 256000 from {points::%{_u}%}
  208. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  209. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  210. 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"
  211. else:
  212. close {_p}'s inventory
  213. send "&cクッキーが足りません。" to {_p}
  214.  
  215. function planet(p: player):
  216. set {_u} to uuid of {_p}
  217. if {points::%{_u}%} >= 512000:
  218. add 512 to {point::%{_u}%}
  219. add 1 to {planet::%{_u}%}
  220. remove 512000 from {points::%{_u}%}
  221. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  222. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  223. 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"
  224. else:
  225. close {_p}'s inventory
  226. send "&cクッキーが足りません。" to {_p}
  227.  
  228. function matter(p: player):
  229. set {_u} to uuid of {_p}
  230. if {points::%{_u}%} >= 1024000:
  231. add 1024 to {point::%{_u}%}
  232. add 1 to {matter::%{_u}%}
  233. remove 1024000 from {points::%{_u}%}
  234. set slot 0 of {_p}'s current inventory to glowing cookie named "&aあなたの所持クッキー数: &e%{points::%{_u}%}%"
  235. set slot 8 of {_p}'s current inventory to glowing book named "&aあなたの秒間獲得クッキー数: &e%{point::%{_u}%}%"
  236. 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"
  237. else:
  238. close {_p}'s inventory
  239. send "&cクッキーが足りません。" to {_p}
  240.  
  241. on right click with chest:
  242. wait 1 tick
  243. give chest named "&5家電ショップ" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement