Home Commands Examples Getting Started With Scripts Global Keywords 1.21 Migration Guide
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

Advancement

Importing the class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

script.zs
import crafttweaker.api.advancement.Advancement;

Extending Record

Advancement extends Record. That means all methods available in Record are also available in Advancement

Properties

NameTypeHas GetterHas Setter
Name
criteria
Type
Criterion[string]
Has Getter
true
Has Setter
false
Name
display
Type
DisplayInfo?
Has Getter
true
Has Setter
false
Name
isRoot
Type
boolean
Has Getter
true
Has Setter
false
Name
name
Type
Component?
Has Getter
true
Has Setter
false
Name
parent
Type
ResourceLocation?
Has Getter
true
Has Setter
false
Name
requirements
Type
AdvancementRequirements
Has Getter
true
Has Setter
false
Name
rewards
Type
AdvancementRewards
Has Getter
true
Has Setter
false
Name
sendsTelemetryEvent
Type
boolean
Has Getter
true
Has Setter
false