Pular para o conteúdo principal

BTC Item Count Fact

Count custom BTC items in a player's inventory

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.

Campos

CampoTipoPadrãoDescrição
groupRef<GroupEntry>——
itemsToCountList<String>emptyList of item IDs to count in the player's inventory (case insensitive)
Campos comuns do TypeWriter (comment)
CampoTipoPadrãoDescrição
commentString——