### Complete StatTracker Configuration Source: https://github.com/auxilor/stattrackers/blob/master/documentation/stattrackers/how-to-make-a-tracker.md A full example demonstrating the integration of display, counters, and item properties in a single YAML configuration. ```yaml # === Display: what the player sees === display: "&bNether Ores Mined: %value%" # Lore line on the item; %value% is the running count applicable-to: # Item groups this tracker can attach to, defined in targets.yml - sword - bow - trident - axe # === Counters: what gets counted === counters: - trigger: mine_block # The event that adds to the count value: 1 # Add a flat 1 per trigger; use 'multiplier' instead to scale the trigger's own value filters: blocks: # Only count these blocks - nether_gold_ore - ancient_debris - nether_quartz_ore conditions: - id: in_world # Only count while this condition holds args: world: world_nether # === Tracker item: the physical item === tracker: item: compass max_stack_size:1 # The base item; see the Item Lookup System for options name: "&eTracker - Nether Ores Mined" # Display name of the tracker item lore: - "&8Drop this onto an item with /stattrackers" - "&8to display the nether ores mined" craftable: true # Whether the tracker can be crafted recipe-permission: stattrackers.craft.nether_ores_mined # Optional; permission needed to craft it shapeless: false # Optional; whether the recipe is shapeless, default false recipe: # The crafting grid, read top-left to bottom-right - iron_sword - iron_sword - iron_sword - iron_sword - compass - iron_sword - iron_sword - iron_sword - iron_sword ``` -------------------------------- ### Configure StatTrackers settings Source: https://github.com/auxilor/stattrackers/blob/master/documentation/stattrackers/plugin-config.md Defines the global behavior for the apply GUI and item lore display. ```yaml gui: rows: 1 # Number of rows in the /stattrackers apply GUI title: "Stats" # Title shown at the top of the GUI discover-recipes: true # Whether players auto-unlock tracker recipes in their recipe book display-at-top: false # Show tracker stats at the top of the item's lore instead of the bottom ``` -------------------------------- ### Configure Tracker Item Source: https://github.com/auxilor/stattrackers/blob/master/documentation/stattrackers/how-to-make-a-tracker.md Defines the physical item properties, display name, lore, and crafting recipe requirements. ```yaml tracker: item: compass max_stack_size:1 # Base item; see the Item Lookup System for options name: "&eTracker - Nether Ores Mined" # Display name lore: - "&8Drop this onto an item with /stattrackers" - "&8to display the nether ores mined" craftable: true # Whether it can be crafted recipe-permission: stattrackers.craft.nether_ores_mined # Optional; permission to craft shapeless: false # Optional; whether the recipe is shapeless, default false recipe: # Crafting grid, read top-left to bottom-right - iron_sword - iron_sword - iron_sword - iron_sword - compass - iron_sword - iron_sword - iron_sword - iron_sword ``` -------------------------------- ### Configure Tracker Display Source: https://github.com/auxilor/stattrackers/blob/master/documentation/stattrackers/how-to-make-a-tracker.md Defines the lore line and the item groups that the tracker can be applied to. ```yaml display: "&bNether Ores Mined: %value%" # %value% is replaced with the current count applicable-to: # Item groups defined in targets.yml (sword, bow, armor, pickaxe, etc.) - sword - bow - trident - axe ``` -------------------------------- ### Add StatTrackers dependency in Gradle Source: https://github.com/auxilor/stattrackers/blob/master/documentation/stattrackers/api.md Include the Auxilor repository and the StatTrackers compile-only dependency in your build.gradle.kts file. ```kotlin repositories { maven("https://repo.auxilor.io/repository/maven-public/") } dependencies { compileOnly("com.willfp:StatTrackers:") } ``` -------------------------------- ### Configure Tracker Counters Source: https://github.com/auxilor/stattrackers/blob/master/documentation/stattrackers/how-to-make-a-tracker.md Defines the event triggers, value increments, and optional filters or conditions for tracking statistics. ```yaml counters: - trigger: mine_block # Event that fires the counter value: 1 # Flat amount added per trigger; swap for 'multiplier' to scale the trigger's value filters: blocks: # Restrict to specific blocks - nether_gold_ore - ancient_debris conditions: - id: in_world # Only count while the condition is met args: world: world_nether ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.