Steamon Origin, teams and classes for Cobblemon, wiki

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:

  1. 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.
  2. Make every other quest of the chapter depend on that quest.
  3. 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