FTB Quests
FTB Quests is optional. The teams and classes work without it. With it, you can give each team its own quest chapters.
What Steamon Origin gives to FTB Quests
Choosing a team or a class grants an advancement that quests can use as a condition:
| Advancement | Granted when |
|---|---|
steamon:team/spark, steamon:team/relic, steamon:team/might |
the player chooses that team. The advancements of the other teams are revoked |
steamon:sub/<class> |
the player chooses that class |
Choosing a team also runs the function tag #steamon:team_chosen. It is empty by default. A datapack can add a function to it, to do something when a player takes a team.
Chapters visible to one team only
FTB Quests hides a chapter when none of its quests is visible. To show a chapter only to the members of a team:
- Start the chapter with a quest marked as invisible until it is completed. Its only task is the advancement of the team, for example
steamon:team/spark. - Make every other quest of the chapter depend on that quest.
- On the chapter, turn on "Hide quests until dependencies are visible".
A player of another team never completes the first quest, so they see neither the quests nor the chapter. A member completes it as soon as they choose, and the chapter appears.
Never leave a quest of a team chapter without a dependency: it would be visible to every team.
Losing the chapter when changing team
When a player changes team, the old chapter disappears, because the advancement of the old team is revoked. To also remove their progress, add a function to #steamon:team_chosen that resets the chapters of the teams the player is not in:
execute unless entity @s[tag=steamon.team.spark] run ftbquests change_progress @s reset <chapter id>
The tags steamon.team.spark, steamon.team.relic and steamon.team.might are already set for the new team when the function runs. The player then starts from zero if they come back to that team. Rewards already claimed are not taken back.
Good to know
- Quest progress belongs to the FTB team, not to the player. Two players of different Steamon teams in the same FTB party share their quests, and a reset applies to the whole party. Keep each player in their own FTB team if the chapters must stay private.
- The chapter appears a moment after the choice, on the next player tick.
- The advancements and the function tag were checked on a test server with FTB Quests 2101.1.39, FTB Library 2101.1.40 and FTB Teams 2101.1.12. Hiding a chapter and resetting it on a team change have not been played through with real players yet.
