Oxalist

Untitled

Jan 5th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. command /missions:
  2. trigger:
  3. open chest with 6 row named "&e&lMISSIONS" to player
  4. wait 3 ticks
  5. format slot 4 of player with player's skull named "&f&l%player%" with lore "&eMoney: &f%player's money%" to be unstealable
  6. format slot 10 of player with iron ore named "&6&lMISSION &8(&71&8)" with lore "||&eObjective: &f64 Iron Ore||&f||&7Click here to conplete the misson||&f||&eReward: &f$130" to close then run [make player execute command "mission1"]
  7. format slot 11 of player with coal ore named "&6&lMISSION &8(&72&8)" with lore "||&eObjective: &f64 Coal Ore||&f||&7Click here to conplete the misson||&f||&eReward: &f$80" to close then run [make player execute command "mission2"]
  8. format slot 12 of player with gold ore named "&6&lMISSION &8(&73&8)" with lore "||&eObjective: &f64 Gold Ore||&f||&7Click here to conplete the misson||&f||&eReward: &f$200" to close then run [make player execute command "mission2"]
  9.  
  10.  
  11. command /mission1:
  12. trigger:
  13. while amount of iron ore in player's inventory is bigger than 64:
  14. remove 64 iron ore from player's inventory
  15. add 130 to player's balance
  16. send "&6» &eSuccess! you have completed the mission"
  17. else:
  18. send "&6» &eError! &eyou do not have enough iron ore"
  19.  
  20. command /mission2:
  21. trigger:
  22. while amount of coal in player's inventory is bigger than 64:
  23. remove 64 coal from player's inventory
  24. add 80 to player's balance
  25. send "&6» &eSuccess! you have completed the mission"
  26. else:
  27. send "&6» &eError! &eyou do not have enough coal ore"
  28.  
  29. command /mission3:
  30. trigger:
  31. while amount of gold ore in player's inventory is bigger than 64:
  32. remove 64 gold ore from player's inventory
  33. add 200 to player's balance
  34. send "&6» &eSuccess! you have completed the mission"
  35. else:
  36. send "&6» &eError! &eyou do not have enough gold ore"
Advertisement
Add Comment
Please, Sign In to add comment