Advertisement
Guest User

Kill Streak Skript

a guest
Jan 2nd, 2023
981
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 1 0
  1. on death:
  2. attacker is a player
  3. add 1 to {kill counter::%uuid of attacker%::kills_total}
  4. add 1 to {kill counter::%uuid of attacker%::kills_session}
  5. if {kill counter::%uuid of attacker%::kills_session} > {kill counter::%uuid of attacker%::kills_session_max}:
  6. set {kill counter::%uuid of attacker%::kills_session_max} to {kill counter::%uuid of attacker%::kills_session}
  7.  
  8. on death of player:
  9. set {kill counter::%uuid of player%::kills_session} to 0
  10.  
  11. command /kills:
  12. executable by: players
  13. trigger:
  14. message "You have killed %{kill counter::%uuid of player%::kills_session}% mobs and players in this life out of %{kill counter::%uuid of player%::kills_total}% kills in total."
  15. message "Your maximum kill streak is %{kill counter::%uuid of player%::kills_session_max}% kills in one life."
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement