AdvancementRewards

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

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

Members

grant(player as ServerPlayer)
Grants the advancement rewards to the player.
script.zs
// AdvancementRewards.grant(player as ServerPlayer);
myAdvancementRewards.grant(myServerPlayer);

Parameters:

player Type: ServerPlayer - The player to grant the advancement rewards to.
Getter
Gets the recipes that are unlocked when the advancement is completed.
script.zs
// AdvancementRewards.recipes as List<ResourceLocation>
myAdvancementRewards.recipes

Return Type: List<ResourceLocation>