pewax

Mineverse 0.2

Apr 26th, 2016
921
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.82 KB | None | 0 0
  1. #
  2. # Mineverse plugin
  3. #
  4.  
  5.  
  6. variables:
  7. {mvmoney.%player%} = 0
  8. {minespam.%player%} = 1
  9.  
  10. command /mvhelp:
  11. permission: mineverse.*
  12. trigger:
  13. send "&a/mv create <block> - Creates a respawning block!"
  14. send "&a/mv delete <block> - Deletes a respawning blocks of the type!"
  15. send "&a/mvpick <block> - Gives the player a pickaxe to mine blocks with!"
  16. send "&a/mv help - Brings up this help menu!"
  17.  
  18. command /mvpick <text>:
  19. trigger:
  20. if arg-1 is "stone":
  21. set {stonepick.%player%} to a gold pickaxe named "&6Stone Miner"
  22. enchant {stonepick.%player%} with unbreaking 999
  23. give {stonepick.%player%} to the player
  24. else if arg-1 is "coal":
  25. set {coalpick.%player%} to a wooden pickaxe named "&6Coal Miner"
  26. enchant {coalpick.%player%} with unbreaking 999
  27. make player execute "/mvpickc"
  28. else if arg-1 is "iron":
  29. set {ironpick.%player%} to a stone pickaxe named "&6Iron Miner"
  30. enchant {ironpick.%player%} with unbreaking 999
  31. make player execute "/mvpicki"
  32. else if arg-1 is "gold":
  33. set {goldpick.%player%} to a iron pickaxe named "&6Gold Miner"
  34. enchant {goldpick.%player%} with unbreaking 999
  35. make player execute "/mvpickg"
  36. else if arg-1 is "redstone":
  37. set {redstone.%player%} to a iron pickaxe named "&6Redstone Miner"
  38. enchant {redstonepick.%player%} with unbreaking 999
  39. make player execute "/mvpickr"
  40. else if arg-1 is "lapiz":
  41. set {lapizpick.%player%} to a stone pickaxe named "&6Lapiz Miner"
  42. enchant {lapizpick.%player%} with unbreaking 999
  43. make player execute "/mvpickl"
  44. else if arg-1 is "diamond":
  45. set {diamondpick.%player%} to a iron pickaxe named "&6Diamond Miner"
  46. enchant {diamondpick.%player%} with unbreaking 999
  47. make player execute "/mvpickd"
  48. else if arg-1 is "emerald":
  49. set {emeraldpick.%player%} to a diamond pickaxe named "&6Emerald Miner"
  50. enchant {emeraldpick.%player%} with unbreaking 999
  51. make player execute "/mvpicke"
  52. else if arg-1 is "quartz":
  53. set {quartzpick.%player%} to a diamond pickaxe named "&6Quartz Miner"
  54. enchant {quartzpick.%player%} with unbreaking 999
  55. make player execute "/mvpickq"
  56. else:
  57. send "&4This command is not used like that, try &a/mvmenu&4!"
  58.  
  59. command /mv <text> <text>:
  60. permission: mineverse.*
  61. trigger:
  62. if arg-1 is "create":
  63. if arg-2 is "stone":
  64. add location of the player to {stone::*}
  65. set {stone} to location of player
  66. send "&aYou have set this location to a stone block!"
  67. set block at {stone} to stone
  68. else if arg-2 is "coal":
  69. add location of the player to {coal::*}
  70. set {coal} to location of player
  71. send "&aYou have set this location to a coal ore!"
  72. set block at {coal} to coal ore
  73. else if arg-2 is "iron":
  74. add location of the player to {iron::*}
  75. set {iron} to location of player
  76. send "&aYou have set this location to a iron ore!"
  77. set block at {iron} to iron ore
  78. else if arg-2 is "gold":
  79. add location of the player to {gold::*}
  80. set {gold} to location of player
  81. send "&aYou have set this location to a gold ore!"
  82. set block at {gold} to gold ore
  83. else if arg-2 is "redstone":
  84. add location of the player to {redstone::*}
  85. set {redstone} to location of player
  86. send "&aYou have set this location to a redstone ore!"
  87. set block at {redstone} to redstone ore
  88. else if arg-2 is "lapiz":
  89. add location of the player to {lapiz::*}
  90. set {lapiz} to location of player
  91. send "&aYou have set this location to a lapiz ore!"
  92. set block at {lapiz} to lapis lazuli ore
  93. else if arg-2 is "diamond":
  94. add location of the player to {diamond::*}
  95. set {diamond} to location of player
  96. send "&aYou have set this location to a diamond ore!"
  97. set block at {diamond} to diamond ore
  98. else if arg-2 is "emerald":
  99. add location of the player to {emerald::*}
  100. set {emerald} to location of player
  101. send "&aYou have set this location to a emerald ore!"
  102. set block at {emerald} to emerald ore
  103. else if arg-2 is "quartz":
  104. add location of the player to {quartz::*}
  105. set {quartz} to location of player
  106. send "&aYou have set this location to a quartz block!"
  107. set block at {quartz} to quartz block
  108. else:
  109. send "&4Sorry but that is not a valid block!"
  110. send "stone, coal, iron, gold, lapiz, diamond, emerald, quartz"
  111. else if arg-1 is "delete":
  112. if arg-2 is "stone":
  113. clear {stone::*}
  114. send "&cYou deleted all stone blocks"
  115. else if arg-2 is "coal":
  116. clear {coal::*}
  117. send "&cYou deleted all coal ores"
  118. else if arg-2 is "iron":
  119. clear {iron::*}
  120. send "&cYou deleted all iron ores"
  121. else if arg-2 is "gold":
  122. clear {gold::*}
  123. send "&cYou deleted all gold ores"
  124. else if arg-2 is "redstone":
  125. clear {redstone::*}
  126. send "&cYou deleted all redstone ores"
  127. else if arg-2 is "lapiz":
  128. clear {lapiz::*}
  129. send "&cYou deleted all lapiz ores"
  130. else if arg-2 is "diamond":
  131. clear {diamond::*}
  132. send "&cYou deleted all diamond ores"
  133. else if arg-2 is "emerald":
  134. clear {emerald::*}
  135. send "&cYou deleted all emerald ores"
  136. else if arg-2 is "quartz":
  137. clear {quartz::*}
  138. send "&cYou deleted all quartz blocks"
  139. else:
  140. send "&4Sorry but that is not a valid block!"
  141. send "stone, coal, iron, gold, lapiz, diamond, emerald, quartz"
  142.  
  143. on break of stone:
  144. player is holding {stonepick.%player%}:
  145. add 1 to {mvmoney.%player%}
  146. cancel event
  147. if {minespam.%player%} is equal to 1:
  148. send "&a+&6$1 &afor mining a stone block!"
  149. player is holding {coalpick.%player%}:
  150. add 1 to {mvmoney.%player%}
  151. cancel event
  152. if {minespam.%player%} is equal to 1:
  153. send "&a+&6$1 &afor mining a stone block!"
  154. player is holding {ironpick.%player%}:
  155. add 1 to {mvmoney.%player%}
  156. cancel event
  157. if {minespam.%player%} is equal to 1:
  158. send "&a+&6$1 &afor mining a stone block!"
  159. player is holding {goldpick.%player%}:
  160. add 1 to {mvmoney.%player%}
  161. cancel event
  162. if {minespam.%player%} is equal to 1:
  163. send "&a+&6$1 &afor mining a stone block!"
  164. player is holding {redstonepick.%player%}:
  165. add 1 to {mvmoney.%player%}
  166. cancel event
  167. if {minespam.%player%} is equal to 1:
  168. send "&a+&6$1 &afor mining a stone block!"
  169. player is holding {lapizpick.%player%}:
  170. add 1 to {mvmoney.%player%}
  171. cancel event
  172. if {minespam.%player%} is equal to 1:
  173. send "&a+&6$1 &afor mining a stone block!"
  174. player is holding {diamondpick.%player%}:
  175. add 1 to {mvmoney.%player%}
  176. cancel event
  177. if {minespam.%player%} is equal to 1:
  178. send "&a+&6$1 &afor mining a stone block!"
  179. player is holding {emeraldpick.%player%}:
  180. add 1 to {mvmoney.%player%}
  181. cancel event
  182. if {minespam.%player%} is equal to 1:
  183. send "&a+&6$1 &afor mining a stone block!"
  184. player is holding {quartzpick.%player%}:
  185. add 1 to {mvmoney.%player%}
  186. cancel event
  187. if {minespam.%player%} is equal to 1:
  188. send "&a+&6$1 &afor mining a stone block!"
  189. cancel event
  190.  
  191. on break of coal ore:
  192. player is holding {coalpick.%player%}:
  193. add 2 to {mvmoney.%player%}
  194. cancel event
  195. if {minespam.%player%} is equal to 1:
  196. send "&a+&6$2 &afor mining a stone block!"
  197. player is holding {ironpick.%player%}:
  198. add 2 to {mvmoney.%player%}
  199. cancel event
  200. if {minespam.%player%} is equal to 1:
  201. send "&a+&6$2 &afor mining a stone block!"
  202. player is holding {goldpick.%player%}:
  203. add 2 to {mvmoney.%player%}
  204. cancel event
  205. if {minespam.%player%} is equal to 1:
  206. send "&a+&6$2 &afor mining a stone block!"
  207. player is holding {redstonepick.%player%}:
  208. add 2 to {mvmoney.%player%}
  209. cancel event
  210. if {minespam.%player%} is equal to 1:
  211. send "&a+&6$2 &afor mining a stone block!"
  212. player is holding {lapizpick.%player%}:
  213. add 2 to {mvmoney.%player%}
  214. cancel event
  215. if {minespam.%player%} is equal to 1:
  216. send "&a+&6$2 &afor mining a stone block!"
  217. player is holding {diamondpick.%player%}:
  218. add 2 to {mvmoney.%player%}
  219. cancel event
  220. if {minespam.%player%} is equal to 1:
  221. send "&a+&6$2 &afor mining a stone block!"
  222. player is holding {emeraldpick.%player%}:
  223. add 2 to {mvmoney.%player%}
  224. cancel event
  225. if {minespam.%player%} is equal to 1:
  226. send "&a+&6$2 &afor mining a stone block!"
  227. player is holding {quartzpick.%player%}:
  228. add 2 to {mvmoney.%player%}
  229. cancel event
  230. if {minespam.%player%} is equal to 1:
  231. send "&a+&6$2 &afor mining a stone block!"
  232. cancel event
  233.  
  234. on break of iron ore:
  235. player is holding {ironpick.%player%}:
  236. add 3 to {mvmoney.%player%}
  237. cancel event
  238. if {minespam.%player%} is equal to 1:
  239. send "&a+&6$3 &afor mining a stone block!"
  240. player is holding {goldpick.%player%}:
  241. add 3 to {mvmoney.%player%}
  242. cancel event
  243. if {minespam.%player%} is equal to 1:
  244. send "&a+&6$3 &afor mining a stone block!"
  245. player is holding {redstonepick.%player%}:
  246. add 3 to {mvmoney.%player%}
  247. cancel event
  248. if {minespam.%player%} is equal to 1:
  249. send "&a+&6$3 &afor mining a stone block!"
  250. player is holding {lapizpick.%player%}:
  251. add 3 to {mvmoney.%player%}
  252. cancel event
  253. if {minespam.%player%} is equal to 1:
  254. send "&a+&6$3 &afor mining a stone block!"
  255. player is holding {diamondpick.%player%}:
  256. add 3 to {mvmoney.%player%}
  257. cancel event
  258. if {minespam.%player%} is equal to 1:
  259. send "&a+&6$3 &afor mining a stone block!"
  260. player is holding {emeraldpick.%player%}:
  261. add 3 to {mvmoney.%player%}
  262. cancel event
  263. if {minespam.%player%} is equal to 1:
  264. send "&a+&6$3 &afor mining a stone block!"
  265. player is holding {quartzpick.%player%}:
  266. add 3 to {mvmoney.%player%}
  267. cancel event
  268. if {minespam.%player%} is equal to 1:
  269. send "&a+&6$3 &afor mining a stone block!"
  270. cancel event
  271.  
  272. on break of gold ore:
  273. player is holding {goldpick.%player%}:
  274. add 4 to {mvmoney.%player%}
  275. cancel event
  276. if {minespam.%player%} is equal to 1:
  277. send "&a+&6$4 &afor mining a stone block!"
  278. player is holding {redstonepick.%player%}:
  279. add 4 to {mvmoney.%player%}
  280. cancel event
  281. if {minespam.%player%} is equal to 1:
  282. send "&a+&6$4 &afor mining a stone block!"
  283. player is holding {lapizpick.%player%}:
  284. add 4 to {mvmoney.%player%}
  285. cancel event
  286. if {minespam.%player%} is equal to 1:
  287. send "&a+&6$4 &afor mining a stone block!"
  288. player is holding {diamondpick.%player%}:
  289. add 4 to {mvmoney.%player%}
  290. cancel event
  291. if {minespam.%player%} is equal to 1:
  292. send "&a+&6$4 &afor mining a stone block!"
  293. player is holding {emeraldpick.%player%}:
  294. add 4 to {mvmoney.%player%}
  295. cancel event
  296. if {minespam.%player%} is equal to 1:
  297. send "&a+&6$4 &afor mining a stone block!"
  298. player is holding {quartzpick.%player%}:
  299. add 4 to {mvmoney.%player%}
  300. cancel event
  301. if {minespam.%player%} is equal to 1:
  302. send "&a+&6$4 &afor mining a stone block!"
  303. cancel event
  304.  
  305. on break of redstone ore:
  306. player is holding {redstonepick.%player%}:
  307. add 5 to {mvmoney.%player%}
  308. cancel event
  309. if {minespam.%player%} is equal to 1:
  310. send "&a+&6$5 &afor mining a stone block!"
  311. player is holding {lapizpick.%player%}:
  312. add 5 to {mvmoney.%player%}
  313. cancel event
  314. if {minespam.%player%} is equal to 1:
  315. send "&a+&6$5 &afor mining a stone block!"
  316. player is holding {diamondpick.%player%}:
  317. add 5 to {mvmoney.%player%}
  318. cancel event
  319. if {minespam.%player%} is equal to 1:
  320. send "&a+&6$5 &afor mining a stone block!"
  321. player is holding {emeraldpick.%player%}:
  322. add 5 to {mvmoney.%player%}
  323. cancel event
  324. if {minespam.%player%} is equal to 1:
  325. send "&a+&6$5 &afor mining a stone block!"
  326. player is holding {quartzpick.%player%}:
  327. add 5 to {mvmoney.%player%}
  328. cancel event
  329. if {minespam.%player%} is equal to 1:
  330. send "&a+&6$5 &afor mining a stone block!"
  331. cancel event
  332.  
  333. on break of lapis lazuli ore:
  334. player is holding {lapizpick.%player%}:
  335. add 6 to {mvmoney.%player%}
  336. cancel event
  337. if {minespam.%player%} is equal to 1:
  338. send "&a+&6$6 &afor mining a stone block!"
  339. player is holding {diamondpick.%player%}:
  340. add 6 to {mvmoney.%player%}
  341. cancel event
  342. if {minespam.%player%} is equal to 1:
  343. send "&a+&6$6 &afor mining a stone block!"
  344. player is holding {emeraldpick.%player%}:
  345. add 6 to {mvmoney.%player%}
  346. cancel event
  347. if {minespam.%player%} is equal to 1:
  348. send "&a+&6$6 &afor mining a stone block!"
  349. player is holding {quartzpick.%player%}:
  350. add 6 to {mvmoney.%player%}
  351. cancel event
  352. if {minespam.%player%} is equal to 1:
  353. send "&a+&6$6 &afor mining a stone block!"
  354. cancel event
  355.  
  356. on break of diamond ore:
  357. player is holding {diamondpick.%player%}:
  358. add 7 to {mvmoney.%player%}
  359. cancel event
  360. if {minespam.%player%} is equal to 1:
  361. send "&a+&6$7 &afor mining a stone block!"
  362. player is holding {emeraldpick.%player%}:
  363. add 7 to {mvmoney.%player%}
  364. cancel event
  365. if {minespam.%player%} is equal to 1:
  366. send "&a+&6$7 &afor mining a stone block!"
  367. player is holding {quartzpick.%player%}:
  368. add 7 to {mvmoney.%player%}
  369. cancel event
  370. if {minespam.%player%} is equal to 1:
  371. send "&a+&6$7 &afor mining a stone block!"
  372. cancel event
  373.  
  374. on break of emerald ore:
  375. player is holding {emeraldpick.%player%}:
  376. add 8 to {mvmoney.%player%}
  377. cancel event
  378. if {minespam.%player%} is equal to 1:
  379. send "&a+&6$8 &afor mining a stone block!"
  380. player is holding {quartzpick.%player%}:
  381. add 8 to {mvmoney.%player%}
  382. cancel event
  383. if {minespam.%player%} is equal to 1:
  384. send "&a+&6$8 &afor mining a stone block!"
  385. cancel event
  386.  
  387. on break of quartz block:
  388. player is holding {quartzpick.%player%}:
  389. add 9 to {mvmoney.%player%}
  390. cancel event
  391. if {minespam.%player%} is equal to 1:
  392. send "&a+&6$9 &afor mining a stone block!"
  393. cancel event
  394.  
  395. # Battleage money (mineverse only)!
  396.  
  397. command /mvmoney:
  398. trigger:
  399. send "&cMoney: &a$%{mvmoney.%player%}% (mineverse only)"
  400.  
  401. command /mvgift [<player>] [<integer>]:
  402. trigger:
  403. if arg-1 is set:
  404. if arg-2 is set:
  405. if arg-1 is online:
  406. if {mvmoney.%player%} > arg-2:
  407. set {_player} to arg-1
  408. make {_player} execute "/mvgetmoney %arg-2%"
  409. make player execute "/mvlosemoney %arg-2%"
  410. send "&aYou sent &6$%arg-2%&a to &6%arg-1%&a!"
  411. send "&aYou have been gifted &6$%arg-2%&a from &6%arg-1%&a!" to arg-1
  412. else:
  413. send "&cYou cannot gift that player more money than you own!"
  414. else:
  415. send "&cSorry that player is not online at the moment!"
  416. else:
  417. send "&cYou need to define an amount you want to gift the player!"
  418. else:
  419. send "&cYou need to define an online player!"
  420.  
  421. command /mvgetmoney <integer>:
  422. permission: mineverse.*
  423. trigger:
  424. add arg-1 to {mvmoney.%player%}
  425.  
  426. command /mvlosemoney <integer>:
  427. permission: mineverse.*
  428. trigger:
  429. subtract arg-1 from {mvmoney.%player%}
  430.  
  431. # Mineverse shop
  432.  
  433. command /mvmenu:
  434. trigger:
  435. open chest with 1 rows named "Mineverse Menu" to player
  436. wait 3 ticks
  437. format slot 0 of player with a sunflower named "&c&lMoney: &a&l$%{mvmoney.%player%}%" with lore "&aMineverse Only" to close
  438. format slot 3 of player with a diamond pickaxe named "&8&lPickaxe Ranks" to close then run [make player execute "/mvpickaxes"]
  439. format slot 4 of player with a chest named "&3&lMineverse &3&lTutorial" to close then run [make player execute "/mvhelp"]
  440. format slot 5 of player with a name tag named "&7&lToggle Mine Spam" with lore "&aTells you when you mine a block" to close then run [make player execute "/minespam"]
  441. format slot 8 of player with a nether star named "&c&lBack To Hub" to close then run [make player execute "/bc test"]
  442.  
  443. command /mvpickaxes:
  444. trigger:
  445. wait 3 ticks
  446. open chest with 1 rows named "Mineverse Menu" to player
  447. wait 3 ticks
  448. format slot 0 of player with a gold pickaxe named "&6&lStone Miner" with lore "&aCost: FREE" to close then run [make player execute "/mvpick stone"]
  449. format slot 1 of player with a wooden pickaxe named "&6&lCoal Miner" with lore "&aCost: $1000" to close then run [make player execute "/mvpick coal"]
  450. format slot 2 of player with a stone pickaxe named "&6&lIron Miner" with lore "&aCost: $5000" to close then run [make player execute "/mvpick iron"]
  451. format slot 3 of player with a iron pickaxe named "&6&lGold Miner" with lore "&aCost: $10000" to close then run [make player execute "/mvpick gold"]
  452. format slot 4 of player with a iron pickaxe named "&6&lRedstone Miner" with lore "&aCost: $20000" to close then run [make player execute "/mvpick redstone"]
  453. format slot 5 of player with a stone pickaxe named "&6&lLapiz Miner" with lore "&aCost: $50000" to close then run [make player execute "/mvpick lapiz"]
  454. format slot 6 of player with a iron pickaxe named "&6&lDiamond Miner" with lore "&aCost: $75000" to close then run [make player execute "/mvpick diamond"]
  455. format slot 7 of player with a diamond pickaxe named "&6&lEmerald Miner" with lore "&aCost: $150000" to close then run [make player execute "/mvpick emerald"]
  456. format slot 8 of player with a diamond pickaxe named "&6&lQuartz Miner" with lore "&aCost: $500000" to close then run [make player execute "/mvpick quartz"]
  457.  
  458. command /minespam:
  459. trigger:
  460. if {minespam.%player%} is 1:
  461. add 1 to {minespam.%player%}
  462. send "&aYou have turned minespam &6off&a!"
  463. else if {minespam.%player%} is 2:
  464. subtract 1 from {minespam.%player%}
  465. send "&aYou have turned minespam &6on&a!"
  466. else:
  467. set {minespam.%player%} to 1
  468.  
  469. command /mvpickc:
  470. trigger:
  471. if {mvmoney.%player%} >= 1000:
  472. subtract 1000 from {mvmoney.%player%}
  473. give {coalpick.%player%} to the player
  474. else:
  475. send "&cSorry you can't afford this pickaxe!"
  476. command /mvpicki:
  477. trigger:
  478. if {mvmoney.%player%} >= 5000:
  479. subtract 5000 from {mvmoney.%player%}
  480. give {ironpick.%player%} to the player
  481. else:
  482. send "&cSorry you can't afford this pickaxe!"
  483. command /mvpickg:
  484. trigger:
  485. if {mvmoney.%player%} >= 10000:
  486. subtract 10000 from {mvmoney.%player%}
  487. give {goldpick.%player%} to the player
  488. else:
  489. send "&cSorry you can't afford this pickaxe!"
  490. command /mvpickr:
  491. trigger:
  492. if {mvmoney.%player%} >= 20000:
  493. subtract 20000 from {mvmoney.%player%}
  494. give {redstonepick.%player%} to the player
  495. else:
  496. send "&cSorry you can't afford this pickaxe!"
  497. command /mvpickl:
  498. trigger:
  499. if {mvmoney.%player%} >= 50000:
  500. subtract 50000 from {mvmoney.%player%}
  501. give {Lapizpick.%player%} to the player
  502. else:
  503. send "&cSorry you can't afford this pickaxe!"
  504. command /mvpickd:
  505. trigger:
  506. if {mvmoney.%player%} >= 75000:
  507. subtract 75000 from {mvmoney.%player%}
  508. give {diamondpick.%player%} to the player
  509. else:
  510. send "&cSorry you can't afford this pickaxe!"
  511. command /mvpicke:
  512. trigger:
  513. if {mvmoney.%player%} >= 150000:
  514. subtract 150000 from {mvmoney.%player%}
  515. give {emeraldpick.%player%} to the player
  516. else:
  517. send "&cSorry you can't afford this pickaxe!"
  518. command /mvpickq:
  519. trigger:
  520. if {mvmoney.%player%} >= 500000:
  521. subtract 500000 from {mvmoney.%player%}
  522. give {quartzpick.%player%} to the player
  523. else:
  524. send "&cSorry you can't afford this pickaxe!"
Advertisement
Add Comment
Please, Sign In to add comment