pewax

Spawner Rankup 0.1

Jul 3rd, 2016
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.32 KB | None | 0 0
  1. #
  2. # Spawner Rankup By OMGTurtlesFTW/pewax!
  3. #
  4.  
  5. #Chicken - 10 Kills - 1000
  6. #Rabbit- 15 kills - 1500
  7. #Pig - 20 Kills - 2000
  8. #Cow - 25 Kills - 2500
  9. #Horse - 25 kills - 2500
  10. #Guardian - 25 kills - 2500
  11. #Squid - 15 kills - 1500
  12. #Wolf - 30 kills - 3000
  13. #Skeleton - 35 kills - 3500
  14. #Zombie - 40 Kills - 4000
  15. #Silverfish - 35 kills - 3500
  16. #Slime - 35 kills - 3500
  17. #Magma Cube/Slime - 30 kills - 3000
  18. #Creeper - 45 kills - 4500
  19. #Ghast - 35 kills - 3500
  20. #Enderman - 50 kills - 5000
  21. #Iron Golem - 40 kills - 4000
  22. #Zombie Pigman - 50 kills - 5000
  23. #Wither - 95 kills - 9500
  24.  
  25. variables:
  26. {spawnerRankup.chicken.%player%} = 10
  27. # {spawnerRankup.rabbit.%player%} = 15
  28. {spawnerRankup.pig.%player%} = 20
  29. {spawnerRankup.cow.%player%} = 25
  30. {spawnerRankup.horse.%player%} = 25
  31. # {spawnerRankup.guardian.%player%} = 25
  32. {spawnerRankup.squid.%player%} = 15
  33. {spawnerRankup.wolf.%player%} = 30
  34. {spawnerRankup.skeleton.%player%} = 35
  35. {spawnerRankup.zombie.%player%} = 40
  36. {spawnerRankup.silverfish.%player%} = 35
  37. {spawnerRankup.slime.%player%} = 30
  38. {spawnerRankup.magmaCube.%player%} = 35
  39. {spawnerRankup.creeper.%player%} = 45
  40. {spawnerRankup.ghast.%player%} = 35
  41. {spawnerRankup.enderman.%player%} = 50
  42. {spawnerRankup.ironGolem.%player%} = 40
  43. {spawnerRankup.zombiePigman.%player%} = 50
  44. {spawnerRankup.witherSkeleton.%player%} = 95
  45.  
  46. command /rankup:
  47. description: Opens up the rankup GUI menu
  48. usage: This command is used to open the spawner rankup menu!
  49. permission: spawner.rankup.use
  50. permission message: &4You don't have the permission to use this command!
  51. trigger:
  52. open chest with 2 rows named "Spawner Menu" to player
  53. wait 3 ticks
  54. format slot 0 of player with a player head named "&f&lChicken" with lore "&a&lClick For Mob Infomation" to close then run [send "&aChicken kills until spawner unlock: &5%{spawnerRankup.chicken.%player%}%"]
  55. format slot 1 of player with a player head named "&f&lPig" with lore "&a&lClick For Mob Infomation" to close then run [send "&aPig kills until spawner unlock: &5%{spawnerRankup.pig.%player%}%"]
  56. format slot 2 of player with a player head named "&f&lCow" with lore "&a&lClick For Mob Infomation" to close then run [send "&aCow kills until spawner unlock: &5%{spawnerRankup.cow.%player%}%"]
  57. format slot 3 of player with a player head named "&f&lHorse" with lore "&a&lClick For Mob Infomation" to close then run [send "&aHorse kills until spawner unlock: &5%{spawnerRankup.horse.%player%}%"]
  58. format slot 4 of player with a player head named "&f&lSquid" with lore "&a&lClick For Mob Infomation" to close then run [send "&aSquid kills until spawner unlock: &5%{spawnerRankup.squid.%player%}%"]
  59. format slot 5 of player with a player head named "&f&lWolf" with lore "&a&lClick For Mob Infomation" to close then run [send "&aWolf kills until spawner unlock: &5%{spawnerRankup.wolf.%player%}%"]
  60. format slot 6 of player with a player head named "&f&lSkeleton" with lore "&a&lClick For Mob Infomation" to close then run [send "&aSkeleton kills until spawner unlock: &5%{spawnerRankup.skeleton.%player%}%"]
  61. format slot 7 of player with a player head named "&f&lZombie" with lore "&a&lClick For Mob Infomation" to close then run [send "&aZombie kills until spawner unlock: &5%{spawnerRankup.zombie.%player%}%"]
  62. format slot 8 of player with a player head named "&f&lSilverfish" with lore "&a&lClick For Mob Infomation" to close then run [send "&aSilverfish kills until spawner unlock: &5%{spawnerRankup.silverfish.%player%}%"]
  63. format slot 9 of player with a player head named "&f&lSlime" with lore "&a&lClick For Mob Infomation" to close then run [send "&aSlime kills until spawner unlock: &5%{spawnerRankup.slime.%player%}%"]
  64. format slot 10 of player with a player head named "&f&lMagma Cube" with lore "&a&lClick For Mob Infomation" to close then run [send "&aMagma Cube kills until spawner unlock: &5%{spawnerRankup.magmaCube.%player%}%"]
  65. format slot 11 of player with a player head named "&f&lCreeper" with lore "&a&lClick For Mob Infomation" to close then run [send "&aCreeper kills until spawner unlock: &5%{spawnerRankup.creeper.%player%}%"]
  66. format slot 12 of player with a player head named "&f&lGhast" with lore "&a&lClick For Mob Infomation" to close then run [send "&aGhast kills until spawner unlock: &5%{spawnerRankup.ghast.%player%}%"]
  67. format slot 13 of player with a player head named "&f&lEnderman" with lore "&a&lClick For Mob Infomation" to close then run [send "&aEnderman kills until spawner unlock: &5%{spawnerRankup.enderman.%player%}%"]
  68. format slot 14 of player with a player head named "&f&lIron Golem" with lore "&a&lClick For Mob Infomation" to close then run [send "&aIron Golem kills until spawner unlock: &5%{spawnerRankup.ironGolem.%player%}%"]
  69. format slot 15 of player with a player head named "&f&lZombie Pigman" with lore "&a&lClick For Mob Infomation" to close then run [send "&aZombie Pigman kills until spawner unlock: &5%{spawnerRankup.zombiePigman.%player%}%"]
  70. format slot 16 of player with a player head named "&f&lWither Skeleton" with lore "&a&lClick For Mob Infomation" to close then run [send "&aWither Skeleton kills until spawner unlock: &5%{spawnerRankup.witherSkeleton.%player%}%"]
  71.  
  72. command /spawnerperms:
  73. trigger:
  74. wait 1 second
  75. addUserPermission(player, "signrankup.create")
  76. send "&aYou have been given the permissions!"
  77.  
  78. command /reset:
  79. permission: spawner.rankup.reset
  80. trigger:
  81. set {spawnerRankup.chicken.%player%} to 10
  82. set {spawnerRankup.pig.%player%} to 20
  83. set {spawnerRankup.cow.%player%} to 25
  84. set {spawnerRankup.horse.%player%} to 25
  85. set {spawnerRankup.squid.%player%} to 15
  86. set {spawnerRankup.wolf.%player%} to 30
  87. set {spawnerRankup.skeleton.%player%} to 35
  88. set {spawnerRankup.zombie.%player%} to 40
  89. set {spawnerRankup.silverfish.%player%} to 35
  90. set {spawnerRankup.slime.%player%} to 30
  91. set {spawnerRankup.magmaCube.%player%} to 35
  92. set {spawnerRankup.creeper.%player%} to 45
  93. set {spawnerRankup.ghast.%player%} to 35
  94. set {spawnerRankup.enderman.%player%} to 50
  95. set {spawnerRankup.ironGolem.%player%} to 40
  96. set {spawnerRankup.zombiePigman.%player%} to 50
  97. set {spawnerRankup.witherSkeleton.%player%} to 95
  98.  
  99. on damage:
  100. if victim is chicken:
  101. if attacker is player:
  102. wait 1 tick
  103. if victim is dead:
  104. set {_player} to attacker
  105. if {spawnerRankup.chicken.%{_player}%} is greater than 0:
  106. subtract 1 from {spawnerRankup.chicken.%{_player}%}
  107. else:
  108. stop
  109. else if victim is pig:
  110. if attacker is player:
  111. wait 1 tick
  112. if victim is dead:
  113. set {_player} to attacker
  114. if {spawnerRankup.pig.%{_player}%} is greater than 0:
  115. subtract 1 from {spawnerRankup.pig.%{_player}%}
  116. else:
  117. stop
  118. else if victim is cow:
  119. if attacker is player:
  120. wait 1 tick
  121. if victim is dead:
  122. set {_player} to attacker
  123. if {spawnerRankup.cow.%{_player}%} is greater than 0:
  124. subtract 1 from {spawnerRankup.cow.%{_player}%}
  125. else:
  126. stop
  127. else if victim is horse:
  128. if attacker is player:
  129. wait 1 tick
  130. if victim is dead:
  131. set {_player} to attacker
  132. if {spawnerRankup.horse.%{_player}%} is greater than 0:
  133. subtract 1 from {spawnerRankup.horse.%{_player}%}
  134. else:
  135. stop
  136. else if victim is squid:
  137. if attacker is player:
  138. wait 1 tick
  139. if victim is dead:
  140. set {_player} to attacker
  141. if {spawnerRankup.squid.%{_player}%} is greater than 0:
  142. subtract 1 from {spawnerRankup.squid.%{_player}%}
  143. else:
  144. stop
  145. else if victim is wolf:
  146. if attacker is player:
  147. wait 1 tick
  148. if victim is dead:
  149. set {_player} to attacker
  150. if {spawnerRankup.wolf.%{_player}%} is greater than 0:
  151. subtract 1 from {spawnerRankup.wolf.%{_player}%}
  152. else:
  153. stop
  154. else if victim is skeleton:
  155. if attacker is player:
  156. wait 1 tick
  157. if victim is dead:
  158. set {_player} to attacker
  159. if {spawnerRankup.skeleton.%{_player}%} is greater than 0:
  160. subtract 1 from {spawnerRankup.skeleton.%{_player}%}
  161. else:
  162. stop
  163. else if victim is zombie:
  164. if attacker is player:
  165. wait 1 tick
  166. if victim is dead:
  167. set {_player} to attacker
  168. if {spawnerRankup.zombie.%{_player}%} is greater than 0:
  169. subtract 1 from {spawnerRankup.zombie.%{_player}%}
  170. else:
  171. stop
  172. else if victim is silverfish:
  173. if attacker is player:
  174. wait 1 tick
  175. if victim is dead:
  176. set {_player} to attacker
  177. if {spawnerRankup.silverfish.%{_player}%} is greater than 0:
  178. subtract 1 from {spawnerRankup.silverfish.%{_player}%}
  179. else:
  180. stop
  181. else if victim is slime:
  182. if attacker is player:
  183. wait 1 tick
  184. if victim is dead:
  185. set {_player} to attacker
  186. if {spawnerRankup.slime.%{_player}%} is greater than 0:
  187. subtract 1 from {spawnerRankup.slime.%{_player}%}
  188. else:
  189. stop
  190. else if victim is magma cube:
  191. if attacker is player:
  192. wait 1 tick
  193. if victim is dead:
  194. set {_player} to attacker
  195. if {spawnerRankup.magmaCube.%{_player}%} is greater than 0:
  196. subtract 1 from {spawnerRankup.magmaCube.%{_player}%}
  197. else:
  198. stop
  199. else if victim is creeper:
  200. if attacker is player:
  201. wait 1 tick
  202. if victim is dead:
  203. set {_player} to attacker
  204. if {spawnerRankup.creeper.%{_player}%} is greater than 0:
  205. subtract 1 from {spawnerRankup.creeper.%{_player}%}
  206. else:
  207. stop
  208. else if victim is ghast:
  209. if attacker is player:
  210. wait 1 tick
  211. if victim is dead:
  212. set {_player} to attacker
  213. if {spawnerRankup.ghast.%{_player}%} is greater than 0:
  214. subtract 1 from {spawnerRankup.ghast.%{_player}%}
  215. else:
  216. stop
  217. else if victim is enderman:
  218. if attacker is player:
  219. wait 1 tick
  220. if victim is dead:
  221. set {_player} to attacker
  222. if {spawnerRankup.enderman.%{_player}%} is greater than 0:
  223. subtract 1 from {spawnerRankup.enderman.%{_player}%}
  224. else:
  225. stop
  226. else if victim is iron golem:
  227. if attacker is player:
  228. wait 1 tick
  229. if victim is dead:
  230. set {_player} to attacker
  231. if {spawnerRankup.ironGolem.%{_player}%} is greater than 0:
  232. subtract 1 from {spawnerRankup.ironGolem.%{_player}%}
  233. else:
  234. stop
  235. else if victim is zombie pigman:
  236. if attacker is player:
  237. wait 1 tick
  238. if victim is dead:
  239. set {_player} to attacker
  240. if {spawnerRankup.zombiePigman.%{_player}%} is greater than 0:
  241. subtract 1 from {spawnerRankup.zombiePigman.%{_player}%}
  242. else:
  243. stop
  244. else if victim is wither skeleton:
  245. if attacker is player:
  246. wait 1 tick
  247. if victim is dead:
  248. set {_player} to attacker
  249. if {spawnerRankup.witherSkeleton.%{_player}%} is greater than 0:
  250. subtract 1 from {spawnerRankup.witherSkeleton.%{_player}%}
  251. else:
  252. stop
  253.  
  254. on sign change:
  255. line 1 is "[Spawner]"
  256. line 2 is "Chicken"
  257. if player is op:
  258. message "&bYou have created a spawner sign!"
  259. set 1st line to "&8[&2Spawner&8]"
  260. set 2nd line to "Chicken"
  261. set 3rd line to "1"
  262. set 4th line to "$1000"
  263. else:
  264. delete event-block
  265. give player a sign
  266. message "&cYou do not have permission to do that!"
  267.  
  268. on right click on sign:
  269. 1st line of clicked block is "&8[&2Spawner&8]"
  270. 2nd line of clicked block is "Chicken"
  271. 3rd line of clicked block is "1"
  272. 4th line of clicked block is "$1000"
  273. if balance of player >= 1000:
  274. if {spawnerRankup.chicken.%player%} >= 10:
  275. remove 1000 from player
  276. send "You have brought a spawner!" to player
  277.  
  278. on sign change:
  279. line 1 is "[Spawner]"
  280. line 2 is "Wolf"
  281. if player is op:
  282. message "&bYou have created a spawner sign!"
  283. set 1st line to "&8[&2Spawner&8]"
  284. set 2nd line to "Wolf"
  285. set 3rd line to "1"
  286. set 4th line to "$3000"
  287. else:
  288. delete event-block
  289. give player a sign
  290. message "&cYou do not have permission to do that!"
  291.  
  292. on right click on sign:
  293. 1st line of clicked block is "&8[&2Spawner&8]"
  294. 2nd line of clicked block is "Wolf"
  295. 3rd line of clicked block is "1"
  296. 4th line of clicked block is "$3000"
  297. if balance of player >= 3000:
  298. if {spawnerRankup.wolf.%player%} >= 30:
  299. remove 1000 from player
  300. send "You have brought a spawner!" to player
  301.  
  302. on sign change:
  303. line 1 is "[Spawner]"
  304. line 2 is "Pig"
  305. if player is op:
  306. message "&bYou have created a spawner sign!"
  307. set 1st line to "&8[&2Spawner&8]"
  308. set 2nd line to "Pig"
  309. set 3rd line to "1"
  310. set 4th line to "$2000"
  311. else:
  312. delete event-block
  313. give player a sign
  314. message "&cYou do not have permission to do that!"
  315.  
  316. on right click on sign:
  317. 1st line of clicked block is "&8[&2Spawner&8]"
  318. 2nd line of clicked block is "Pig"
  319. 3rd line of clicked block is "1"
  320. 4th line of clicked block is "$2000"
  321. if balance of player >= 2000:
  322. if {spawnerRankup.pig.%player%} >= 20:
  323. remove 2000 from player
  324. send "You have brought a spawner!" to player
  325.  
  326. on sign change:
  327. line 1 is "[Spawner]"
  328. line 2 is "Cow"
  329. if player is op:
  330. message "&bYou have created a spawner sign!"
  331. set 1st line to "&8[&2Spawner&8]"
  332. set 2nd line to "Cow"
  333. set 3rd line to "1"
  334. set 4th line to "$2500"
  335. else:
  336. delete event-block
  337. give player a sign
  338. message "&cYou do not have permission to do that!"
  339.  
  340. on right click on sign:
  341. 1st line of clicked block is "&8[&2Spawner&8]"
  342. 2nd line of clicked block is "Cow"
  343. 3rd line of clicked block is "1"
  344. 4th line of clicked block is "$2500"
  345. if balance of player >= 2500:
  346. if {spawnerRankup.cow.%player%} >= 25:
  347. remove 2500 from player
  348. send "You have brought a spawner!" to player
  349.  
  350. on sign change:
  351. line 1 is "[Spawner]"
  352. line 2 is "Horse"
  353. if player is op:
  354. message "&bYou have created a spawner sign!"
  355. set 1st line to "&8[&2Spawner&8]"
  356. set 2nd line to "Horse"
  357. set 3rd line to "1"
  358. set 4th line to "$2500"
  359. else:
  360. delete event-block
  361. give player a sign
  362. message "&cYou do not have permission to do that!"
  363.  
  364. on right click on sign:
  365. 1st line of clicked block is "&8[&2Spawner&8]"
  366. 2nd line of clicked block is "Horse"
  367. 3rd line of clicked block is "1"
  368. 4th line of clicked block is "$2500"
  369. if balance of player >= 2500:
  370. if {spawnerRankup.horse.%player%} >= 25:
  371. remove 2500 from player
  372. send "You have brought a spawner!" to player
  373.  
  374. on sign change:
  375. line 1 is "[Spawner]"
  376. line 2 is "Squid"
  377. if player is op:
  378. message "&bYou have created a spawner sign!"
  379. set 1st line to "&8[&2Spawner&8]"
  380. set 2nd line to "Squid"
  381. set 3rd line to "1"
  382. set 4th line to "$1500"
  383. else:
  384. delete event-block
  385. give player a sign
  386. message "&cYou do not have permission to do that!"
  387.  
  388. on right click on sign:
  389. 1st line of clicked block is "&8[&2Spawner&8]"
  390. 2nd line of clicked block is "Squid"
  391. 3rd line of clicked block is "1"
  392. 4th line of clicked block is "$1500"
  393. if balance of player >= 1500:
  394. if {spawnerRankup.squid.%player%} >= 15:
  395. remove 1500 from player
  396. send "You have brought a spawner!" to player
  397.  
  398. on sign change:
  399. line 1 is "[Spawner]"
  400. line 2 is "Skeleton"
  401. if player is op:
  402. message "&bYou have created a spawner sign!"
  403. set 1st line to "&8[&2Spawner&8]"
  404. set 2nd line to "Skeleton"
  405. set 3rd line to "1"
  406. set 4th line to "$3500"
  407. else:
  408. delete event-block
  409. give player a sign
  410. message "&cYou do not have permission to do that!"
  411.  
  412. on right click on sign:
  413. 1st line of clicked block is "&8[&2Spawner&8]"
  414. 2nd line of clicked block is "Skeleton"
  415. 3rd line of clicked block is "1"
  416. 4th line of clicked block is "$3500"
  417. if balance of player >= 3500:
  418. if {spawnerRankup.skeleton.%player%} >= 25:
  419. remove 3500 from player
  420. send "You have brought a spawner!" to player
  421.  
  422. on sign change:
  423. line 1 is "[Spawner]"
  424. line 2 is "Zombie"
  425. if player is op:
  426. message "&bYou have created a spawner sign!"
  427. set 1st line to "&8[&2Spawner&8]"
  428. set 2nd line to "Zombie"
  429. set 3rd line to "1"
  430. set 4th line to "$4000"
  431. else:
  432. delete event-block
  433. give player a sign
  434. message "&cYou do not have permission to do that!"
  435.  
  436. on right click on sign:
  437. 1st line of clicked block is "&8[&2Spawner&8]"
  438. 2nd line of clicked block is "Zombie"
  439. 3rd line of clicked block is "1"
  440. 4th line of clicked block is "$4000"
  441. if balance of player >= 4000:
  442. if {spawnerRankup.zombie.%player%} >= 40:
  443. remove 4000 from player
  444. send "You have brought a spawner!" to player
  445.  
  446. on sign change:
  447. line 1 is "[Spawner]"
  448. line 2 is "Silverfish"
  449. if player is op:
  450. message "&bYou have created a spawner sign!"
  451. set 1st line to "&8[&2Spawner&8]"
  452. set 2nd line to "Silverfish"
  453. set 3rd line to "1"
  454. set 4th line to "$3500"
  455. else:
  456. delete event-block
  457. give player a sign
  458. message "&cYou do not have permission to do that!"
  459.  
  460. on right click on sign:
  461. 1st line of clicked block is "&8[&2Spawner&8]"
  462. 2nd line of clicked block is "Silverfish"
  463. 3rd line of clicked block is "1"
  464. 4th line of clicked block is "$3500"
  465. if balance of player >= 3500:
  466. if {spawnerRankup.silverfish.%player%} >= 35:
  467. remove 3500 from player
  468. send "You have brought a spawner!" to player
  469.  
  470. on sign change:
  471. line 1 is "[Spawner]"
  472. line 2 is "Slime"
  473. if player is op:
  474. message "&bYou have created a spawner sign!"
  475. set 1st line to "&8[&2Spawner&8]"
  476. set 2nd line to "Slime"
  477. set 3rd line to "1"
  478. set 4th line to "$3500"
  479. else:
  480. delete event-block
  481. give player a sign
  482. message "&cYou do not have permission to do that!"
  483.  
  484. on right click on sign:
  485. 1st line of clicked block is "&8[&2Spawner&8]"
  486. 2nd line of clicked block is "Slime"
  487. 3rd line of clicked block is "1"
  488. 4th line of clicked block is "$3000"
  489. if balance of player >= 3500:
  490. if {spawnerRankup.slime.%player%} >= 30:
  491. remove 3500 from player
  492. send "You have brought a spawner!" to player
  493.  
  494. on sign change:
  495. line 1 is "[Spawner]"
  496. line 2 is "Magma Cube"
  497. if player is op:
  498. message "&bYou have created a spawner sign!"
  499. set 1st line to "&8[&2Spawner&8]"
  500. set 2nd line to "Magma Cube"
  501. set 3rd line to "1"
  502. set 4th line to "$3000"
  503. else:
  504. delete event-block
  505. give player a sign
  506. message "&cYou do not have permission to do that!"
  507.  
  508. on right click on sign:
  509. 1st line of clicked block is "&8[&2Spawner&8]"
  510. 2nd line of clicked block is "Magma Cube"
  511. 3rd line of clicked block is "1"
  512. 4th line of clicked block is "$3000"
  513. if balance of player >= 3000:
  514. if {spawnerRankup.magmaCube.%player%} >= 35:
  515. remove 3000 from player
  516. send "You have brought a spawner!" to player
  517.  
  518. on sign change:
  519. line 1 is "[Spawner]"
  520. line 2 is "Creeper"
  521. if player is op:
  522. message "&bYou have created a spawner sign!"
  523. set 1st line to "&8[&2Spawner&8]"
  524. set 2nd line to "Creeper"
  525. set 3rd line to "1"
  526. set 4th line to "$4500"
  527. else:
  528. delete event-block
  529. give player a sign
  530. message "&cYou do not have permission to do that!"
  531.  
  532. on right click on sign:
  533. 1st line of clicked block is "&8[&2Spawner&8]"
  534. 2nd line of clicked block is "Creeper"
  535. 3rd line of clicked block is "1"
  536. 4th line of clicked block is "$4500"
  537. if balance of player >= 4500:
  538. if {spawnerRankup.creeper.%player%} >= 45:
  539. remove 4500 from player
  540. send "You have brought a spawner!" to player
  541.  
  542. on sign change:
  543. line 1 is "[Spawner]"
  544. line 2 is "Ghast"
  545. if player is op:
  546. message "&bYou have created a spawner sign!"
  547. set 1st line to "&8[&2Spawner&8]"
  548. set 2nd line to "Ghast"
  549. set 3rd line to "1"
  550. set 4th line to "$3500"
  551. else:
  552. delete event-block
  553. give player a sign
  554. message "&cYou do not have permission to do that!"
  555.  
  556. on right click on sign:
  557. 1st line of clicked block is "&8[&2Spawner&8]"
  558. 2nd line of clicked block is "Ghast"
  559. 3rd line of clicked block is "1"
  560. 4th line of clicked block is "$3500"
  561. if balance of player >= 3500:
  562. if {spawnerRankup.ghast.%player%} >= 35:
  563. remove 3500 from player
  564. send "You have brought a spawner!" to player
  565.  
  566. on sign change:
  567. line 1 is "[Spawner]"
  568. line 2 is "Enderman"
  569. if player is op:
  570. message "&bYou have created a spawner sign!"
  571. set 1st line to "&8[&2Spawner&8]"
  572. set 2nd line to "Enderman"
  573. set 3rd line to "1"
  574. set 4th line to "$5000"
  575. else:
  576. delete event-block
  577. give player a sign
  578. message "&cYou do not have permission to do that!"
  579.  
  580. on right click on sign:
  581. 1st line of clicked block is "&8[&2Spawner&8]"
  582. 2nd line of clicked block is "Enderman"
  583. 3rd line of clicked block is "1"
  584. 4th line of clicked block is "$5000"
  585. if balance of player >= 5000:
  586. if {spawnerRankup.enderman.%player%} >= 50:
  587. remove 5000 from player
  588. send "You have brought a spawner!" to player
  589.  
  590. on sign change:
  591. line 1 is "[Spawner]"
  592. line 2 is "Iron Golem"
  593. if player is op:
  594. message "&bYou have created a spawner sign!"
  595. set 1st line to "&8[&2Spawner&8]"
  596. set 2nd line to "Iron Golem"
  597. set 3rd line to "1"
  598. set 4th line to "$4000"
  599. else:
  600. delete event-block
  601. give player a sign
  602. message "&cYou do not have permission to do that!"
  603.  
  604. on right click on sign:
  605. 1st line of clicked block is "&8[&2Spawner&8]"
  606. 2nd line of clicked block is "Iron Golem"
  607. 3rd line of clicked block is "1"
  608. 4th line of clicked block is "$4000"
  609. if balance of player >= 4000:
  610. if {spawnerRankup.ironGolem.%player%} >= 40:
  611. remove 4000 from player
  612. send "You have brought a spawner!" to player
  613.  
  614. on sign change:
  615. line 1 is "[Spawner]"
  616. line 2 is "Zombie Pigman"
  617. if player is op:
  618. message "&bYou have created a spawner sign!"
  619. set 1st line to "&8[&2Spawner&8]"
  620. set 2nd line to "Zombie Pigman"
  621. set 3rd line to "1"
  622. set 4th line to "$5000"
  623. else:
  624. delete event-block
  625. give player a sign
  626. message "&cYou do not have permission to do that!"
  627.  
  628. on right click on sign:
  629. 1st line of clicked block is "&8[&2Spawner&8]"
  630. 2nd line of clicked block is "&Zombie Pigman"
  631. 3rd line of clicked block is "1"
  632. 4th line of clicked block is "$5000"
  633. if balance of player >= 5000:
  634. if {spawnerRankup.zombiePigman.%player%} >= 50:
  635. remove 5000 from player
  636. send "You have brought a spawner!" to player
  637.  
  638. on sign change:
  639. line 1 is "[Spawner]"
  640. line 2 is "Wither Skeleton"
  641. if player is op:
  642. message "&bYou have created a spawner sign!"
  643. set 1st line to "&8[&2Spawner&8]"
  644. set 2nd line to "Wither Skeleton"
  645. set 3rd line to "1"
  646. set 4th line to "$9500"
  647. else:
  648. delete event-block
  649. give player a sign
  650. message "&cYou do not have permission to do that!"
  651.  
  652. on right click on sign:
  653. 1st line of clicked block is "&8[&2Spawner&8]"
  654. 2nd line of clicked block is "Wither Skeleton"
  655. 3rd line of clicked block is "1"
  656. 4th line of clicked block is "$9500"
  657. if balance of player >= 9500:
  658. if {spawnerRankup.witherSkeleton.%player%} >= 95
  659. remove 9500 from player
  660. send "You have brought a spawner!" to player
Advertisement
Add Comment
Please, Sign In to add comment