pewax

Cookie Clicker 0.1 Beta

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