Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /get-scor:
- permission: a
- trigger:
- give a nether star with nbt "{display:{Name:""&eHook"",Lore:[""&6Class Item""]}}" to player
- on right click holding nether star:
- if name of player's tool is "&eHook":
- if {sco.%player%} is set:
- stop
- set {sco.%player%} to now
- drop 1 of nether star named "&a%player%" at location of player's eye
- loop all entities in radius 2 of player:
- loop-entity is a dropped item:
- loop 4 times:
- push loop-entity in direction of player at speed 0.5
- loop all players in radius 2 of loop-entity:
- if loop-player is not player:
- if {team.%player%} is not {team.%loop-player%}:
- teleport loop-player to player
- clear loop-entity-1
- play raw sound "random.door_open" at player with pitch 0.1 volume 1
- stop
- wait a ticks
- loop 70 times:
- loop all players in radius 2 of loop-entity:
- if loop-player is not player:
- if {team.%player%} is not {team.%loop-player%}:
- teleport loop-player to player
- clear loop-entity-1
- play raw sound "random.door_open" at player with pitch 0.1 volume 1
- stop
- if block below the loop-entity is not air:
- clear loop-entity
- stop
- wait a tick
- clear loop-entity
- stop loop
- every a second:
- loop all players:
- set {_c} to difference between {sco.%loop-player%} and now
Advertisement
Add Comment
Please, Sign In to add comment