streak-commands:
-: # when the streak ends (when a player dies) - title
%player% title "Your streak of %streak% ended :(" - scoreboard players set
%player% streak 0 /1: # when streak is divisible by 1, this runs every time the streak increases - title
%player% title " " - title
%player% subtitle "New streak - %streak%" - scoreboard objectives add streak dummy KillStreak
- scoreboard objectives setdisplay list streak
- scoreboard players set
%player% streak %streak% /5: # when streak is divisible by 5 - title
%player% title "You're on a roll!" 10: # when streak is exactly 10 - title
%player% title "Ten kills!" log-commands: false
# Log commands
In the streak-commands section, you can set commands to execute when the player's streak either increases or resets.
There are three types of streak commands:
1. Reset Commands The section for these commands is marked with the sign -
These commands execute whenever the player's streak is lost
Code (YAML):
streak-commands:
-: - title
%player% title " " - title
%player% subtitle "Your streak of %streak% has ended"
2. Exact Amount Commands Exact amount commands execute when a player has reached an exact kill-streak.
These commands need to be marked with the number of kills necessary to activate them
Code (YAML):
streak-commands:
1: title
%player% title "First kill!" 2: title
%player% title "Second kill!" 10: title
%player% title "Tenth kill!"
3. Modulus Commands Modulus commands execute when a player's kill-streak has increased by a specific amount. Essentially, they will execute every n kills (for /5, they'll execute every 5 kills, and so on)
These commands need to be marked with /n, where n is the increase of kills necessary to activate them. For example, /1 will execute the commands every time the player kills another player
Code (YAML):
streak-commands:
/1: title
%player% title "New Streak!" title
%player% subtitle "Streak: %streak%" /5: title
%player% title "On Fire!" /15: title
%player% title "Insane!"