Pular para o conteúdo principal

btc_item_count_fact

Count custom BTC items in a player's inventory — misc entry.

Entry Information

PropertyValue
Entry IDbtc_item_count_fact
TypeMisc
ColorPurple
Iconmdi: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

FieldTypeDescription
itemsToCountList<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: []