Skip to content

Advancements

iHeron edited this page Mar 14, 2024 · 5 revisions

Elytras of Fire Lib comes with 9 advancements:


Ability Used

ability_used.json is an advancement that is rewarded to players who have right-clicked their ability item β€” not necessarily activating said ability, but solely using the item. ability_used.json can be hooked into by adding your functions to your datapack's eoflib:reset/abilities.json function tag. Note that functions triggered via this advancement will activate one game tick after this advancement is rewarded to properly reset used abilities. Do not overwrite/add the file to Elytras of Fire Lib.

πŸ“¦ eoflib:advancements
β”” πŸ“„ ability_used.json

Death

death.json is an advancement that is rewarded to players who have died. death.json can be hooked into by adding your functions to your datapack's eoflib:tags/functions/death.json function tag. Do not overwrite/add the file to Elytras of Fire Lib.

πŸ“¦ eoflib:advancements
β”” πŸ“„ death.json

Dragon

dragon.json is an advancement that is rewarded under either of the following conditions: when a player joins a team that is recognised by any datapack as an Elytras of Fire team, or when a player is given a tag matching the name of an Elytras of Fire team1. Do not overwrite/add the file to Elytras of Fire Lib.

1: To learn how to have Elytras of Fire Lib recognise a custom team, please see this page in this wiki.

πŸ“¦ eoflib:advancements
β”” πŸ“„ dragon.json

Ignited

ignited.json is an advancement that is rewarded when a player is damaged by fire. Do not overwrite/add the file to Elytras of Fire Lib.

πŸ“¦ eoflib:advancements
β”” πŸ“„ ignited.json

New ID

new_id.json is an advancement that is rewarded to players who have joined the server for the first time since the datapack's loading. It assigns every player a unique score that can be used to distinguish between players, separate ability users from targets, and so on. new_id.json can be hooked into by adding your functions to your datapack's eoflib:tags/functions/new_id.json function tag. Do not overwrite/add the file to Elytras of Fire Lib.

{
  "replace": false,
  "values": [
    "namespace:function/path/here",
    ...
  ]
}
πŸ“¦ eoflib:advancements
β”” πŸ“„ new_id.json

Projectile Fired

projectile_fired.json is an advancement that is rewarded to players who have executed an action resulting in a projectile firing from their entity (i.e. using an egg, ender pearl, or snowball or firing a crossbow or bow, etc.). projectile_fired.json can be hooked into by adding your functions to your datapack's eoflib:tags/functions/projectile_fired.json function tag. Do not overwrite/add the file to Elytras of Fire Lib.

{
  "replace": false,
  "values": [
    "namespace:function/path/here",
    ...
  ]
}
πŸ“¦ eoflib:advancements
β”” πŸ“„ projectile_fired.json

Rejoin

rejoin.json is an advancement that is activated when a player rejoins the world or server. Most commonly, this is used to reactivate schedules that require players present on the server such as tribe effects, passive abilities, and ability cooldowns. rejoin.json can be hooked into by adding your functions to your datapack's eoflib:tags/functions/rejoin.json function tag. Do not overwrite/add the file to Elytras of Fire Lib.

{
  "replace": false,
  "values": [
    "namespace:function/path/here",
    ...
  ]
}
πŸ“¦ eoflib:advancements
β”” πŸ“„ rejoin.json

Ricardo Report

ricardo_report.json is an advancement used by this library to detect if something has gone horribly wrong. It handles the event in which a player either throws or eats Ricardo the Error potato, sending the player a bug report form in chat along with the opportunity to bid Ricardo farewell.

πŸ“¦ eoflib:advancements
β”” πŸ“„ ricardo_report.json

Root

root.json](https://github.com/iHeronGH/Elytras-of-Fire-Lib/blob/main/EoFLib%20v1.0.0/data/eoflib/advancements/root.json) is an advancement that is rewarded to players who have joined the server for the first time since the datapack's loading. It is simply used to detect that the datapack has loaded. Do not overwrite/add the file to Elytras of Fire Lib.

{
  "parent": "eoflib:root",
  ...
}
πŸ“¦ eoflib:advancements
β”” πŸ“„ root.json

Trigger

trigger.json is an advancement that is rewarded to players who have triggered certain scoreboard events.

πŸ“¦ eoflib:advancements
β”” πŸ“„ trigger.json
Clone this wiki locally