Statistic
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
This is a provider that provides statistic values of a player to the Top Holder.
Format
Section titled “Format”holders: <holder-name>: # The type of the provider type: statistic # The name of the statistic statistic: <statistic> # The name of the material. Used for some statistics that require an item. material: <material> # The name of the entity. Used for some statistics that require an entity. entity: <entity>{ "holders": { "<holder-name>": { // The type of the provider "type": "statistic", // The type of the statistic "statistic-type": "<statistic-type>", // The name of the statistic "statistic": "<statistic>" } }}- The available
<statistic-type>and<statistic>can be found here
Behavior
Section titled “Behavior”-
If the
statisticis a Generic type, thematerialandentityfields are ignored. The provider will return the value of the statistic for the player. -
If the
statisticis a Material type, thematerialfield will be used:- If the
materialis not specified, the provider will return the value of the statistic for all materials. - If the
materialis specified, the provider will return the value of the statistic for the specified material. - The
materialfield can be a string or a list of strings.
- If the
material: STONE
material: - STONE - COBBLESTONE- If the
statisticis an Entity type, theentityfield will be used:- If the
entityis not specified, the provider will return the value of the statistic for all entities. - If the
entityis specified, the provider will return the value of the statistic for the specified entity. - The
entityfield can be a string or a list of strings.
- If the
entity: ZOMBIE
entity: - ZOMBIE - SKELETON- If the
statistic-typeis not specified, it will default tominecraft:custom. - If the
statistic-typeisminecraft:custom, the value of thestatisticfield will be one of the Custom statistic names - If the
statistic-typeis one of the ITEM types (e.g.minecraft:broken,minecraft:crafted,minecraft:used,minecraft:picked_up, etc.), the value of thestatisticfield will be one of the Items - If the
statistic-typeis one of the ENTITY types (e.g.minecraft:killed,minecraft:killed_by, etc.), the value of thestatisticfield will be one of the Entities - If the
statistic-typeis one of the BLOCK types (e.g.minecraft:mined,minecraft:broken, etc.), the value of thestatisticfield will be one of the Blocks
Example
Section titled “Example”holders:
jump:
type: statistic
statistic: JUMP{
"holders": {
"jump": {
"type": "statistic",
"statistic-type": "minecraft:custom",
"statistic": "minecraft:jump"
}
}
}