Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
ChestAPI
HTTP API exposing the location and contents of every player-placed chest on a Valheim dedicated server, so other tools can check inventory (e.g. "do we have enough iron?").
CHANGELOG
Changelog
0.2.0
- New
/api/playerchestsendpoints that only look at chests players built, leaving out dungeon and world chests such asTreasureChest_*: the chest list, per-item totals, a single item's count, and acheckendpoint that compares what you need against what you have and lists what is missing (and, withwhere=true, which chests hold it). - Choose which chests to include with
owner(player name or id), a map rectangle (minX/maxX/minZ/maxZ), a circle (x/z/radius), height,prefab,biome,item,loaded, or a namedarea. The same parameters also work on the existing/api/chestsand item-count endpoints. - New
[Areas]config for naming regions, plus/api/areasand/api/players. - Chest owners now get a player name even when offline: names are remembered in a small file next to the
config. Previously
PlayerNamewasnullunless the owner happened to be connected. - Responses carry a
Metablock saying how many chests are live versus from the periodic scan, and how old the stalest snapshot is. - Unknown or malformed query parameters now return
400instead of being ignored. ChestDtogainedPlayerPlaced. Existing fields and endpoints are unchanged, and/api/items/{prefab}/countstill works (it still counts every container; use/api/playerchests/items/{prefab}/countfor player chests).
0.1.3
- Fixed every request through a reverse proxy or tunnel failing with
400 Bad Request (Invalid host). Binding0.0.0.0now listens on all hostnames instead of only requests addressed to0.0.0.0.
0.1.2
- Fixed the plugin failing to start on current Valheim dedicated servers: it tried to patch
Container.OnDestroy, which no longer exists, and the resulting error stopped the HTTP API from ever starting. Chests that unload are now tracked without that patch. - A hook that cannot be applied after a future Valheim update is now logged and skipped instead of stopping the whole plugin.
0.1.1
- Fixed the build failing on the
Localizationreference. Item display names are now looked up at runtime and fall back to the raw localization key if unavailable. - Added the Thunderstore package icon.
- Known issue (fixed in 0.1.2): the plugin did not start on current Valheim servers.
0.1.0
- Initial release. This version was not published to Thunderstore because its build failed.