Playerstatistic
Criteria: PlayerStatistic
Triggered when a Bukkit player statistic increases.
Statistics are Bukkit enum values. The exact set can vary by server version, so check the Spigot Statistic enum javadocs for the version you are targeting.
Attributes
| Attribute | Description | Default |
|---|---|---|
| Statistic | The Bukkit statistic to match. Supports comma-separated statistics. | Any |
| Material | The material attached to the statistic, when the statistic has one. Supports comma-separated materials. | Any |
| EntityType | The entity type attached to the statistic, when the statistic has one. Supports comma-separated entity types. | Any |
Statistic Values
Some statistics are sub-statistics and only fire with a material or entity value. Common material statistics include MINE_BLOCK, USE_ITEM, BREAK_ITEM, CRAFT_ITEM, DROP, and PICKUP. Common entity statistics include KILL_ENTITY and ENTITY_KILLED_BY.
| Statistic |
|---|
ANIMALS_BRED |
ARMOR_CLEANED |
AVIATE_ONE_CM |
BANNER_CLEANED |
BEACON_INTERACTION |
BELL_RING |
BOAT_ONE_CM |
BREAK_ITEM |
BREWINGSTAND_INTERACTION |
CAKE_SLICES_EATEN |
CAULDRON_FILLED |
CAULDRON_USED |
CHEST_OPENED |
CLEAN_SHULKER_BOX |
CLIMB_ONE_CM |
CRAFT_ITEM |
CRAFTING_TABLE_INTERACTION |
CROUCH_ONE_CM |
DAMAGE_ABSORBED |
DAMAGE_BLOCKED_BY_SHIELD |
DAMAGE_DEALT |
DAMAGE_DEALT_ABSORBED |
DAMAGE_DEALT_RESISTED |
DAMAGE_RESISTED |
DAMAGE_TAKEN |
DEATHS |
DISPENSER_INSPECTED |
DROP |
DROP_COUNT |
DROPPER_INSPECTED |
ENDERCHEST_OPENED |
ENTITY_KILLED_BY |
FALL_ONE_CM |
FISH_CAUGHT |
FLOWER_POTTED |
FLY_ONE_CM |
FURNACE_INTERACTION |
HAPPY_GHAST_ONE_CM |
HOPPER_INSPECTED |
HORSE_ONE_CM |
INTERACT_WITH_ANVIL |
INTERACT_WITH_BLAST_FURNACE |
INTERACT_WITH_CAMPFIRE |
INTERACT_WITH_CARTOGRAPHY_TABLE |
INTERACT_WITH_GRINDSTONE |
INTERACT_WITH_LECTERN |
INTERACT_WITH_LOOM |
INTERACT_WITH_SMITHING_TABLE |
INTERACT_WITH_SMOKER |
INTERACT_WITH_STONECUTTER |
ITEM_ENCHANTED |
JUMP |
KILL_ENTITY |
LEAVE_GAME |
MINE_BLOCK |
MINECART_ONE_CM |
MOB_KILLS |
NAUTILUS_ONE_CM |
NOTEBLOCK_PLAYED |
NOTEBLOCK_TUNED |
OPEN_BARREL |
PICKUP |
PIG_ONE_CM |
PLAY_ONE_MINUTE |
PLAYER_KILLS |
RAID_TRIGGER |
RAID_WIN |
RECORD_PLAYED |
SHULKER_BOX_OPENED |
SLEEP_IN_BED |
SNEAK_TIME |
SPRINT_ONE_CM |
STRIDER_ONE_CM |
SWIM_ONE_CM |
TALKED_TO_VILLAGER |
TARGET_HIT |
TIME_SINCE_DEATH |
TIME_SINCE_REST |
TOTAL_WORLD_TIME |
TRADED_WITH_VILLAGER |
TRAPPED_CHEST_TRIGGERED |
USE_ITEM |
WALK_ON_WATER_ONE_CM |
WALK_ONE_CM |
WALK_UNDER_WATER_ONE_CM |
Examples
SOME_ACHIEVEMENT:
Criteria:
MINE_DIAMOND_ORE_STAT:
Type: PlayerStatistic
Statistic: MINE_BLOCK
Material: DIAMOND_ORE,DEEPSLATE_DIAMOND_ORE
Amount: 8
SOME_ENTITY_STAT_ACHIEVEMENT:
Criteria:
KILL_ZOMBIES_STAT:
Type: PlayerStatistic
Statistic: KILL_ENTITY
EntityType: ZOMBIE
Amount: 25