This repository has been archived by the owner on Mar 7, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Advancement Flags
GamerCoder edited this page May 22, 2023
·
2 revisions
Advancements can have additional information, or flags, to demonstrate special conditions for the advancement.
Advancement a1 = ...
Set<AFlag> flags = new HashSet<>();
// The advancement will display a toast message in the top-right corner of the screen demonstrating its completion.
// Added by Default
flags.add(AFlag.TOAST);
// The advancement will hide itself and its children from the advancement screen until it is completed. Useful for 'secret advancements.'
flags.add(AFlag.HIDDEN);
// The advancement will broadcast a message to the console and all players showing your completion of the advancement.
// Added by Default
flags.add(AFlag.MESSAGE);
// If the advancement has multiple criteria, it will merge all of the criteria into one requirement, removing the criteria progress bar.
flags.add(AFlag.MERGE_CRITERIA);
a1.setFlags(flags);
Copyright © 2023-Present GamerCoder. All Rights Reserved.
Licensed under GNU General Public License v3.0.