Default Criterion
Criteria define the specific conditions or actions a player must complete to unlock an advancement. Below is a list of all default criteria included in AbyssalLib.
AutoCraftCriterion
ID: abyssallib:auto_grant
Automatically grants progress for this criterion when the player joins the server.
(No parameters required)
ItemHasCriterion
ID: abyssallib:has_item
Checks if any item within the player's inventory matches the provided predicate.
Parameter | Information |
|---|---|
| The item predicate to check against. |
StatisticCriterion
ID: abyssallib:statistic
Checks the value of a specific vanilla Minecraft statistic.
Parameter | Information |
|---|---|
| The statistic to check. |
| The value needed for the criterion to be awarded. |
LevelCriterion
ID: abyssallib:level
Awards the criterion if the player's experience level matches or exceeds the given level.
Parameter | Information |
|---|---|
| The experience level needed to grant this criterion. |
CustomStatisticCriterion
ID: abyssallib:custom_statistic
Checks the value of a custom statistic against a threshold.
Parameter | Information |
|---|---|
| The custom statistic ID to check. (in the format: |
| The value required for the criterion to be granted (can be a float, integer, or boolean). |
CustomAttributeCriterion
ID: abyssallib:custom_attribute
Checks the value of a custom attribute against a threshold.
Parameter | Information |
|---|---|
| The custom attribute ID to check. |
| The value required for the criteria to be granted (can be an integer, float, double, or any other Number type). |
ItemCraftedCriterion
ID: abyssallib:item_crafted
Checks if the player has crafted a specified amount of a given item ID.
Parameter | Information |
|---|---|
| The ID of the item to check (e.g., |
| The number of this item ID that must be crafted. |
EntityKilledCriterion
ID: abyssallib:entity_killed
Checks if the player has killed a specified amount of a given entity ID.
Parameter | Information |
|---|---|
| The ID of the entity to check (e.g., |
| The number of this entity ID that must be killed. |
BlockMinedCriterion
ID: abyssallib:block_mined
Checks if the player has mined a specified amount of a given block ID.
Parameter | Information |
|---|---|
| The ID of the block to check for (e.g, |
| The amount of blocks of this ID that must be broken. |
LocationCriterion
ID: abyssallib:location
Checks if the player is currently located inside a specific world and/or biome.
Parameter | Information |
|---|---|
| The name of the world the player must be in. |
| The ID of the biome the player must be in. |
PotionEffectCriterion
ID: abyssallib:potion_effect
Checks if the player currently has the provided potion effect.
Parameter | Information |
|---|---|
| The effect type ID the player must have. |