kazuken0814

Untitled

Jun 24th, 2018
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. command /get-scor:
  2. permission: a
  3. trigger:
  4. give a nether star with nbt "{display:{Name:""&eHook"",Lore:[""&6Class Item""]}}" to player
  5. on right click holding nether star:
  6. if name of player's tool is "&eHook":
  7. if {sco.%player%} is set:
  8. stop
  9. set {sco.%player%} to now
  10. drop 1 of nether star named "&a%player%" at location of player's eye
  11. loop all entities in radius 2 of player:
  12. loop-entity is a dropped item:
  13. loop 4 times:
  14. push loop-entity in direction of player at speed 0.5
  15. loop all players in radius 2 of loop-entity:
  16. if loop-player is not player:
  17. if {team.%player%} is not {team.%loop-player%}:
  18. teleport loop-player to player
  19. clear loop-entity-1
  20. play raw sound "random.door_open" at player with pitch 0.1 volume 1
  21. stop
  22. wait a ticks
  23. loop 70 times:
  24. loop all players in radius 2 of loop-entity:
  25. if loop-player is not player:
  26. if {team.%player%} is not {team.%loop-player%}:
  27. teleport loop-player to player
  28. clear loop-entity-1
  29. play raw sound "random.door_open" at player with pitch 0.1 volume 1
  30. stop
  31. if block below the loop-entity is not air:
  32. clear loop-entity
  33. stop
  34. wait a tick
  35. clear loop-entity
  36. stop loop
  37. every a second:
  38. loop all players:
  39. set {_c} to difference between {sco.%loop-player%} and now
Advertisement
Add Comment
Please, Sign In to add comment