btc_item_count_fact
Count custom BTC items in a player's inventory — misc entry.
Entry Information
| Property | Value |
|---|---|
| Entry ID | btc_item_count_fact |
| Type | Misc |
| Color | Purple |
| Icon | mdi:counter |
Description
Fact entry that counts the total number of custom BTC items a player possesses. This fact aggregates the amounts of the specified item IDs found in the player's inventory (including the hotbar and offhand). The result is returned as an integer via [FactData]. If no item IDs are provided, the fact will always return 0. Example usage in TypeWriter UI: create a fact entry with a list of custom item IDs (itemsToCount) and use its value in conditions or objectives.
Fields
| Field | Type | Description |
|---|---|---|
itemsToCount | List<String> | List of item IDs to count in the player's inventory (case insensitive) |
Usage Example
- entry: btc_item_count_fact
name: "Count custom BTC items in a player's inventory"
itemsToCount: []