Bridge for SubscribeEvent to KubeJS usage.
Currently supporting onTrade(TradeWithVillagerEvent).
This mod will capture onTrade events and stores the villager profession and times traded to the players persistentData. Kubejs can be used to read persistentData and hook an FTBQuest task ID to use said data.
For example,
- FTBQuest custom task set to 'Trade 10x with a Librarian'
- KubeJS script set to hook player persistentData to custom task ID
- Quest Event Bridge writes onTrade event count/profession to persistentData
- Success
Forgive the lack of description/documentation. This mod is primarily being developed to be used in a modpack. I needed a specific event capture to allow certain event progress within FTBQuests.
Progress and Tracking with custom task set with KubeJS reading from data created by the questeventbridge
Partial example script of using task id and reading player.nbt
qeb commands let you preview player trades /qeb trades - preview player data of trades /qeb reset_trades - deletes player data of trades from questeventbridge /qeb set_trades - manually set trade count/profession to player data