valence/crates/valence_advancement
Jenya705 41bcd1eb2c
Advancement api (#329)
## Description

Did an api for advancements.
Issue: https://github.com/valence-rs/valence/issues/325

Each advancement is an entity, it's children is either criteria, either
advancement.
Root advancement has no parent.

Also did an event AdvancementTabChange (listens if client changes
advancement's tab)

## Test Plan

Use an example "advancements"
2023-05-02 01:35:35 -07:00
..
src Advancement api (#329) 2023-05-02 01:35:35 -07:00
Cargo.toml Advancement api (#329) 2023-05-02 01:35:35 -07:00
README.md Advancement api (#329) 2023-05-02 01:35:35 -07:00

valence_advancement

Everything related to Minecraft advancements.

Warning

  • Each advancement should be scheduled to be sent to each unique client.
  • Advancement identifier is not mutable and changing it can cause bugs.