ArtzifyHD

Diamond

Aug 15th, 2017
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. mine of diamond ore:
  2. {diamonds::%player%::%location of event-block%} is not set
  3. loop blocks in radius 5 around block:
  4. loop-block is diamond ore:
  5. add 1 to {_diamondore}
  6. set {diamonds::%player%::%location of loop-block%} to true
  7. broadcast "&8[&b&lFX&8] &b%player%&7 has found &b%{_diamondore}% &7diamonds!"
  8. command /ping [<player>]:
  9. aliases: /p
  10. trigger:
  11. if arg 1 is not set:
  12. send "&8[&b&lFX&8] &b%player%'s Ping: &7%player's ping% ms"
  13. else:
  14. send "&8[&b&lFX&8] &b%player-arg%'s Ping: &7%player-arg's ping% ms "
  15. command /stats [<text>]:
  16. trigger:
  17. if arg 1 is not set:
  18. message "&7Kills&7: &c%{kills.%player%}%"
  19. message "&7Deaths&7: &c%{deaths.%player%}%"
  20.  
  21. on craft of golden apple:
  22. cancel event
  23.  
  24. command /Staff:
  25. permission: hcf.staff
  26. aliases: /h
  27. trigger:
  28. if {staffmode} is false:
  29. clear player's inventory
  30. message "&8[&b&lFX&8] &bStaff Mode: &aEnabled"
  31. wait 1 tick
  32. equip player with chain leggings
  33. wait 1 tick
  34. enchant the player's leggings with unbreaking 3
  35. enchant the player's leggings with protection 1
  36. wait 1 tick
  37. set slot 5 of player to a emerald named "&aPlayer Teleport"
  38. wait 1 tick
  39. set slot 7 of player to a nether star named "&bVanish &7(Become Invisible)"
  40. wait 1 tick
  41. set slot 0 of player to a compass named "&cTeleporter &7(Teleport To Players)"
  42. wait 1 tick
  43. set slot 8 of player to a lead named "&9Follower &7(Follow Players Around) "
  44. set slot 1 of player to a diamond sword named "&c&lHacker &f&lSlayer"
  45. enchant the player's slot 1 with sharpness 100
  46. set {staffmode} to true
  47. make player execute command "/gamemode c"
  48. else:
  49. message "&8[&b&lFX&8] &bStaff Mode: &cDisabled"
  50. set {staffmode} to false
  51. wait 1 tick
  52. clear player's inventory
  53. make player execute command "/gamemode s"
  54.  
  55. on break:
  56. if {staffmode} is true:
  57. cancel event
  58. on place:
  59. if {staffmode} is true:
  60. cancel event
  61. on damage:
  62. if {on.%attacker%} is true:
  63. cancel event
  64. if {on.%victim%} is true:
  65. cancel event
  66. on respawn:
  67. if player has permission " hcf.staff":
  68. if {staffmode} is true:
  69. make player execute command "/staff"
  70. set {staffmode} to false
  71.  
  72.  
  73.  
  74. on right click with emerald:
  75. if player is holding a emerald named "&aPlayer Teleport":
  76. if player has permission "hcf.staff":
  77. set {_random} to a random player out of all players
  78. while {_random} is name of player:
  79. set {_random} to a random player out of all players
  80. wait 1 tick
  81. if {_random} is not name of player:
  82. teleport player 1 behind {_random}
  83. send "&7[&9&lHCF&7] Teleported to &c%{_random}%"
  84. else:
  85. message "&c&lNo"
  86.  
  87.  
  88. on right click with nether star:
  89. if player is holding a nether star named "&bVanish &7(Become Invisible)":
  90. if player has permission "hcf.staff":
  91. if {vanish} is true:
  92. set {vanish} to false
  93. make player execute command "/vanish"
  94. message "&8[&b&lFX&8] &b Vanish has been &cDisabled"
  95. else:
  96. make player execute command "/vanish"
  97. message "&8[&b&lFX&8] &b Vanish has been &aEnabled"
  98. set {vanish} to true
  99. else:
  100. message "&c&lNo"
  101. on inventory click:
  102. if {staffmode} is true:
  103. cancel event
  104.  
  105. on right click with lead:
  106. if player is holding a lead named "&9Follower &7(Follow Players Around) ":
  107. if player has permission "hcf.staff":
  108. if entity's target is a player:
  109. set {_name} to "%target entity%" parsed as a player
  110. send "&8[&b&lFX&8] &b &7You now follow &9%{_name}%"
  111. make player ride {_name}
  112.  
  113. on drop:
  114. if {staffmode} is true:
  115. if player has permission "hcf.staff":
  116. if event-item is a emerald:
  117. cancel event
  118. if event-item is a nether star:
  119. cancel event
  120. if event-item is a compass:
  121. cancel event
  122. if event-item is a lead:
  123. cancel event
  124. if event-item is a white stained glass pane:
  125. cancel event
  126. on right click:
  127. if {staffmode} is true:
  128. if player has permission "hcf.staff":
  129. if event-item is a emerald:
  130. cancel event
  131. if event-item is a nether star:
  132. cancel event
  133. if event-item is a compass:
  134. cancel event
  135. if event-item is a lead:
  136. cancel event
  137. on left click:
  138. if {staffmode} is true:
  139. if player has permission "hcf.staff":
  140. if event-item is a emerald:
  141. cancel event
  142. if event-item is a nether star:
  143. cancel event
  144. if event-item is a compass:
  145. cancel event
  146. if event-item is a lead:
  147. cancel event
  148. on rightclick on chest:
  149. if {on.%player%} is true:
  150. cancel event
  151. loop items in clicked chest:
  152. add loop-item to {_item::*}
  153. wait 3 ticks
  154. set {_slot} to 0
  155. open chest with 6 row named "&3Chest" to player
  156. loop {_item::*}:
  157. format slot {_slot} of player with loop-value named "" with lore "" to be unstealable
  158. add 1 to {_slot}
  159. add 1 to {_slot}
  160.  
  161. # Donator Chat - Give this to people who donate
  162. command /donatorchat [<text>]:
  163. aliases: /dc,
  164. permission: {hcf.helperchat}
  165. permission message: &c&lNo
  166. trigger:
  167. loop all players:
  168. if arg 1 is not set:
  169. message "&8[&b&lFX&8] &cError, use &7./donatorchat [Message]"
  170. stop trigger
  171. if arg 1 is set:
  172. if loop-player has permission "hcf.donatorchat":
  173. send "&7[&3&lDonatorChat&7] &7%player% &2ยป &f%arg 1%"
Advertisement
Add Comment
Please, Sign In to add comment