Entities

Untitled

Jan 31st, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.21 KB | None | 0 0
  1. on mine of stone:
  2.  
  3. cancel event
  4.  
  5. on break of coal ore:
  6. cancel event
  7. set event-block to stone
  8. give player (a random integer between 1 and 50) of coal ore
  9. add random integer between 5 and 7 to {pd::%uuid of player%::exp}
  10. wait 5 seconds
  11. set event-block to coal ore
  12.  
  13. make player execute "reload:misc"
  14.  
  15. on break of lapis ore:
  16. if {pd::%uuid of player%::lvl} > 24:
  17. cancel event
  18. set event-block to stone
  19. give player (a random integer between 1 and 50) of lapis ore
  20. add random integer between 50 and 100 to {pd::%uuid of player%::exp}
  21. wait 5 seconds
  22. set event-block to lapis ore
  23. make player execute "reload:misc"
  24. else if {pd::%uuid of player%::lvl} < 25:
  25. send player title "&c&lERROR" with subtitle "&7 You must be level 25+" for 1 second
  26. cancel event
  27.  
  28. on break of iron ore:
  29. if {pd::%uuid of player%::lvl} > 39:
  30. cancel event
  31. set event-block to stone
  32. give player (a random integer between 1 and 50) of iron ore
  33. add random integer between 50 and 150 to {pd::%uuid of player%::exp}
  34. wait 5 seconds
  35. set event-block to iron ore
  36. make player execute "reload:misc"
  37. else if {pd::%uuid of player%::lvl} < 40:
  38. send player title "&c&lERROR" with subtitle "&7 You must be level 40+" for 1 second
  39. cancel event
  40.  
  41. on break of gold ore:
  42. if {pd::%uuid of player%::lvl} > 59:
  43. cancel event
  44. set event-block to stone
  45. give player (a random integer between 1 and 50) of gold ore
  46. add random integer between 150 and 250 to {pd::%uuid of player%::exp}
  47. wait 5 seconds
  48. set event-block to gold ore
  49. make player execute "reload:misc"
  50. else if {pd::%uuid of player%::lvl} < 60:
  51. send player title "&c&lERROR" with subtitle "&7 You must be level 60+" for 1 second
  52. cancel event
  53.  
  54. on break of diamond ore:
  55. if {pd::%uuid of player%::lvl} > 84:
  56. cancel event
  57. set event-block to stone
  58. give player (a random integer between 1 and 50) of diamond ore
  59. add random integer between 250 and 500 to {pd::%uuid of player%::exp}
  60. wait 5 seconds
  61. set event-block to diamond ore
  62. make player execute "reload:misc"
  63. else if {pd::%uuid of player%::lvl} < 85:
  64. send player title "&c&lERROR" with subtitle "&7 You must be level 85+" for 1 second
  65. cancel event
  66.  
  67. on break of emerald ore:
  68. if {pd::%uuid of player%::lvl} > 99:
  69. cancel event
  70. set event-block to stone
  71. give player (a random integer between 1 and 50) of emerald ore
  72. add random integer between 500 and 1000 to {pd::%uuid of player%::exp}
  73. wait 5 seconds
  74. set event-block to emerald ore
  75. make player execute "reload:misc"
  76. else if {pd::%uuid of player%::lvl} < 100:
  77. send player title "&c&lERROR" with subtitle "&7 You must be level 100+" for 1 second
  78. cancel event
  79.  
  80. on break of redstone ore:
  81. if {pd::%uuid of player%::lvl} > 149:
  82. cancel event
  83. set event-block to stone
  84. give player (a random integer between 1 and 50) of redstone ore
  85. add random integer between 2000 and 4000 to {pd::%uuid of player%::exp}
  86. wait 5 seconds
  87. set event-block to redstone ore
  88. make player execute "reload:misc"
  89. else if {pd::%uuid of player%::lvl} < 150:
  90. send player title "&c&lERROR" with subtitle "&7 You must be level 150+" for 1 second
  91. cancel event
  92.  
  93. on break of end stone:
  94. if {pd::%uuid of player%::lvl} > 224:
  95. cancel event
  96. set event-block to stone
  97. give player (a random integer between 1 and 50) of end stone
  98. add random integer between 15000 and 20000 to {pd::%uuid of player%::exp}
  99. wait 5 seconds
  100. set event-block to end stone
  101. make player execute "reload:misc"
  102. else if {pd::%uuid of player%::lvl} < 225:
  103. send player title "&c&lERROR" with subtitle "&7 You must be level 255+" for 1 second
  104. cancel event
  105.  
  106. command /pvp <text>:
  107. permission: pvp.toggle
  108. usage: /pvp <on/off>
  109. trigger:
  110. if arg 1 is "on":
  111. broadcast "&6&lCENTREUM: &7PvP has been &a&lENABLED!"
  112. enable PvP
  113. if arg 1 is "off":
  114. broadcast "&6&lCENTREUM: &7PvP has been &c&lDISABLED!"
  115. disable PvP
  116.  
  117. command /heea:
  118. permission: perm.rocket
  119. trigger:
  120. set {rocketclouds.%player%} to 1
  121. set {rocketfalmes.%player%} to 2
  122. wait 4 second
  123. delete {rocketflames.%player%}
  124. delete {rocketclouds.%player%}
  125.  
  126. on damage:
  127. damage cause is fall:
  128. cancel the event
  129. command /orewand:
  130. permission: perm.orewand
  131. trigger:
  132. give player 1 golden hoe named "&6&lOre Wand" with lore "||&7Right-Click a ore to remove it!"
  133.  
  134. command /dangle:
  135. trigger:
  136. if player's tool is not air:
  137. if player has permission "perm.dangle":
  138. if {dangle.%player%.lastused} is not set:
  139. set {dangle.%player%.lastused} to now
  140. if {dangle.%player%.lastused} is set:
  141. set {_dangle} to difference between {dangle.%player%.lastused} and now
  142. if {_dangle} is less than a minute:
  143. message "&bDangle: &7You have to wait &b%difference between a minute and {_dangle}% &7before you can use this command again!"
  144. stop
  145. if {_dangle} is larger than a minute:
  146. set {dangle.%player%.lastused} to now
  147. if player's tool's name is set:
  148. if level of sharpness of player's tool is set:
  149. set {sharpness} to ";Sharpness %level of sharpness of player's tool%"
  150. if level of sharpness of player's tool is 0:
  151. set {sharpness} to ""
  152. if level of Protection of player's tool is set:
  153. set {Protection} to ";Protection %level of Protection of player's tool%"
  154. if level of Protection of player's tool is 0:
  155. set {Protection} to ""
  156. if level of Power of player's tool is set:
  157. set {Power} to ";Power %level of Power of player's tool%"
  158. if level of Power of player's tool is 0:
  159. set {Power} to ""
  160. if level of efficiency of player's tool is set:
  161. set {efficiency} to ";efficiency %level of efficiency of player's tool%"
  162. if level of efficiency of player's tool is 0:
  163. set {efficiency} to ""
  164. if level of Fire Aspect of player's tool is set:
  165. set {fire} to ";Fire Aspect %level of Fire Aspect of player's tool%"
  166. if level of Fire Aspect of player's tool is 0:
  167. set {fire} to ""
  168. if level of Looting of player's tool is set:
  169. set {Looting} to ";Looting %level of Looting of player's tool%"
  170. if level of Looting of player's tool is 0:
  171. set {Looting} to ""
  172. if level of Flame of player's tool is set:
  173. set {Flame} to "Flame %level of Flame of player's tool%"
  174. if level of Flame of player's tool is 0:
  175. set {Flame} to ""
  176. if level of Infinity of player's tool is set:
  177. set {Infinity} to ";Infinity %level of Infinity of player's tool%"
  178. if level of Infinity of player's tool is 0:
  179. set {Infinity} to ""
  180. if level of Unbreaking of player's tool is set:
  181. set {Unbreaking} to ";Unbreaking %level of Unbreaking of player's tool%"
  182. if level of Unbreaking of player's tool is 0:
  183. set {Unbreaking} to ""
  184. if line 1 of lore of player's tool is set:
  185. set {lore1} to ";%line 1 of lore of player's tool%"
  186. if line 1 of lore of player's tool is not set:
  187. set {lore1} to ""
  188. if line 2 of lore of player's tool is set:
  189. set {lore2} to ";%line 2 of lore of player's tool%"
  190. if line 2 of lore of player's tool is not set:
  191. set {lore2} to ""
  192. if line 3 of lore of player's tool is set:
  193. set {lore3} to ";%line 3 of lore of player's tool%"
  194. if line 3 of lore of player's tool is not set:
  195. set {lore3} to ""
  196. if line 4 of lore of player's tool is set:
  197. set {lore4} to ";%line 4 of lore of player's tool%"
  198. if line 4 of lore of player's tool is not set:
  199. set {lore4} to ""
  200. if line 5 of lore of player's tool is set:
  201. set {lore5} to ";%line 5 of lore of player's tool%"
  202. if line 5 of lore of player's tool is not set:
  203. set {lore5} to ""
  204. if line 6 of lore of player's tool is set:
  205. set {lore6} to ";%line 6 of lore of player's tool%"
  206. if line 6 of lore of player's tool is not set:
  207. set {lore6} to ""
  208. if line 7 of lore of player's tool is set:
  209. set {lore7} to ";%line 7 of lore of player's tool%"
  210. if line 7 of lore of player's tool is not set:
  211. set {lore7} to ""
  212. if line 8 of lore of player's tool is set:
  213. set {lore8} to ";%line 8 of lore of player's tool%"
  214. if line 8 of lore of player's tool is not set:
  215. set {lore8} to ""
  216. if line 9 of lore of player's tool is set:
  217. set {lore9} to ";%line 9 of lore of player's tool%"
  218. if line 9 of lore of player's tool is not set:
  219. set {lore9} to ""
  220. if line 10 of lore of player's tool is set:
  221. set {lore10} to ";%line 10 of lore of player's tool%"
  222. if line 10 of lore of player's tool is not set:
  223. set {lore10} to ""
  224. bind hologram "&6&l%player's tool's name%;ItemStack:%player's tool's type%;%{sharpness}%%{Protection}%%{Power}%%{efficiency}%%{fire}%%{Looting}%%{Flame}%%{Infinity}%%{Unbreaking}%%{lore1}%%{lore2}%%{lore3}%%{lore4}%%{lore5}%%{lore6}%%{lore7}%%{lore8}%%{lore9}%%{lore10}%" to player for 10 seconds offset by 2.10, 3.10, 0.0
  225. stop
  226.  
  227.  
  228.  
  229.  
  230. if player's tool's name isn't set:
  231. if level of sharpness of player's tool is set:
  232. set {sharpness} to ";Sharpness %level of sharpness of player's tool%"
  233. if level of sharpness of player's tool is 0:
  234. set {sharpness} to ""
  235. if level of Protection of player's tool is set:
  236. set {Protection} to ";Protection %level of Protection of player's tool%"
  237. if level of Protection of player's tool is 0:
  238. set {Protection} to ""
  239. if level of Power of player's tool is set:
  240. set {Power} to ";Power %level of Power of player's tool%"
  241. if level of power of player's tool is 0:
  242. set {Power} to ""
  243. if level of efficiency of player's tool is set:
  244. set {efficiency} to ";efficiency %level of efficiency of player's tool%"
  245. if level of efficiency of player's tool is 0:
  246. set {efficiency} to ""
  247. if level of Fire Aspect of player's tool is set:
  248. set {fire} to ";Fire Aspect %level of Fire Aspect of player's tool%"
  249. if level of Fire Aspect of player's tool is 0:
  250. set {fire} to ""
  251. if level of Looting of player's tool is set:
  252. set {Looting} to ";Looting %level of Looting of player's tool%"
  253. if level of Looting of player's tool is 0:
  254. set {Looting} to ""
  255. if level of Flame of player's tool is set:
  256. set {Flame} to "Flame %level of Flame of player's tool%"
  257. if level of Flame of player's tool is 0:
  258. set {Flame} to ""
  259. if level of Infinity of player's tool is set:
  260. set {Infinity} to ";Infinity %level of Infinity of player's tool%"
  261. if level of Infinity of player's tool is 0:
  262. set {Infinity} to ""
  263. if level of Unbreaking of player's tool is set:
  264. set {Unbreaking} to ";Unbreaking %level of Unbreaking of player's tool%"
  265. if level of Unbreaking of player's tool is 0:
  266. set {Unbreaking} to ""
  267. if line 1 of lore of player's tool is set:
  268. set {lore1} to ";%line 1 of lore of player's tool%"
  269. if line 1 of lore of player's tool is not set:
  270. set {lore1} to ""
  271. if line 2 of lore of player's tool is set:
  272. set {lore2} to ";%line 2 of lore of player's tool%"
  273. if line 2 of lore of player's tool is not set:
  274. set {lore2} to ""
  275. if line 3 of lore of player's tool is set:
  276. set {lore3} to ";%line 3 of lore of player's tool%"
  277. if line 3 of lore of player's tool is not set:
  278. set {lore3} to ""
  279. if line 4 of lore of player's tool is set:
  280. set {lore4} to ";%line 4 of lore of player's tool%"
  281. if line 4 of lore of player's tool is not set:
  282. set {lore4} to ""
  283. if line 5 of lore of player's tool is set:
  284. set {lore5} to ";%line 5 of lore of player's tool%"
  285. if line 5 of lore of player's tool is not set:
  286. set {lore5} to ""
  287. if line 6 of lore of player's tool is set:
  288. set {lore6} to ";%line 6 of lore of player's tool%"
  289. if line 6 of lore of player's tool is not set:
  290. set {lore6} to ""
  291. if line 7 of lore of player's tool is set:
  292. set {lore7} to ";%line 7 of lore of player's tool%"
  293. if line 7 of lore of player's tool is not set:
  294. set {lore7} to ""
  295. if line 8 of lore of player's tool is set:
  296. set {lore8} to ";%line 8 of lore of player's tool%"
  297. if line 8 of lore of player's tool is not set:
  298. set {lore8} to ""
  299. if line 9 of lore of player's tool is set:
  300. set {lore9} to ";%line 9 of lore of player's tool%"
  301. if line 9 of lore of player's tool is not set:
  302. set {lore9} to ""
  303. if line 10 of lore of player's tool is set:
  304. set {lore10} to ";%line 10 of lore of player's tool%"
  305. if line 10 of lore of player's tool is not set:
  306. set {lore10} to ""
  307. bind hologram "%player's tool's type%;ItemStack:%player's tool's type%;%{sharpness}%%{Protection}%%{Power}%%{efficiency}%%{fire}%%{Looting}%%{Flame}%%{Infinity}%%{Unbreaking}%%{lore1}%%{lore2}%%{lore3}%%{lore4}%%{lore5}%%{lore6}%%{lore7}%%{lore8}%%{lore9}%%{lore10}%" to player for 10 seconds offset by 2.10, 3.10, 0.0
  308.  
  309.  
  310. command /reload:misc:
  311. trigger:
  312. wipe player's sidebar
  313. set name of sidebar of player to "&6&lCENTREUM &r({@ver})"
  314.  
  315. set score "&7&m-------------------" in sidebar of player to 15
  316. set score "&6&lLEVEL" in sidebar of player to 14
  317. set score "&r%{pd::%uuid of player%::lvl}%" in sidebar of player to 13
  318. set score "&2" in sidebar of player to 12
  319. set score "&a&lXP" in sidebar of player to 11
  320. set score "%{pd::%uuid of player%::exp}% " in sidebar of player to 10
  321. set score "&e&l" in sidebar of player to 9
  322. set score "&d&lXP Required" in sidebar of player to 8
  323. set score "&r%{pd::%uuid of player%::expreq}% " in sidebar of player to 7
  324. set score "&3" in sidebar of player to 6
  325. set score "&c&lBalance" in sidebar of player to 5
  326. set score "&r$%{pd::%uuid of player%::bal}% " in sidebar of player to 4
  327. set score "&r" in sidebar of player to 3
  328. set score "&6Rank:" in sidebar of player to 2
  329. set score "&r%{pd::%uuid of player%::rank}% " in sidebar of player to 1
  330. set score "&r&7&m-------------------" in sidebar of player to 0
  331.  
  332. on join:
  333. if {mb.%player%} is not set:
  334. set {mb.%player%} to true
  335.  
  336. on break:
  337. if {mb.%player%} is true:
  338. cancel event
  339.  
  340. command /blockbreak [<text>]:
  341. permission: server.blockbreak
  342. permission message: &8(&c!&8) &7You can not do this command!"
  343. trigger:
  344. if arg-1 is not set:
  345. send "&8&m-------------------------------------------"
  346. send "&e/blockbreak toggle &8- &7Toggles block breaking"
  347. send "&8&m-------------------------------------------"
  348. if arg-1 is "toggle":
  349. if {mb.%player%} is not set:
  350. send "&6BlockBreak: &7You have &c&lDISABLED &7block breaking!"
  351. set {mb.%player%} to true
  352. stop
  353. if {mb.%player%} is true:
  354. send "&6BlockBreak: &7You have &a&lENABLED &7block breaking!"
  355. delete {mb.%player%}
  356. stop
  357. on place:
  358. if {mb.%player%} is true:
  359. cancel event
  360.  
  361. on first join:
  362. set {pd::%uuid of player%::exp} to 0
  363. set {pd::%uuid of player%::lvl} to 1
  364. set {pd::%uuid of player%::expreq} to 499
  365. set {pd::%uuid of player%::bal} to 0
  366.  
  367. command /reset:
  368. trigger:
  369. set {pd::%uuid of player%::exp} to 0
  370. set {pd::%uuid of player%::lvl} to 1
  371. set {pd::%uuid of player%::expreq} to 500
  372. set {pd::%uuid of player%::bal} to 0
  373. make player execute "reload:misc"
  374.  
  375. every 1 second:
  376. loop all players:
  377. make loop-player execute "rankup"
  378. command /rankup:
  379. trigger:
  380. if {pd::%uuid of player%::exp} > {pd::%uuid of player%::expreq}:
  381. subtract {pd::%uuid of player%::expreq} from {pd::%uuid of player%::exp}
  382. add 1 to {pd::%uuid of player%::lvl}
  383. if {pd::%uuid of player%::lvl} < 10:
  384. add 200 to {pd::%uuid of player%::expreq}
  385. else if {pd::%uuid of player%::lvl} < 20:
  386. add 400 to {pd::%uuid of player%::expreq}
  387. else if {pd::%uuid of player%::lvl} < 30:
  388. add 800 to {pd::%uuid of player%::expreq}
  389. else if {pd::%uuid of player%::lvl} < 40:
  390. add 2000 to {pd::%uuid of player%::expreq}
  391. else if {pd::%uuid of player%::lvl} < 50:
  392. add 5000 to {pd::%uuid of player%::expreq}
  393. else if {pd::%uuid of player%::lvl} < 60:
  394. add 10000 to {pd::%uuid of player%::expreq}
  395. else if {pd::%uuid of player%::lvl} < 70:
  396. add 15000 to {pd::%uuid of player%::expreq}
  397. else if {pd::%uuid of player%::lvl} < 80:
  398. add 25000 to {pd::%uuid of player%::expreq}
  399. else if {pd::%uuid of player%::lvl} < 90:
  400. add 50000 to {pd::%uuid of player%::expreq}
  401. else if {pd::%uuid of player%::lvl} < 100:
  402. add 75000 to {pd::%uuid of player%::expreq}
  403. else if {pd::%uuid of player%::lvl} > 100:
  404. add 1250000 to {pd::%uuid of player%::expreq}
  405. else if {pd::%uuid of player%::lvl} > 200:
  406. add 75250000 to {pd::%uuid of player%::expreq}
  407. make player execute "reload:misc"
  408.  
  409. command /setlvl [<offline player>] [<integer>]:
  410. permission: perm.setlvl
  411. trigger:
  412. if arg-1 is set:
  413. if arg-2 is set:
  414. set {pd::%uuid of argument 1%::lvl} to argument 2
  415. make player execute "reload:misc"
  416. command /setexp [<offline player>] [<integer>]:
  417. permission: perm.setlvl
  418. trigger:
  419. if arg-1 is set:
  420. if arg-2 is set:
  421. set {pd::%uuid of argument 1%::exp} to argument 2
  422. make player execute "reload:misc"
  423.  
  424. command /adminsell:
  425. aliases: /asell
  426. permission: perm.asell
  427. trigger:
  428. set {_coalore} to number of coal ore in player's inventory
  429. set {_ironore} to number of iron ore in player's inventory
  430. set {_goldore} to number of gold ore in player's inventory
  431. set {_diamondore} to number of diamond ore in player's inventory
  432. set {_emeraldore} to number of emerald ore in player's inventory
  433. set {_lapisore} to number of lapis ore in player's inventory
  434. set {_redstoneore} to number of redstone ore in player's inventory
  435. set {_endstone} to number of end stone in player's inventory
  436. set {_value1} to 0.05 * {_coalore}#!<---
  437. set {_value2} to 2.5 * {_ironore}#!<---
  438. set {_value3} to 5 * {_goldore}#!<---
  439. set {_value4} to 10 * {_diamondore}#!<---
  440. set {_value5} to 40 * {_emeraldore}#!<---
  441. set {_value6} to 1.5 * {_lapisore}
  442. set {_value7} to 500 * {_redstoneore}
  443. set {_value8} to 1000 * {_endstone}
  444. set {_value10} to {_value1} + {_value2} + {_value3} + {_value4} + {_value5} + {_value6} + {_value7} + {_value8}#!<--
  445. remove all emerald ore, coal ore, iron ore, diamond ore, lapis ore, gold ore, redstone ore and end stone from player's inventory
  446. add {_value10} to {pd::%uuid of player%::bal}
  447. make player execute "reload:misc"
  448. set action bar of player to "&6Sold all your items for &a&l$%{_value10}%"
  449. command /tr:
  450. permission: perm.rocket
  451. trigger:
  452. show 860 cloud particles at location of player
  453. on any movement:
  454. if {rocketclouds.%player%} is 1:
  455. show 2 "cloud" particles at location of player for player offset by 0.2, 0.4, 0.2
  456. if {rocketflames.%player%} is 2:
  457. show 2 "flame" particles at location of player for player offset by 0.2, 0.4, 0.2
Add Comment
Please, Sign In to add comment