Run commands after killing x amount of mobs
This page is all about setting up a kill counter, a milestone system and a limit on how many times it would execute the activator
Last updated
This page is all about setting up a kill counter, a milestone system and a limit on how many times it would execute the activator
Last updated
Set the TYPE
to NUMBER
Set the FOR
to PLAYER
Set the Default Value
to 0
Save the settings
This will add value to the KILL-COUNT SCore variable every time we kill a mob
score variables modification player KILL-COUNT 1 %player%
For this one, let's say, we want to do a 10-kill milestone.
score variables set player KILL-COUNT 0 %player%
score variables modification player OBJ-COUNT 1 %player%
This is where you start adding commands like ei give %player% diamond 1
for custom rewards
The OBJ-COUNT SCore variable will be explained later in the guide
To why part2 is equals to 9, unlike the milestone/objective/action counter method used in executable items, executable events does not have a proper in-built variable system and running score variables commands doesn't finish fast enough for the next activators to run.
What happens actually in the technical side is, when the activator runs, it sees the placeholder as 0 then turns it into 1. when the activator runs the activator agian, it sees 1 then turns it into 2.
The number here must be the same as the one in the previous activator