Oxalist

Untitled

Feb 26th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. command /set [<text>] [<text>] [<number>]:
  2. trigger:
  3. if arg 1 is not set:
  4. if arg 2 is not set:
  5. send "&8[&6&l❂&8] &e/set <warp/tutorial> <name> [<number>]"
  6. if arg 1 is set:
  7. if arg 2 is not set:
  8. send "&8[&6&l❂&8] &e/set <warp/tutorial> <name> [<number>]"
  9. if arg 1 is "warp":
  10. if arg 2 is set:
  11. send "&8[&6&l❂&8] &eSet warp &6%arg 2%"
  12. set {%arg 2%} to location of the player
  13. if arg 1 is "tutorial":
  14. if arg 3 is set:
  15. send "&8[&6&l❂&8] &eSet tutorial location &6%arg 3%" to player
  16. set {tutorial%arg 3%} to location of the player
  17.  
  18. command /warp [<text>] [<player>]:
  19. trigger:
  20. if arg 1 is not set:
  21. if arg 2 is not set:
  22. send "&8[&6&l❂&8] &e/warp <warp> [<player>]"
  23. if arg 1 is set:
  24. if arg 2 is not set:
  25. teleport player to {%arg 1%}
  26. send "&8[&6&l❂&8] &eTeleported to warp &6%arg 1%"
  27. if arg 1 is set:
  28. if arg 2 is set:
  29. teleport arg 2 to {%arg 1%}
  30. send "&8[&6&l❂&8] &eYou teleported %arg 2% to warp &6%arg 1%"
  31. send "&8[&6&l❂&8] &6%player% &eteleported you to &6%arg 1%" to arg 2
  32.  
  33. command /warps:
  34. trigger:
  35. open chest with 3 rows named "&7 &0&nPlayer Warps" to player
  36. if player has permission "warp.mine":
  37. format slot 10 of player with emerald named "&6&lMINE &7(Click to warp)" with lore "||&8» &7Click to warp to the mine||&7||&8» &a&lUNLOCKED" to close then run [player command "warp mine"]
  38. if player does not have permission "warp.mine":
  39. format slot 10 of player with emerald named "&6&lMINE &7(Click to warp)" with lore "||&8» &7Click to warp to the mine||&7||&8» &c&lLOCKED" to be unstealable
  40. if player has permission "warp.spawn":
  41. format slot 11 of player with emerald named "&6&lSPAWN &7(Click to warp)" with lore "||&8» &7Click to warp to the spawn||&7||&8» &a&lUNLOCKED" to close then run [player command "warp spawn"]
  42. if player does not have permission "warp.spawn":
  43. format slot 11 of player with emerald named "&6&lSPAWN &7(Click to warp)" with lore "||&8» &7Click to warp to the spawn||&7||&8» &c&lLOCKED" to be unstealable
  44.  
  45. command /compressor:
  46. trigger:
  47. open chest with 3 rows named "&7 &0&nCompressor" to player
  48. format slot 10 of player with coal named "&8&lCOAL &7(Click to compress)" with lore "||&8» &7Click to compress your coal ||&7" to close then run [player command "compresscoal"]
  49. format slot 11 of player with iron ingot named "&f&lIRON &7(Click to compress)" with lore "||&8» &7Click to compress your iron ||&7" to close then run [player command "compressiron"]
  50.  
  51.  
  52. command /compresscoal:
  53. trigger:
  54. while amount of coal ore in player's inventory is less than 1:
  55. send "&8[&6&l❂&8] &eYou need to get some coal ore to compress" to player
  56. stop
  57. while amount of coal ore in player's inventory is bigger than 0:
  58. remove 1 coal ore from player's inventory
  59. add 1 to {coal}
  60. send player title "&6&lCOMPRESSED" with subtitle "&eSold for &6%{coal}%⛃" for 2 seconds
  61. add {coal} to player's balance
  62. set {coal} to 0
  63. stop
  64.  
  65. command /compressiron:
  66. trigger:
  67. while amount of iron ore in player's inventory is less than 1:
  68. send "&8[&6&l❂&8] &eYou need to get some iron ore to compress" to player
  69. stop
  70. while amount of iron ore in player's inventory is bigger than 0:
  71. remove 1 iron ore from player's inventory
  72. add 1 to {iron}
  73. send player title "&6&lCOMPRESSED" with subtitle "&eSold for &6%{iron}%⛃" for 2 seconds
  74. add {iron} to player's balance
  75. set {iron} to 0
  76. stop
  77.  
  78. on break:
  79. if event-block is coal ore or iron ore:
  80. stop
  81. if event-block is not coal ore or iron ore:
  82. cancel event
  83. send "&8[&6&l❂&8] &eYou cant break this type of block"
  84.  
  85. on damage:
  86. cancel event
  87. send "&8[&6&l❂&8] &eYou cant pvp in this area" to attacker
  88.  
  89. on break:
  90. if name of player's tool is "&6&lSTARTER PICKAXE":
  91. set the 1st line of lore of player's tool to "&7"
  92. set the 2nd line of lore of player's tool to "&8[&6&l❂&8] &eXP: %{exp.%player%}%"
  93.  
  94. on join:
  95. set slot 0 of player's inventory to diamond pickaxe named "&6&lSTARTER PICKAXE"
  96. on first join:
  97. set slot 0 of player's inventory to diamond pickaxe named "&6&lSTARTER PICKAXE"
  98.  
  99. on break of coal ore:
  100. cancel event
  101. chance of 40%:
  102. give 2 coal ore to player
  103. set action bar of player to "&eYou got lucky and got an extra &6coal ore"
  104. set block to stone
  105. add 1 to {exp.%player%}
  106. give 1 coal ore to player
  107. wait 3 seconds
  108. set block to coal ore
  109.  
  110. on break of iron ore:
  111. cancel event
  112. chance of 40%:
  113. give 2 iron ore to player
  114. set action bar of player to "&eYou got lucky and got an extra &6iron ore"
  115. set block to stone
  116. add 2 to {exp.%player%}
  117. give 1 iron ore to player
  118. wait 3 seconds
  119. set block to iron ore
Advertisement
Add Comment
Please, Sign In to add comment