#FTBQuests Integration

3 messages · Page 1 of 1 (latest)

opal sand
#

I'm trying to figure out how to update a custom task incrementally using KubeJS. The task I am trying to make is "Eat 5 unique foods." I get the value through NBT parsing of player data through the SoL: Carrot mod (not that important). I have the ability to check for how many unique food-items a player has eaten, just not the ability to update the custom task. Any help would be appreciated!

#
if (event.player.fullNBT['ForgeCaps']['solcarrot:food']['foodList'].length >= 5) {
            console.info(event.player + " has eaten 5 or more types of food!")
            //Something here to update task hopefully
}```
opal sand
#

I fixed it! Turns out you needed to save the quests to the server in the FTBQuests GUI, and then reload them. This allows the event to trigger.