Oxalist

Untitled

Mar 18th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. command /key [<text>] [<player>] [<text>]:
  2. trigger:
  3. if arg 1 is not set:
  4. if arg 2 is not set:
  5. if arg 3 is not set:
  6. send ""
  7. send "&e(!) /key <give/list> [<player>] [<keyname>]"
  8. send ""
  9. if arg 1 is "list":
  10. send ""
  11. send "&e(!) List of keys:"
  12. send ""
  13. send "&7(!) &bDiamond"
  14. send "&7(!) &6Gold"
  15. send "&7(!) &fIron"
  16. send ""
  17. if arg 1 is "give":
  18. if arg 2 is set:
  19. if arg 3 is "iron":
  20. give 1 light gray dye named "&f&lIron Key &7(Click on crate to redeem)" to arg 2
  21. if arg 1 is "give":
  22. if arg 2 is set:
  23. if arg 3 is "gold":
  24. give 1 orange dye named "&6&lGold Key &7(Click on crate to redeem)" to arg 2
  25. if arg 1 is "give":
  26. if arg 2 is set:
  27. if arg 3 is "diamond":
  28. give 1 light blue dye named "&b&lDiamond Key &7(Click on crate to redeem)" to arg 2
  29.  
  30. command /crate:
  31. permission: crate.admin
  32. trigger:
  33. give 1 magma_block named "&6Crate &7(Place to set a crate)" to player
  34.  
  35. command /cratereset:
  36. permission: crate.admin
  37. trigger:
  38. set {crate} to "False"
  39.  
  40. on place of magma_block:
  41. if player's tool is magma_block named "&6Crate &7(Place to set a crate)":
  42. set {crate} to location of event-block
  43.  
  44. on rightclick on magma_block:
  45. if {crate} is set:
  46. if player's tool is light gray dye named "&f&lIron Key &7(Click on crate to redeem)":
  47. set {ironcrate} to random integer between 1 and 5
  48. remove 1 light gray dye from player
  49. if {ironcrate} is 1:
  50. send "&e(!) You have just opened an iron crate and got $1000"
  51. add 1000 to player's balance
  52. stop
  53. if {ironcrate} is 2:
  54. send "&e(!) You have just opened an iron crate and got $2000"
  55. add 2000 to player's balance
  56. stop
  57. if {ironcrate} is 3:
  58. send "&e(!) You have just opened an iron crate and got $3000"
  59. add 3000 to player's balance
  60. stop
  61. if {ironcrate} is 4:
  62. send "&e(!) You have just opened an iron crate and got $5000"
  63. add 5000 to player's balance
  64. stop
  65. if {ironcrate} is 5:
  66. send "&e(!) You have just opened an iron crate and got 50 harvest levels"
  67. add 50 to {shards.%player%}
  68. stop
Advertisement
Add Comment
Please, Sign In to add comment