Skip to content

API reference Obsidian.API.Advancements

IAdvancements interface

Persistent criteria progress. Granting the last requirement awards the advancement's rewards.

public interface IAdvancements

In Obsidian.API.

Methods

GrantAsync(string, string)

ValueTask<bool> GrantAsync(string identifier, string criterion = null);

Grants a criterion of the advancement, or all of them, with its rewards once it's done. It waits for the player's tick, grant or save under way.

Returns

Whether anything was granted.

bool HasCriterion(string identifier, string criterion);bool IsDone(string identifier);bool Revoke(string identifier, string criterion = null);

On this page