跳到主要内容

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.

字段

字段类型默认值描述
groupRef<GroupEntry>——
itemsToCountList<String>emptyList of item IDs to count in the player's inventory (case insensitive)
TypeWriter 通用字段(comment)
字段类型默认值描述
commentString——