Build an editable HTML5 loot-chest workflow with visible drop chances. The full pack includes Basic, Rare and Legendary chests, visible reward probabilities, editable drop tables and a repeatable simulation.
Show full description...
Play the free Loot Chest browser lab to open all three chest types, inspect actual drop chances, edit session weights and run the isolated 10,000-draw simulation. You can close/reopen the next-step choices and continue exploring. The browser lab is an evaluation build; it does not grant a licence to reuse the full source.
The full editable v1.1.0 pack is $1.99 USD; it includes three chest types, ten rewards, the wallet/workbench/simulation and practical setup/probability guides. Creator’s Vault — $29.99 USD is optional. Existing licence permissions remain unchanged.
The first two screenshots show the current browser lab and drop-table workbench. Older blue panels document the original v1.0 interface.
Get the full pack
- Full editable pack — $1.99 USD: three chest types, ten rewards, editable rarity weights and key costs, a session wallet, an isolated 10,000-draw simulation and setup/probability guides.
Prefer the larger collection? Explore Creator’s Vault — $29.99 USD. Purchases and downloads stay on itch.
Run the downloaded examples
With the full pack: after purchase, download and extract the full ZIP, then open index.html. Complete the six-step workflow: open Basic, inspect the reward odds, apply weights, run the simulation, then open Rare and Legendary. Tasks work in any order; +20 demo keys lets you continue exploring.
What the full pack includes
- Three chest types: Basic, Rare and Legendary, with default key costs of 1, 3 and 5.
- Ten editable rewards: Coins, Keys and Gems across Common, Rare, Epic and Legendary rarities.
- Actual weighted selection: choose a rarity by its relative weight, then choose uniformly from that rarity’s reward pool.
- Visible probabilities: every rarity and individual reward chance, including impossible 0% outcomes.
- Drop-table workbench: edit a chest’s rarity weights and key cost for the current session, apply validated values or restore them.
- Seeded simulation: compare 10,000 observed draws with configured rarity odds without changing the live wallet or reward log.
- Session wallet and feedback: checked key spending, applied reward amounts, disabled unaffordable buttons, demo refill, reset and the latest 20 openings.
- Editable source and documentation: local HTML, CSS and JavaScript, runtime configuration, model tests, setup guide, probability notes, changelog and the preserved commercial licence.
Default chances are shown honestly
ChestKey costCommonRareEpicLegendary
Basic160%30%10%0%
Rare325%45%25%5%
Legendary55%25%45%25%
A chest name describes its tier, not a guaranteed reward. Legendary Chest has a 25% legendary-reward chance by default. Each of its two legendary rewards has a 12.5% chance. Weights need not total 100. Results are independent, with no pity counter or guaranteed outcome after a set number of openings. The guide explains the complete per-item calculation; browser percentages are rounded for display.
Setup and customisation
- Extract the entire ZIP and open index.html in a current desktop browser.
- Edit config/reward-config.js for rewards, initial wallet, chest costs and rarity weights.
- Adapt src/styles.css for the look and src/reward-chest-system.js for your interface.
- Use the setup guide’s small chest-name example, then inspect the odds and test your changes.
No engine, build step, external library or account is required. The optional tests use Node.js; running the template does not. A reference JSON file is not automatically loaded: the JavaScript configuration is the runtime source of truth.
Scope and licence
This is a front-end reward-system template for adaptation. The wallet is session-only demo data. It does not include image/sound assets, an engine project, inventory integration, a complete game, save/load, backend, shop or payment system. The chest artwork is CSS decoration.
Commercial use and rebranding are allowed. The existing v1.0 licence is preserved, including selling customised derivative templates. You may not redistribute the exact original archive unchanged, upload the original unmodified package to another marketplace as-is, or claim exclusive authorship of the original unmodified source. Attribution is appreciated, not required. Read the included LICENSE.txt; earlier permissions remain honoured.
v1.1.0 update
The update preserves the supplied rewards, costs and default odds while adding the browser lab, visible probabilities, validated editing, isolated simulation and practical documentation. Probability checks cover deterministic intervals and exact boundaries, zero weights, invalid configurations, uniform selection within a rarity and atomic wallet accounting. Seeded frequency checks provide an additional sanity check.
To tune loot weights and test rare drop rates before configuring your chests, see the Loot Table Drop Rate Balancer.