Previously I was detecting killed tagged entities through a datapack with scoreboards and advancements but I would like to, if possible, detect it through kubejs so that the progress displays as a percent under the title (like it does with all other FTB quests tasks).
I want to have multiple levels of this (i.e. 50 zombies killed, 100 zombies killed, etc.) and I'm not really sure how to go about any of it. This is my current code without implementing anything complicated yet
event.maxProgress = 100 // Sets the Progress Count.
event.setCheck((task, player) => {
if(player.killedEntity("minecraft:zombie")) { //Checks if zombie killed by player
task.progress++ // Adds progress to the quest.
}
})
})```