ShopPoolEntry
Typewriter Web panel: click Add Page, then use Search bar or + to create the entry with its exact identifier.
A pool groups items that are drawn or displayed together. It is then referenced by itemPools in ShopDefinitionEntry.
Pool fields
| Exact field | Role |
|---|---|
items | List of PoolItem objects. |
displayCount | Number of items displayed or selected by the service. |
PoolItem fields
| Exact field | Role |
|---|---|
item | Item to offer. |
weight | Relative selection weight. |
quantity | Offered quantity. |
isLimited | Enables a limit for this item. |
limit | Item limit. |
name | Pool-specific name. |
lore | Pool-specific lore. |
In practice
Create the pool, add its PoolItem objects, then select it in the shop's itemPools. A pool does not replace items: a shop can combine direct items and pools.
warning
Weight is not an absolute percentage. It is compared with the weights of the other items in the same pool.