Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.38 KB | None | 0 0
  1. on click on a entity:
  2. if entity's name is "%{mm.npc}%":
  3. make player execute command "minemission m"
  4.  
  5.  
  6. command /minemission [<text>] [<text>]:
  7. trigger:
  8.  
  9. If arg 1 is not set:
  10.  
  11. message "&cFejl"
  12. else if arg 1 is "Npc":
  13. if player has permission "*":
  14. if arg 2 is set:
  15. set {mm.npc} to arg 2
  16. else:
  17. send "&4Brug: &c/minemission npc (navn)"
  18.  
  19.  
  20. else if arg 1 is "m":
  21.  
  22.  
  23.  
  24.  
  25.  
  26. if {mm2.%player%} is 1:
  27.  
  28. if player is holding a coal:
  29.  
  30. if player has 20 coal in his inventory:
  31.  
  32. message "&7[&9Mine mission&7] &a du har afleveret 30 kul og modtager din belønning på 300 kr"
  33.  
  34. remove 20 coal from player's inventory
  35.  
  36. set {mm2.%player%} to 2
  37.  
  38. set {mm2_c_klared::%player%} to 1440
  39.  
  40. add 300 to player's balance
  41.  
  42. else:
  43.  
  44. message "&7[&9Mine Mission&7] Du skal have 20 kul på dig for at klare mission"
  45.  
  46.  
  47.  
  48.  
  49.  
  50. else if {mm3.%player%} is 1:
  51.  
  52. if player is holding a iron ore:
  53.  
  54. if player has 15 iron ore in his inventory:
  55.  
  56. message "&7[&9Mine mission&7] &a du har afleveret 15 iron ores og modtager din belønning på 300 kr"
  57.  
  58. remove 15 iron ore from player's inventory
  59.  
  60. set {mm3.%player%} to 2
  61.  
  62. set {mm3_c_klared::%player%} to 1440
  63.  
  64. add 300 to player's balance
  65.  
  66. else:
  67.  
  68. message "&7[&9Mine Mission&7] Du skal have 15 jern ores på dig for at klare mission"
  69.  
  70.  
  71.  
  72. else if {mm4.%player%} is 1:
  73.  
  74. if player is holding a iron pickaxe named "Iron Pickaxe":
  75.  
  76. message "&7[&9Mine mission&7] &a du har afleveret 1 jern hakke og modtager din belønning på 150 kr"
  77.  
  78. remove 1 iron pickaxe named "Iron Pickaxe" from player's inventory
  79.  
  80. set {mm4.%player%} to 2
  81.  
  82. set {mm4_c_klared::%player%} to 1440
  83.  
  84. add 150 to player's balance
  85.  
  86. else:
  87.  
  88. wait 2 ticks
  89.  
  90. open chest with 3 rows named "&8Mine mission" to player
  91.  
  92. format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  93.  
  94. format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  95.  
  96. format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  97.  
  98. format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  99.  
  100. format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  101.  
  102. format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  103.  
  104. format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  105.  
  106. format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  107.  
  108. format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  109.  
  110. format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  111.  
  112. make player execute command "setminemenu m"
  113.  
  114.  
  115.  
  116. format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  117.  
  118. format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  119.  
  120. format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  121.  
  122. format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  123.  
  124. format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  125.  
  126. format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  127.  
  128. format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  129.  
  130. format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  131.  
  132. format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  133.  
  134. format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  135.  
  136. else:
  137.  
  138. wait 2 ticks
  139.  
  140. open chest with 3 rows named "&8Mine mission" to player
  141.  
  142. format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  143.  
  144. format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  145.  
  146. format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  147.  
  148. format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  149.  
  150. format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  151.  
  152. format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  153.  
  154. format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  155.  
  156. format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  157.  
  158. format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  159.  
  160. format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  161.  
  162. make player execute command "setminemenu m"
  163.  
  164.  
  165.  
  166. format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  167.  
  168. format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  169.  
  170. format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  171.  
  172. format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  173.  
  174. format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  175.  
  176. format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  177.  
  178. format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  179.  
  180. format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  181.  
  182. format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  183.  
  184. format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  185.  
  186. else if {mm4.%player%} is 1:
  187.  
  188. if player is holding a iron pickaxe:
  189.  
  190. message "&7[&9Mine mission&7] &a du har afleveret 1 jern hakke og modtager din belønning på 150 kr"
  191.  
  192. remove 1 iron pickaxe from player's inventory
  193.  
  194. set {mm4.%player%} to 2
  195.  
  196. set {mm4_c_klared::%player%} to 1440
  197.  
  198. add 150 to player's balance
  199.  
  200.  
  201.  
  202. wait 2 ticks
  203.  
  204. open chest with 3 rows named "&8Mine mission" to player
  205.  
  206. format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  207.  
  208. format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  209.  
  210. format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  211.  
  212. format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  213.  
  214. format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  215.  
  216. format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  217.  
  218. format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  219.  
  220. format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  221.  
  222. format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  223.  
  224. format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  225.  
  226. make player execute command "setminemenu m"
  227.  
  228.  
  229.  
  230. format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  231.  
  232. format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  233.  
  234. format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  235.  
  236. format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  237.  
  238. format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  239.  
  240. format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  241.  
  242. format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  243.  
  244. format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  245.  
  246. format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  247.  
  248. format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256. else:
  257.  
  258. wait 2 ticks
  259.  
  260. open chest with 3 rows named "&8Mine mission" to player
  261.  
  262. format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  263.  
  264. format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  265.  
  266. format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  267.  
  268. format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  269.  
  270. format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  271.  
  272. format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  273.  
  274. format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  275.  
  276. format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  277.  
  278. format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  279.  
  280. format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  281.  
  282. make player execute command "setminemenu m"
  283.  
  284.  
  285.  
  286. format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  287.  
  288. format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  289.  
  290. format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  291.  
  292. format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  293.  
  294. format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  295.  
  296. format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  297.  
  298. format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  299.  
  300. format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  301.  
  302. format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  303.  
  304. format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  305.  
  306.  
  307.  
  308.  
  309.  
  310. else if {mm3.%player%} is 1:
  311.  
  312. if player is holding a iron ore:
  313.  
  314. if player has 15 iron ore in his inventory:
  315.  
  316. message "&7[&9Mine mission&7] &a du har afleveret 15 iron ores og modtager din belønning på 300 kr"
  317.  
  318. remove 15 iron ore from player's inventory
  319.  
  320. set {mm3.%player%} to 2
  321.  
  322. set {mm3_c_klared::%player%} to 1440
  323.  
  324. add 300 to player's balance
  325.  
  326. else:
  327.  
  328. message "&7[&9Mine Mission&7] Du skal have 15 jern ores på dig for at klare mission"
  329.  
  330.  
  331.  
  332. else if {mm4.%player%} is 1:
  333.  
  334. if player is holding a iron pickaxe:
  335.  
  336. message "&7[&9Mine mission&7] &a du har afleveret 1 jern hakke og modtager din belønning på 150 kr"
  337.  
  338. remove 1 iron pickaxe from player's inventory
  339.  
  340. set {mm4.%player%} to 2
  341.  
  342. set {mm4_c_klared::%player%} to 1440
  343.  
  344. add 150 to player's balance
  345.  
  346. else:
  347.  
  348. wait 2 ticks
  349.  
  350. open chest with 3 rows named "&8Mine mission" to player
  351.  
  352. format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  353.  
  354. format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  355.  
  356. format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  357.  
  358. format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  359.  
  360. format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  361.  
  362. format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  363.  
  364. format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  365.  
  366. format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  367.  
  368. format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  369.  
  370. format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  371.  
  372. make player execute command "setminemenu m"
  373.  
  374.  
  375.  
  376. format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  377.  
  378. format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  379.  
  380. format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  381.  
  382. format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  383.  
  384. format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  385.  
  386. format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  387.  
  388. format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  389.  
  390. format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  391.  
  392. format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  393.  
  394. format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  395.  
  396. else:
  397.  
  398. wait 2 ticks
  399.  
  400. open chest with 3 rows named "&8Mine mission" to player
  401.  
  402. format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  403.  
  404. format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  405.  
  406. format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  407.  
  408. format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  409.  
  410. format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  411.  
  412. format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  413.  
  414. format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  415.  
  416. format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  417.  
  418. format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  419.  
  420. format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  421.  
  422. make player execute command "setminemenu m"
  423.  
  424.  
  425.  
  426. format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  427.  
  428. format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  429.  
  430. format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  431.  
  432. format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  433.  
  434. format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  435.  
  436. format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  437.  
  438. format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  439.  
  440. format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  441.  
  442. format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  443.  
  444. format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  445.  
  446. else if {mm4.%player%} is 1:
  447.  
  448. if player is holding a iron pickaxe:
  449.  
  450. message "&7[&9Mine mission&7] &a du har afleveret 1 jern hakke og modtager din belønning på 150 kr"
  451.  
  452. remove 1 iron pickaxe from player's inventory
  453.  
  454. set {mm4.%player%} to 2
  455.  
  456. set {mm4_c_klared::%player%} to 1440
  457.  
  458. add 150 to player's balance
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474. else:
  475.  
  476. wait 2 ticks
  477.  
  478. open chest with 3 rows named "&8Mine mission" to player
  479.  
  480. format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  481.  
  482. format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  483.  
  484. format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  485.  
  486. format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  487.  
  488. format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  489.  
  490. format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  491.  
  492. format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  493.  
  494. format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  495.  
  496. format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  497.  
  498. format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  499.  
  500. make player execute command "setminemenu m"
  501.  
  502.  
  503.  
  504. format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  505.  
  506. format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  507.  
  508. format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  509.  
  510. format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  511.  
  512. format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  513.  
  514. format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  515.  
  516. format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  517.  
  518. format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  519.  
  520. format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  521.  
  522. format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  523.  
  524.  
  525.  
  526.  
  527.  
  528. else:
  529.  
  530. wait 2 ticks
  531.  
  532. open chest with 3 rows named "&8Mine mission" to player
  533.  
  534. format slot 0 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  535.  
  536. format slot 1 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  537.  
  538. format slot 2 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  539.  
  540. format slot 3 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  541.  
  542. format slot 4 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  543.  
  544. format slot 5 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  545.  
  546. format slot 6 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  547.  
  548. format slot 7 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  549.  
  550. format slot 8 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  551.  
  552. format slot 9 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  553.  
  554. make player execute command "setminemenu m"
  555.  
  556.  
  557.  
  558. format slot 17 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  559.  
  560. format slot 18 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  561.  
  562. format slot 19 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  563.  
  564. format slot 20 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  565.  
  566. format slot 21 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  567.  
  568. format slot 22 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  569.  
  570. format slot 23 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  571.  
  572. format slot 24 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  573.  
  574. format slot 25 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  575.  
  576. format slot 26 of player with 1 of gray glass named "&8Mine mission" to be unstealable
  577.  
  578.  
  579. else:
  580.  
  581. message "no"
  582.  
  583.  
  584.  
  585. command /mreset:
  586. permission: *
  587. trigger:
  588.  
  589. delete {mm1.%player%}
  590.  
  591. delete {mm2.%player%}
  592.  
  593. delete {mm3.%player%}
  594.  
  595. delete {mm4.%player%}
  596.  
  597.  
  598.  
  599. command /setminemenu [<text>]:
  600.  
  601. trigger:
  602.  
  603. wait 3 tick
  604.  
  605. If arg 1 is not set:
  606.  
  607. message "&4no"
  608.  
  609. else if arg 1 is "m":
  610.  
  611. if {mm1.%player%} is not set:
  612.  
  613. format slot 11 of player with 1 of stone named "&9Mine &b200 &7sten" with lore "||&3du modtager:||&B250 &3KR" to run [make player execute command "/minemissionr 1 m"]
  614.  
  615. else if {mm1.%player%} is 1:
  616.  
  617. format slot 11 of player with 1 of stone of unbreaking 1 named "&aMission i gang" with lore "&3mine &b200 &7sten||&3du modtager:||&B250 &3KR" to run [make player execute command "/minemissions 1 m"]
  618.  
  619. else if {mm1.%player%} is 2:
  620.  
  621. format slot 11 of player with 1 block of emerald of unbreaking 1 named "&aMission klaret" with lore "&3du kan klare den igen om:||%{mm1_c_klared::%player%}% min" to be unstealable
  622.  
  623. else:
  624.  
  625. format slot 11 of player with 1 of stone named "fail" to be unstealable
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633. if {mm2.%player%} is not set:
  634.  
  635. format slot 12 of player with 20 of coal item named "&9Aflever &b20 &8kul" with lore "||&3du modtager:||&B300 &3KR" to run [make player execute command "/minemissionr 2 m"]
  636.  
  637. else if {mm2.%player%} is 1:
  638.  
  639. format slot 12 of player with 20 of coal item of unbreaking 1 named "&aMission i gang" with lore "&9Aflever &b20 &8kul||&3du modtager:||&B300 &3KR" to run [make player execute command "/minemissions 2 m"]
  640.  
  641. else if {mm2.%player%} is 2:
  642.  
  643. format slot 12 of player with 1 block of emerald of unbreaking 1 named "&aMission klaret" with lore "&3du kan klare den igen om:||%{mm2_c_klared::%player%}% min" to be unstealable
  644.  
  645. else:
  646.  
  647. format slot 12 of player with 1 of stone named "fail" to be unstealable
  648.  
  649.  
  650.  
  651. if {mm3.%player%} is not set:
  652.  
  653. format slot 14 of player with 15 of iron ore named "&3Aflever &b15 &fjern ore" with lore "||&3du modtager:||&B300 &3KR" to run [make player execute command "/minemissionr 3 m"]
  654.  
  655. else if {mm3.%player%} is 1:
  656.  
  657. format slot 14 of player with 15 of iron ore of unbreaking 1 named "&aMission i gang" with lore "&3Aflever &b15 &fjern ore||&3du modtager:||&B300 &3KR" to run [make player execute command "/minemissions 3 m"]
  658.  
  659. else if {mm3.%player%} is 2:
  660.  
  661. format slot 14 of player with 1 block of emerald of unbreaking 1 named "&aMission klaret" with lore "&3du kan klare den igen om:||%{mm3_c_klared::%player%}% min" to be unstealable
  662.  
  663.  
  664.  
  665. if {mm4.%player%} is not set:
  666.  
  667. format slot 15 of player with 1 of iron pickaxe named "&3Aflever &b1 &3hel ny &firon pickaxe" with lore "||&3du modtager:||&B150 &3KR" to run [make player execute command "/minemissionr 4 m"]
  668.  
  669. else if {mm4.%player%} is 1:
  670.  
  671. format slot 15 of player with 1 of iron pickaxe of unbreaking 1 named "&AMission i gang" with lore "&3Aflever &b1 &3hel ny &firon pickaxe||&3du modtager:||&B150 &3KR" to run [make player execute command "/minemissions 4 m"]
  672.  
  673. else if {mm4.%player%} is 2:
  674.  
  675. format slot 15 of player with 1 block of emerald of unbreaking 1 named "&aMission klaret" with lore "&3du kan klare den igen om:||%{mm4_c_klared::%player%}% min" to be unstealable
  676.  
  677.  
  678.  
  679. format slot 10 of player with 1 of air to be unstealable
  680.  
  681. format slot 13 of player with 1 of air to be unstealable
  682.  
  683. format slot 16 of player with 1 of air to be unstealable
  684.  
  685.  
  686.  
  687.  
  688.  
  689. command /minemissionr [<text>] [<text>]:
  690.  
  691. trigger:
  692.  
  693. If arg 1 is not set:
  694.  
  695. message "no"
  696.  
  697. else if arg 1 is "1":
  698.  
  699. If arg 2 is not set:
  700.  
  701. message "no"
  702.  
  703. else if arg 2 is "m":
  704.  
  705. if {mm1.%player%} is not set:
  706.  
  707. message "&7[&9Mine mission&7] &7Mine 200 sten så får du en belønning"
  708.  
  709. set {mm1.%player%} to 1
  710.  
  711. set {mm1.started.%player%} to 0
  712.  
  713. execute player command "/setminemenu m"
  714.  
  715. else if arg 1 is "2":
  716.  
  717. If arg 2 is not set:
  718.  
  719. message "no"
  720.  
  721. else if arg 2 is "m":
  722.  
  723. message "&7[&9Mine mission&7] &7Aflever 20 cul så får du en belønning"
  724.  
  725. set {mm2.%player%} to 1
  726.  
  727. set {mm2.started.%player%} to 0
  728.  
  729. execute player command "/setminemenu m"
  730.  
  731. else if arg 1 is "3":
  732.  
  733. If arg 2 is not set:
  734.  
  735. message "no"
  736.  
  737. else if arg 2 is "m":
  738.  
  739. message "&7[&9Mine mission&7] &7Aflever 15 jern ores så får du en belønning"
  740.  
  741. set {mm3.%player%} to 1
  742.  
  743. set {mm3.started.%player%} to 0
  744.  
  745. execute player command "/setminemenu m"
  746.  
  747. else if arg 1 is "4":
  748.  
  749. If arg 2 is not set:
  750.  
  751. message "no"
  752.  
  753. else if arg 2 is "m":
  754.  
  755. message "&7[&9Mine mission&7] &7Aflever 1 jern hakke så får du en belønning"
  756.  
  757. set {mm4.%player%} to 1
  758.  
  759. set {mm4.started.%player%} to 0
  760.  
  761. execute player command "/setminemenu m"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement