| Latest version | 2.5.1 |
|---|---|
| Minimum Core | |
| Compatible Core | |
| Last updated | 1 month ago |
| Created | 1 year ago |
| Authors | |
| Languages |
English Español French Polish |
| Systems |
Pf2e Sf2e |
| Project source | Project URL |
A lightweight Foundry VTT module for Pathfinder 2e that automatically populates loot containers as you open or reroll them. It uses smart budgets based on party level, rarity-weighted selection, and configurable rules per container type. (Heavely based on BG3 loot system).
Detects container type by name: Barrel / Crate / Chest / Pouch / Stash.
Configurable chance to be empty per type.
Budget scales with average party level and a tunable budgetFraction.
Rarity-weighted selection (customizable weight map).
Quantity-aware picking that tries to fit budget and favors stacks for consumables/ammo.
Unique item registry to avoid duplicating the same unique across rolls.
Optional KCTG compendium integration for flavor items.
“Roll Loot” button on loot sheets; auto-generation on open (toggleable).
Determine container type by name (Five tiers Barrel/Crate/Chest/Pouch/Stash).
Apply chance of being empty (config).
Calculate average party level and gp budget = TotalValue(level) * budgetFraction.
Based on the PF2e Loot table
Filter candidates according to rules and cache.
Choose X types (according to count-*), weighted by rarity.
For each item chosen:
Read price in gp (supports { gp, sp, cp, pp }).
Choose quantity in 1 to maxStack without exceeding the remaining budget.
Create items and set flags to not roll again for the container.
Install via Foundry’s Add-on Modules using this repo’s manifest URL.
Enable PF2e Autoloot in your world.
(Optional) Point the module to your preferred equipment and KCTG compendia in settings.
Create/open a loot actor named like a target type (e.g., “Chest”, “Crate”, “Barrel”, “Pouch”, “Stash”).
Open the sheet to auto-generate loot, or click Roll Loot to reroll.
Adjust budgets, rarity weights, stack caps, and empty chances in Module Settings.
Name patterns per type (regex), e.g. (Chest|Cofre).
Empty chance per type.
Count range per type (count-*).
Budget fraction (portion of PF2e treasure by level).
Rarity weights JSON.
Max stack and Favor quantity toggle.
Level offsets for crates/chests/stashes.
System: Pathfinder 2e or Starfinder 2e for Foundry VTT.
Works with PF2e equipment SRD compendium; optionally mixes in KCTG items for ambience.
Inspired by BG3-style loot pacing.
Budgeting guided by the official PF2e Treasure by Level table.
Thanks to the PF2e & Foundry communities for the amazing ecosystem.
To install this package, open your Foundry Setup screen and navigate to your Module tab and click the Install Module button.
From there, you can either search for the package unique name: pf2e-autoloot or copy its manifest URL:
And paste it to the input box at the bottom of your window.

You can install this package directly to your Forge account.