Repository navigation
FTB Quests Integration
With FTB Quests installed, a timer can start or end when a quest is completed or a reward is claimed.
Nothing needs configuring. OnTime looks for FTB Quests at startup and uses it if it is there.
/timer trigger boss add ftb_quest 1234567890ABCDEF start
/timer trigger boss add ftb_reward 0FEDCBA987654321 finish
| Kind | Fires when |
|---|---|
ftb_quest |
that quest has been completed |
ftb_reward |
that reward has been claimed |
Both are states, not moments: they are asked about rather than remembered, so they stay true for as long as the quest stays completed. That is what lets them be combined with other conditions — see Triggers.
Like every trigger, they say who they are watching:
/timer trigger boss add ftb_quest 1234567890ABCDEF start all players Bob,Ann
/timer trigger boss add ftb_quest 1234567890ABCDEF start at_least 3 selector @a[team=red]
The same two are available inside Expressions, which is how you combine them with arithmetic:
/timer trigger boss add expression start ftb_quest_completed(1234567890ABCDEF) && players_online > 3
Quest and reward ids are the long hexadecimal strings FTB Quests uses
internally. The quest book shows them in its editor, and they also appear in the
quest files under config/ftbquests/.
Everything above simply does nothing. Triggers of those two kinds are kept — they are part of the timer, and installing FTB Quests later brings them to life — but they never fire, and nothing is logged as an error.
The mod is reached entirely by reflection, so a version of FTB Quests that moves things around cannot crash OnTime. In the worst case the trigger stops firing and the rest of the mod carries on.