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.
events.listen("ftbutilities.chunk.claimed", function (event) {
if(event.player) {...