API reference Obsidian.API.Advancements
Criteria class
Criteria for advancements. Runtime progress belongs to each player's IAdvancements; these legacy fields are only for callers building packets.
public class Criteria
In Obsidian.API.
Constructors
public Criteria(string name, bool required);Properties
public bool Achieved { get; }public DateTimeOffset? AchievedAt { get; }Conditions
public JsonElement Conditions { get; init; }Detached vanilla-shaped conditions, evaluated by the registered trigger.
public string Identifier { get; }public bool Required { get; }public string Trigger { get; init; }Methods
public void CompleteCriteria(DateTimeOffset completedAt);