I have been trying to trigger a script in KubeJS by claiming a chunk with FTBChunks. I found a reddit post where someone was able to do this back when FTBChunks was FTB Utilities using the code below.
I basically want to do the same thing and complete a task in a quest. I am able to complete the task using other triggers built in to KubeJS, but I've not been able to find an event that triggers to do this on the newest version of FTBChunks. I've tried to guess and change "ftbutilities.chunk.claimed" to "ftbchunks.chunk.claimed" and a ton of other variations with no success. Maybe there is a simpler solution than this, but any help would be appreciated! Thanks.
JavaScript:
events.listen("ftbutilities.chunk.claimed", function (event) {
if(event.player) {
event.player.data.ftbquests.addProgress("a75a48fa", 1);
}
});
I basically want to do the same thing and complete a task in a quest. I am able to complete the task using other triggers built in to KubeJS, but I've not been able to find an event that triggers to do this on the newest version of FTBChunks. I've tried to guess and change "ftbutilities.chunk.claimed" to "ftbchunks.chunk.claimed" and a ton of other variations with no success. Maybe there is a simpler solution than this, but any help would be appreciated! Thanks.