pewax

Cookie Clicker 0.2 Beta

Apr 11th, 2017
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.19 KB | None | 0 0
  1. # ===== Update Log =====
  2. # - Added Colors To Buildings
  3. # - Fixed Some Missing Code
  4.  
  5. #
  6. # Cookie Clicker
  7. # By pewax
  8. #
  9.  
  10. variables:
  11. {cookies.%player%} = 0
  12. {multiplyer.%player%} = 1
  13. {cookie.leaderboard::%player%} = 0
  14. {cursor's.%player%} = 0
  15. {cursor.price.%player%} = 15
  16. {grandma's.%player%} = 0
  17. {grandma.price.%player%} = 100
  18. {farm's.%player%} = 0
  19. {farm.price.%player%} = 1100
  20. {mine's.%player%} = 0
  21. {mine.price.%player%} = 12000
  22. {factory's.%player%} = 0
  23. {factory.price.%player%} = 130000
  24. {bank's.%player%} = 0
  25. {bank.price.%player%} = 1400000
  26. {temple's.%player%} = 0
  27. {temple.price.%player%} = 20000000
  28. {wizardtower's.%player%} = 0
  29. {wizardtower.price.%player%} = 330000000
  30. {shipment's.%player%} = 0
  31. {shipment.price.%player%} = 5100000000
  32. {alchemylab's.%player%} = 0
  33. {alchemylab.price.%player%} = 75000000000
  34. {portal's.%player%} = 0
  35. {portal.price.%player%} = 1000000000000
  36. {timemachine's.%player%} = 0
  37. {timemachine.price.%player%} = 14000000000000
  38. {antimatter-condenser's.%player%} = 0
  39. {antimatter-condenser.price.%player%} = 170000000000000
  40. {prism's.%player%} = 0
  41. {prism.price.%player%} = 2100000000000000
  42.  
  43. every 3 ticks:
  44. loop all players:
  45. set {cookie.leaderboard::%loop-player%} to {cookies.%loop-player%}
  46.  
  47. command /cookie [<text>]:
  48. executable by: players
  49. trigger:
  50. if arg-1 is set:
  51. if arg-1 is "reset":
  52. set {cookies.%player%} to 0
  53. set {multiplyer.%player%} to 1
  54. set {cursor's.%player%} to 0
  55. set {cursor.price.%player%} to 15
  56. set {grandma's.%player%} to 0
  57. set {grandma.price.%player%} to 100
  58. set {farm's.%player%} to 0
  59. set {farm.price.%player%} to 1100
  60. set {mine's.%player%} to 0
  61. set {mine.price.%player%} to 12000
  62. set {factory's.%player%} to 0
  63. set {factory.price.%player%} to 130000
  64. set {bank's.%player%} to 0
  65. set {bank.price.%player%} to 1400000
  66. set {temple's.%player%} to 0
  67. set {temple.price.%player%} to 20000000
  68. set {wizardtower's.%player%} to 0
  69. set {wizardtower.price.%player%} to 330000000
  70. set {shipment's.%player%} to 0
  71. set {shipment.price.%player%} to 5100000000
  72. set {alchemylab's.%player%} to 0
  73. set {alchemylab.price.%player%} to 75000000000
  74. set {portal's.%player%} to 0
  75. set {portal.price.%player%} to 1000000000000
  76. set {timemachine's.%player%} to 0
  77. set {timemachine.price.%player%} to 14000000000000
  78. set {antimatter-condenser's.%player%} to 0
  79. set {antimatter-condenser.price.%player%} to 170000000000000
  80. set {prism's.%player%} to 0
  81. set {prism.price.%player%} to 2100000000000000
  82.  
  83. else if arg-1 is "cursor":
  84. if {cookies.%player%} >= {cursor.price.%player%}:
  85. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  86. remove {cursor.price.%player%} from {cookies.%player%}
  87. add 0.1 to {multiplyer.%player%}
  88. add 1 to {cursor's.%player%}
  89. set {cursor.price.%player%} to {cursor.price.%player%} + ({cursor.price.%player%} * 0.15)
  90. set {cursor.price.%player%} to round({cursor.price.%player%})
  91. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  92. format slot 0 of player with arrow named "&f&lCursor" with lore "&cCost: %{cursor.price.%event-player%}% Cookies||&6Owned: %{cursor's.%event-player%}%||&8+0.1 Every Click" to run [make event-player execute "/cookie cursor"]
  93. else:
  94. send "&c&lYou need more cookies for this!"
  95.  
  96. else if arg-1 is "grandma":
  97. if {cookies.%player%} >= {grandma.price.%player%}:
  98. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  99. remove {grandma.price.%player%} from {cookies.%player%}
  100. add 1 to {multiplyer.%player%}
  101. add 1 to {grandma's.%player%}
  102. set {grandma.price.%player%} to {grandma.price.%player%} + ({grandma.price.%player%} * 0.15)
  103. set {grandma.price.%player%} to round({grandma.price.%player%})
  104. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  105. format slot 1 of player with cake_item named "&6&lGrandma" with lore "&cCost: %{grandma.price.%event-player%}% Cookies||&6Owned: %{grandma's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie grandma"]
  106. else:
  107. send "&c&lYou need more cookies for this!"
  108.  
  109. else if arg-1 is "farm":
  110. if {cookies.%player%} >= {farm.price.%player%}:
  111. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  112. remove {farm.price.%player%} from {cookies.%player%}
  113. add 8 to {multiplyer.%player%}
  114. add 1 to {farm's.%player%}
  115. set {farm.price.%player%} to {farm.price.%player%} + ({farm.price.%player%} * 0.15)
  116. set {farm.price.%player%} to round({farm.price.%player%})
  117. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  118. format slot 2 of player with cake_item named "&e&lFarm" with lore "&cCost: %{farm.price.%event-player%}% Cookies||&6Owned: %{farm's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie farm"]
  119. else:
  120. send "&c&lYou need more cookies for this!"
  121.  
  122. else if arg-1 is "mine":
  123. if {cookies.%player%} >= {mine.price.%player%}:
  124. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  125. remove {mine.price.%player%} from {cookies.%player%}
  126. add 47 to {multiplyer.%player%}
  127. add 1 to {mine's.%player%}
  128. set {mine.price.%player%} to {mine.price.%player%} + ({mine.price.%player%} * 0.15)
  129. set {mine.price.%player%} to round({mine.price.%player%})
  130. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  131. format slot 3 of player with cake_item named "&8&lMine" with lore "&cCost: %{mine.price.%event-player%}% Cookies||&6Owned: %{mine's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie mine"]
  132. else:
  133. send "&c&lYou need more cookies for this!"
  134.  
  135. else if arg-1 is "factory":
  136. if {cookies.%player%} >= {factory.price.%player%}:
  137. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  138. remove {factory.price.%player%} from {cookies.%player%}
  139. add 260 to {multiplyer.%player%}
  140. add 1 to {factory's.%player%}
  141. set {factory.price.%player%} to {factory.price.%player%} + ({factory.price.%player%} * 0.15)
  142. set {factory.price.%player%} to round({factory.price.%player%})
  143. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  144. format slot 4 of player with cake_item named "&6&lfactory" with lore "&cCost: %{factory.price.%event-player%}% Cookies||&6Owned: %{factory's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie factory"]
  145. else:
  146. send "&c&lYou need more cookies for this!"
  147.  
  148. else if arg-1 is "bank":
  149. if {cookies.%player%} >= {bank.price.%player%}:
  150. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  151. remove {bank.price.%player%} from {cookies.%player%}
  152. add 1400 to {multiplyer.%player%}
  153. add 1 to {bank's.%player%}
  154. set {bank.price.%player%} to {bank.price.%player%} + ({bank.price.%player%} * 0.15)
  155. set {bank.price.%player%} to round({bank.price.%player%})
  156. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  157. format slot 5 of player with cake_item named "&f&lBank" with lore "&cCost: %{bank.price.%event-player%}% Cookies||&6Owned: %{bank's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie bank"]
  158. else:
  159. send "&c&lYou need more cookies for this!"
  160.  
  161. else if arg-1 is "temple":
  162. if {cookies.%player%} >= {temple.price.%player%}:
  163. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  164. remove {temple.price.%player%} from {cookies.%player%}
  165. add 7800 to {multiplyer.%player%}
  166. add 1 to {temple's.%player%}
  167. set {temple.price.%player%} to {temple.price.%player%} + ({temple.price.%player%} * 0.15)
  168. set {temple.price.%player%} to round({temple.price.%player%})
  169. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  170. format slot 6 of player with cake_item named "&5&lTemple" with lore "&cCost: %{temple.price.%event-player%}% Cookies||&6Owned: %{temple's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie temple"]
  171. else:
  172. send "&c&lYou need more cookies for this!"
  173.  
  174. else if arg-1 is "wizardtower":
  175. if {cookies.%player%} >= {wizardtower.price.%player%}:
  176. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  177. remove {wizardtower.price.%player%} from {cookies.%player%}
  178. add 44000 to {multiplyer.%player%}
  179. add 1 to {wizardtower's.%player%}
  180. set {wizardtower.price.%player%} to {wizardtower.price.%player%} + ({wizardtower.price.%player%} * 0.15)
  181. set {wizardtower.price.%player%} to round({wizardtower.price.%player%})
  182. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  183. format slot 7 of player with cake_item named "&d&lWizard Tower" with lore "&cCost: %{wizardtower.price.%event-player%}% Cookies||&6Owned: %{wizardtower's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie wizardtower"]
  184. else:
  185. send "&c&lYou need more cookies for this!"
  186.  
  187. else if arg-1 is "shipment":
  188. if {cookies.%player%} >= {shipment.price.%player%}:
  189. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  190. remove {shipment.price.%player%} from {cookies.%player%}
  191. add 260000 to {multiplyer.%player%}
  192. add 1 to {shipment's.%player%}
  193. set {shipment.price.%player%} to {shipment.price.%player%} + ({shipment.price.%player%} * 0.15)
  194. set {shipment.price.%player%} to round({shipment.price.%player%})
  195. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  196. format slot 8 of player with cake_item named "&4&lShipment" with lore "&cCost: %{shipment.price.%event-player%}% Cookies||&6Owned: %{shipment's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie shipment"]
  197. else:
  198. send "&c&lYou need more cookies for this!"
  199.  
  200. else if arg-1 is "alchemylab":
  201. if {cookies.%player%} >= {alchemylab.price.%player%}:
  202. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  203. remove {alchemylab.price.%player%} from {cookies.%player%}
  204. add 1600000 to {multiplyer.%player%}
  205. add 1 to {alchemylab's.%player%}
  206. set {alchemylab.price.%player%} to {alchemylab.price.%player%} + ({alchemylab.price.%player%} * 0.15)
  207. set {alchemylab.price.%player%} to round({alchemylab.price.%player%})
  208. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  209. format slot 9 of player with cake_item named "&6&lalchemylab" with lore "&cCost: %{alchemylab.price.%event-player%}% Cookies||&6Owned: %{alchemylab's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie alchemylab"]
  210. else:
  211. send "&c&lYou need more cookies for this!"
  212.  
  213. else if arg-1 is "portal":
  214. if {cookies.%player%} >= {portal.price.%player%}:
  215. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  216. remove {portal.price.%player%} from {cookies.%player%}
  217. add 10000000 to {multiplyer.%player%}
  218. add 1 to {portal's.%player%}
  219. set {portal.price.%player%} to {portal.price.%player%} + ({portal.price.%player%} * 0.15)
  220. set {portal.price.%player%} to round({portal.price.%player%})
  221. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  222. format slot 10 of player with cake_item named "&5&lPortal" with lore "&cCost: %{portal.price.%event-player%}% Cookies||&6Owned: %{portal's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie portal"]
  223. else:
  224. send "&c&lYou need more cookies for this!"
  225.  
  226. else if arg-1 is "timemachine":
  227. if {cookies.%player%} >= {timemachine.price.%player%}:
  228. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  229. remove {timemachine.price.%player%} from {cookies.%player%}
  230. add 65000000 to {multiplyer.%player%}
  231. add 1 to {timemachine's.%player%}
  232. set {timemachine.price.%player%} to {timemachine.price.%player%} + ({timemachine.price.%player%} * 0.15)
  233. set {timemachine.price.%player%} to round({timemachine.price.%player%})
  234. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  235. format slot 11 of player with cake_item named "&d&lTime Machine" with lore "&cCost: %{timemachine.price.%event-player%}% Cookies||&6Owned: %{timemachine's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie timemachine"]
  236. else:
  237. send "&c&lYou need more cookies for this!"
  238.  
  239. else if arg-1 is "antimatter-condenser":
  240. if {cookies.%player%} >= {antimatter-condenser.price.%player%}:
  241. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  242. remove {antimatter-condenser.price.%player%} from {cookies.%player%}
  243. add 430000000 to {multiplyer.%player%}
  244. add 1 to {antimatter-condenser's.%player%}
  245. set {antimatter-condenser.price.%player%} to {antimatter-condenser.price.%player%} + ({antimatter-condenser.price.%player%} * 0.15)
  246. set {antimatter-condenser.price.%player%} to round({antimatter-condenser.price.%player%})
  247. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  248. format slot 12 of player with cake_item named "&7&lAnti-Matter Condenser" with lore "&cCost: %{antimatter-condenser.price.%event-player%}% Cookies||&6Owned: %{antimatter-condenser's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie antimatter-condenser"]
  249. else:
  250. send "&c&lYou need more cookies for this!"
  251.  
  252. else if arg-1 is "prism":
  253. if {cookies.%player%} >= {prism.price.%player%}:
  254. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  255. remove {prism.price.%player%} from {cookies.%player%}
  256. add 2900000000 to {multiplyer.%player%}
  257. add 1 to {prism's.%player%}
  258. set {prism.price.%player%} to {prism.price.%player%} + ({prism.price.%player%} * 0.15)
  259. set {prism.price.%player%} to round({prism.price.%player%})
  260. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  261. format slot 13 of player with cake_item named "&b&lPrism" with lore "&cCost: %{prism.price.%event-player%}% Cookies||&6Owned: %{prism's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie prism"]
  262. else:
  263. send "&c&lYou need more cookies for this!"
  264.  
  265. else if arg-1 is "leaderboard":
  266. set {_1st.point} to 0
  267. set {_2nd.point} to 0
  268. set {_3rd.point} to 0
  269. set {_4th.point} to 0
  270. set {_5th.point} to 0
  271. set {_6th.point} to 0
  272. set {_7th.point} to 0
  273. set {_8th.point} to 0
  274. set {_9th.point} to 0
  275. set {_10th.point} to 0
  276. loop {cookie.leaderboard::*}:
  277. if loop-value is more than {_1st.point}:
  278. set {_15th} to {_14th}
  279. set {_15th.point} to {_14th.point}
  280. set {_14th} to {_13th}
  281. set {_14th.point} to {_13th.point}
  282. set {_13th} to {_12th}
  283. set {_13th.point} to {_12th.point}
  284. set {_12th} to {_11th}
  285. set {_12th.point} to {_11th.point}
  286. set {_11th} to {_10th}
  287. set {_11th.point} to {_10th.point}
  288. set {_10th} to {_9th}
  289. set {_10th.point} to {_9th.point}
  290. set {_9th} to {_8th}
  291. set {_9th.point} to {_8th.point}
  292. set {_8th} to {_7th}
  293. set {_8th.point} to {_7th.point}
  294. set {_7th} to {_6th}
  295. set {_7th.point} to {_6th.point}
  296. set {_6th} to {_5th}
  297. set {_6th.point} to {_5th.point}
  298. set {_5th} to {_4th}
  299. set {_5th.point} to {_4th.point}
  300. set {_4th} to {_3rd}
  301. set {_4th.point} to {_3rd.point}
  302. set {_3rd} to {_2nd}
  303. set {_3rd.point} to {_2nd.point}
  304. set {_2nd} to {_1st}
  305. set {_2nd.point} to {_1st.point}
  306. set {_1st} to loop-index
  307. set {_1st.point} to loop-value
  308. else if loop-value is more than {_2nd.point}:
  309. set {_15th} to {_14th}
  310. set {_15th.point} to {_14th.point}
  311. set {_14th} to {_13th}
  312. set {_14th.point} to {_13th.point}
  313. set {_13th} to {_12th}
  314. set {_13th.point} to {_12th.point}
  315. set {_12th} to {_11th}
  316. set {_12th.point} to {_11th.point}
  317. set {_11th} to {_10th}
  318. set {_11th.point} to {_10th.point}
  319. set {_10th} to {_9th}
  320. set {_10th.point} to {_9th.point}
  321. set {_9th} to {_8th}
  322. set {_9th.point} to {_8th.point}
  323. set {_8th} to {_7th}
  324. set {_8th.point} to {_7th.point}
  325. set {_7th} to {_6th}
  326. set {_7th.point} to {_6th.point}
  327. set {_6th} to {_5th}
  328. set {_6th.point} to {_5th.point}
  329. set {_5th} to {_4th}
  330. set {_5th.point} to {_4th.point}
  331. set {_4th} to {_3rd}
  332. set {_4th.point} to {_3rd.point}
  333. set {_3rd} to {_2nd}
  334. set {_3rd.point} to {_2nd.point}
  335. set {_2nd} to loop-index
  336. set {_2nd.point} to loop-value
  337. else if loop-value is more than {_3rd.point}:
  338. set {_15th} to {_14th}
  339. set {_15th.point} to {_14th.point}
  340. set {_14th} to {_13th}
  341. set {_14th.point} to {_13th.point}
  342. set {_13th} to {_12th}
  343. set {_13th.point} to {_12th.point}
  344. set {_12th} to {_11th}
  345. set {_12th.point} to {_11th.point}
  346. set {_11th} to {_10th}
  347. set {_11th.point} to {_10th.point}
  348. set {_10th} to {_9th}
  349. set {_10th.point} to {_9th.point}
  350. set {_9th} to {_8th}
  351. set {_9th.point} to {_8th.point}
  352. set {_8th} to {_7th}
  353. set {_8th.point} to {_7th.point}
  354. set {_7th} to {_6th}
  355. set {_7th.point} to {_6th.point}
  356. set {_6th} to {_5th}
  357. set {_6th.point} to {_5th.point}
  358. set {_5th} to {_4th}
  359. set {_5th.point} to {_4th.point}
  360. set {_4th} to {_3rd}
  361. set {_4th.point} to {_3rd.point}
  362. set {_3rd} to loop-index
  363. set {_3rd.point} to loop-value
  364. else if loop-value is more than {_4th.point}:
  365. set {_15th} to {_14th}
  366. set {_15th.point} to {_14th.point}
  367. set {_14th} to {_13th}
  368. set {_14th.point} to {_13th.point}
  369. set {_13th} to {_12th}
  370. set {_13th.point} to {_12th.point}
  371. set {_12th} to {_11th}
  372. set {_12th.point} to {_11th.point}
  373. set {_11th} to {_10th}
  374. set {_11th.point} to {_10th.point}
  375. set {_10th} to {_9th}
  376. set {_10th.point} to {_9th.point}
  377. set {_9th} to {_8th}
  378. set {_9th.point} to {_8th.point}
  379. set {_8th} to {_7th}
  380. set {_8th.point} to {_7th.point}
  381. set {_7th} to {_6th}
  382. set {_7th.point} to {_6th.point}
  383. set {_6th} to {_5th}
  384. set {_6th.point} to {_5th.point}
  385. set {_5th} to {_4th}
  386. set {_5th.point} to {_4th.point}
  387. set {_4th} to loop-index
  388. set {_4th.point} to loop-value
  389. else if loop-value is more than {_5th.point}:
  390. set {_15th} to {_14th}
  391. set {_15th.point} to {_14th.point}
  392. set {_14th} to {_13th}
  393. set {_14th.point} to {_13th.point}
  394. set {_13th} to {_12th}
  395. set {_13th.point} to {_12th.point}
  396. set {_12th} to {_11th}
  397. set {_12th.point} to {_11th.point}
  398. set {_11th} to {_10th}
  399. set {_11th.point} to {_10th.point}
  400. set {_10th} to {_9th}
  401. set {_10th.point} to {_9th.point}
  402. set {_9th} to {_8th}
  403. set {_9th.point} to {_8th.point}
  404. set {_8th} to {_7th}
  405. set {_8th.point} to {_7th.point}
  406. set {_7th} to {_6th}
  407. set {_7th.point} to {_6th.point}
  408. set {_6th} to {_5th}
  409. set {_6th.point} to {_5th.point}
  410. set {_5th} to loop-index
  411. set {_5th.point} to loop-value
  412. else if loop-value is more than {_6th.point}:
  413. set {_15th} to {_14th}
  414. set {_15th.point} to {_14th.point}
  415. set {_14th} to {_13th}
  416. set {_14th.point} to {_13th.point}
  417. set {_13th} to {_12th}
  418. set {_13th.point} to {_12th.point}
  419. set {_12th} to {_11th}
  420. set {_12th.point} to {_11th.point}
  421. set {_11th} to {_10th}
  422. set {_11th.point} to {_10th.point}
  423. set {_10th} to {_9th}
  424. set {_10th.point} to {_9th.point}
  425. set {_9th} to {_8th}
  426. set {_9th.point} to {_8th.point}
  427. set {_8th} to {_7th}
  428. set {_8th.point} to {_7th.point}
  429. set {_7th} to {_6th}
  430. set {_7th.point} to {_6th.point}
  431. set {_6th} to loop-index
  432. set {_6th.point} to loop-value
  433. else if loop-value is more than {_7th.point}:
  434. set {_15th} to {_14th}
  435. set {_15th.point} to {_14th.point}
  436. set {_14th} to {_13th}
  437. set {_14th.point} to {_13th.point}
  438. set {_13th} to {_12th}
  439. set {_13th.point} to {_12th.point}
  440. set {_12th} to {_11th}
  441. set {_12th.point} to {_11th.point}
  442. set {_11th} to {_10th}
  443. set {_11th.point} to {_10th.point}
  444. set {_10th} to {_9th}
  445. set {_10th.point} to {_9th.point}
  446. set {_9th} to {_8th}
  447. set {_9th.point} to {_8th.point}
  448. set {_8th} to {_7th}
  449. set {_8th.point} to {_7th.point}
  450. set {_7th} to loop-index
  451. set {_7th.point} to loop-value
  452. else if loop-value is more than {_8th.point}:
  453. set {_15th} to {_14th}
  454. set {_15th.point} to {_14th.point}
  455. set {_14th} to {_13th}
  456. set {_14th.point} to {_13th.point}
  457. set {_13th} to {_12th}
  458. set {_13th.point} to {_12th.point}
  459. set {_12th} to {_11th}
  460. set {_12th.point} to {_11th.point}
  461. set {_11th} to {_10th}
  462. set {_11th.point} to {_10th.point}
  463. set {_10th} to {_9th}
  464. set {_10th.point} to {_9th.point}
  465. set {_9th} to {_8th}
  466. set {_9th.point} to {_8th.point}
  467. set {_8th} to loop-index
  468. set {_8th.point} to loop-value
  469. else if loop-value is more than {_9th.point}:
  470. set {_15th} to {_14th}
  471. set {_15th.point} to {_14th.point}
  472. set {_14th} to {_13th}
  473. set {_14th.point} to {_13th.point}
  474. set {_13th} to {_12th}
  475. set {_13th.point} to {_12th.point}
  476. set {_12th} to {_11th}
  477. set {_12th.point} to {_11th.point}
  478. set {_11th} to {_10th}
  479. set {_11th.point} to {_10th.point}
  480. set {_10th} to {_9th}
  481. set {_10th.point} to {_9th.point}
  482. set {_9th} to loop-index
  483. set {_9th.point} to loop-value
  484. else if loop-value is more than {_10th.point}:
  485. set {_15th} to {_14th}
  486. set {_15th.point} to {_14th.point}
  487. set {_14th} to {_13th}
  488. set {_14th.point} to {_13th.point}
  489. set {_13th} to {_12th}
  490. set {_13th.point} to {_12th.point}
  491. set {_12th} to {_11th}
  492. set {_12th.point} to {_11th.point}
  493. set {_11th} to {_10th}
  494. set {_11th.point} to {_10th.point}
  495. set {_10th} to {_9th}
  496. set {_10th.point} to {_9th.point}
  497. else if loop-value is more than {_11th.point}:
  498. set {_15th} to {_14th}
  499. set {_15th.point} to {_14th.point}
  500. set {_14th} to {_13th}
  501. set {_14th.point} to {_13th.point}
  502. set {_13th} to {_12th}
  503. set {_13th.point} to {_12th.point}
  504. set {_12th} to {_11th}
  505. set {_12th.point} to {_11th.point}
  506. set {_11th} to {_10th}
  507. set {_11th.point} to {_10th.point}
  508. else if loop-value is more than {_12th.point}:
  509. set {_15th} to {_14th}
  510. set {_15th.point} to {_14th.point}
  511. set {_14th} to {_13th}
  512. set {_14th.point} to {_13th.point}
  513. set {_13th} to {_12th}
  514. set {_13th.point} to {_12th.point}
  515. set {_12th} to {_11th}
  516. set {_12th.point} to {_11th.point}
  517. else if loop-value is more than {_13th.point}:
  518. set {_15th} to {_14th}
  519. set {_15th.point} to {_14th.point}
  520. set {_14th} to {_13th}
  521. set {_14th.point} to {_13th.point}
  522. set {_13th} to {_12th}
  523. set {_13th.point} to {_12th.point}
  524. else if loop-value is more than {_14th.point}:
  525. set {_15th} to {_14th}
  526. set {_15th.point} to {_14th.point}
  527. set {_14th} to {_13th}
  528. set {_14th.point} to {_13th.point}
  529. else if loop-value is more than {_15th.point}:
  530. set {_15th} to {_14th}
  531. set {_15th.point} to {_14th.point}
  532. send "&9&l======= &f&6&lTop Clickers &9&l======="
  533. send "&e1st : &7%{_1st}% - &c%{_1st.point}% &7cookies"
  534. send "&72nd : &7%{_2nd}% - &c%{_2nd.point}% &7cookies"
  535. send "&63rd : &7%{_3rd}% - &c%{_3rd.point}% &7cookies"
  536. send "&r4th : &7%{_4th}% - &c%{_4th.point}% &7cookies"
  537. send "&r5th : &7%{_5th}% - &c%{_5th.point}% &7cookies"
  538. send "&r6th : &7%{_6th}% - &c%{_6th.point}% &7cookies"
  539. send "&r7th : &7%{_7th}% - &c%{_7th.point}% &7cookies"
  540. send "&r8th : &7%{_8th}% - &c%{_8th.point}% &7cookies"
  541. send "&r9th : &7%{_9th}% - &c%{_9th.point}% &7cookies"
  542. send "&r10th : &7%{_10th}% - &c%{_10th.point}% &7cookies"
  543. #send "&r11th : &7%{_11th}% - &c%{_11th.point}% &7cookies"
  544. #send "&r12th : &7%{_12th}% - &c%{_12th.point}% &7cookies"
  545. #send "&r13th : &7%{_13th}% - &c%{_13th.point}% &7cookies"
  546. #send "&r14th : &7%{_14th}% - &c%{_14th.point}% &7cookies"
  547. #send "&r15th : &7%{_15th}% - &c%{_15th.point}% &7cookies"
  548. send "&9&l======= &f&6&lTop Clickers &9&l======="
  549.  
  550. else:
  551. send "&cSorry that is not a valid cookie clicker command!" to player
  552.  
  553. else:
  554. set {_cookie} to a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%player%}%&7>>"
  555. give {_cookie} to the player
  556.  
  557.  
  558. on rightclick:
  559. if event-player is holding a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>":
  560. cancel event
  561. remove a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" from event-player
  562. add {multiplyer.%event-player%} to {cookies.%event-player%}
  563. give a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%event-player%}%&7>>" to event-player
  564. else:
  565. stop
  566.  
  567. on leftclick:
  568. if player is holding a cookie named "&6&lCookie Clicker &7<<&e%{cookies.%player%}%&7>>":
  569. cancel event
  570. open chest with 4 rows named "Cookie Clicker" to player
  571. set {_cookieplayer} to "%player%" parsed as player
  572. wait 3 ticks
  573. format slot 0 of player with arrow named "&f&lCursor" with lore "&cCost: %{cursor.price.%event-player%}% Cookies||&6Owned: %{cursor's.%event-player%}%||&8+0.1 Every Click" to run [make event-player execute "/cookie cursor"]
  574. format slot 1 of player with cake_item named "&6&lGrandma" with lore "&cCost: %{grandma.price.%event-player%}% Cookies||&6Owned: %{grandma's.%event-player%}%||&8+1 Every Click" to run [make event-player execute "/cookie grandma"]
  575. format slot 2 of player with golden_hoe named "&e&lFarm" with lore "&cCost: %{farm.price.%event-player%}% Cookies||&6Owned: %{farm's.%event-player%}%||&8+8 Every Click" to run [make event-player execute "/cookie farm"]
  576. format slot 3 of player with stone_pickaxe named "&8&lMine" with lore "&cCost: %{mine.price.%event-player%}% Cookies||&6Owned: %{mine's.%event-player%}%||&8+47 Every Click" to run [make event-player execute "/cookie mine"]
  577. format slot 4 of player with piston_base named "&6&lFactory" with lore "&cCost: %{factory.price.%event-player%}% Cookies||&6Owned: %{factory's.%event-player%}%||&8+260 Every Click" to run [make event-player execute "/cookie factory"]
  578. format slot 5 of player with diamond named "&f&lBank" with lore "&cCost: %{bank.price.%event-player%}% Cookies||&6Owned: %{bank's.%event-player%}%||&8+1400 Every Click" to run [make event-player execute "/cookie bank"]
  579. format slot 6 of player with cracked_stone_brick named "&5&lTemple" with lore "&cCost: %{temple.price.%event-player%}% Cookies||&6Owned: %{temple's.%event-player%}%||&8+7800 Every Click" to run [make event-player execute "/cookie temple"]
  580. format slot 7 of player with blaze_rod named "&d&lWizard Tower" with lore "&cCost: %{wizardtower.price.%event-player%}% Cookies||&6Owned: %{wizardtower's.%event-player%}%||&8+44000 Every Click" to run [make event-player execute "/cookie wizardtower"]
  581. format slot 8 of player with blaze_powder named "&4&lShipment" with lore "&cCost: %{shipment.price.%event-player%}% Cookies||&6Owned: %{shipment's.%event-player%}%||&8+260000 Every Click" to run [make event-player execute "/cookie shipment"]
  582. format slot 9 of player with glass_bottle named "&6&lAlchemy Lab" with lore "&cCost: %{alchemylab.price.%event-player%}% Cookies||&6Owned: %{alchemylab's.%event-player%}%||&8+1.6 Million Every Click" to run [make event-player execute "/cookie alchemylab"]
  583. format slot 10 of player with ender_portal_frame named "&5&lPortal" with lore "&cCost: %{portal.price.%event-player%}% Cookies||&6Owned: %{portal's.%event-player%}%||&8+10 Million Every Click" to run [make event-player execute "/cookie portal"]
  584. format slot 11 of player with clock named "&d&lTime Machine" with lore "&cCost: %{timemachine.price.%event-player%}% Cookies||&6Owned: %{timemachine's.%event-player%}%||&8+65 Million Every Click" to run [make event-player execute "/cookie timemachine"]
  585. format slot 12 of player with daylight_sensor named "&7&lAnti-Matter Condenser" with lore "&cCost: %{antimatter-condenser.price.%event-player%}% Cookies||&6Owned: %{antimatter-condenser's.%event-player%}%||&8+430 Million Every Click" to run [make event-player execute "/cookie antimatter-condenser"]
  586. format slot 13 of player with prismarine_shard named "&b&lPrism" with lore "&cCost: %{prism.price.%event-player%}% Cookies||&6Owned: %{prism's.%event-player%}%||&8+2.9 Billion Every Click" to run [make event-player execute "/cookie prism"]
  587. format slot 27 of player with ender_pearl named "&f&lLeaderboard" with lore "&cClick for the top 10 cookie clickers!" to run [make event-player execute "/cookie leaderboard"]
  588. format slot 31 of player with skull of {_cookieplayer} named "&e&lYour Stats" with lore "&cCookies: %{cookies.%event-player%}%||&6Cookies Per Click: %{multiplyer.%event-player%}%" to close
  589. format slot 35 of player with book named "&6&lAchievements" with lore "&cClick for achievements!||&d&lCOMING SOON!" to close #to run [make event-player execute "/cookie achievements"]
Advertisement
Add Comment
Please, Sign In to add comment