{"id":29832566,"url":"https://github.com/quackster/lootrestock","last_synced_at":"2025-07-29T11:37:40.365Z","repository":{"id":306345908,"uuid":"1025867964","full_name":"Quackster/LootRestock","owner":"Quackster","description":"A lightweight Fabric mod that automatically resets loot chests after a configurable amount of time has passed.","archived":false,"fork":false,"pushed_at":"2025-07-26T11:25:29.000Z","size":232,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-26T16:36:54.031Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Quackster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-25T00:12:35.000Z","updated_at":"2025-07-26T11:25:33.000Z","dependencies_parsed_at":"2025-07-26T16:36:59.443Z","dependency_job_id":"9794f442-16c0-47b2-b920-43cd9488a799","html_url":"https://github.com/Quackster/LootRestock","commit_stats":null,"previous_names":["quackster/lootrefresh","quackster/lootrestock"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Quackster/LootRestock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quackster%2FLootRestock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quackster%2FLootRestock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quackster%2FLootRestock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quackster%2FLootRestock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Quackster","download_url":"https://codeload.github.com/Quackster/LootRestock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quackster%2FLootRestock/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267678467,"owners_count":24126338,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-29T11:36:40.656Z","updated_at":"2025-07-29T11:37:40.359Z","avatar_url":"https://github.com/Quackster.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LootRestock\n\n## Description\n\n**LootRestock** is a lightweight Fabric mod that tracks when chests are looted and automatically resets them after a configurable period. This ensures that loot can replenish over time, ideal for persistent servers, custom maps, and adventure-based gameplay.\n\n### Links\n\nModrinth: https://modrinth.com/mod/lootrestock\n\nCurseForge: https://curseforge.com/minecraft/mc-mods/lootrestock\n\n## Key Features\n\n- Tracks every lootable chest opened by players\n- Resets chest contents based on original loot tables only when chunks are loaded\n- **Performance-optimized**: Chest resets are processed only when players are nearby and chunks are active\n- Configurable cooldown period using simple time units (e.g. `7 days`, `12 hours`, `30 minutes`)\n- Persists data across server restarts\n- Optionally reset only when chests are empty (or always) after timeout expires\n\n## Performance Design\nLootRestock is designed with server performance in mind:\n- Chest resets only occur when the containing chunk is loaded by a player\n- Minimal memory footprint by only tracking opened chests\n\n## Configuration\n\nLootRestock generates a simple config file at `./lootrestock.properties` with the following options:\n\n```properties\nreset_time_value=7\nreset_time_unit=days\nonly_reset_when_empty=true\ninclude_barrels=false\n```\n\n- `reset_time_value`: Number of time units before a chest is eligible for reset\n- `reset_time_unit: Units of time`: `seconds`, `minutes`, `hours`, or `days`\n- `only_reset_when_empty`: (default value: `true`)\n  - `true`: Chests will reset only if empty (after the cooldown)\n  - `false`: Chests will reset regardless of contents (after the cooldown)\n- `include_barrels`: Whether barrel loot should get reset (default value: `false`)\n\n## Data Persistence\n\n- Chest interaction data is stored in the world save folder (`chest_reset_data.json`)\n- Safe to shut down or reload server without losing tracked state\n\n## Use Case Examples\n\n- Keep dungeon loot fresh in multiplayer worlds\n- Refill treasure chests in adventure maps\n- Ensure players always have a reason to explore\n\n## Installation\n\n1. Requires **Fabric Loader**\n2. Install **Fabric API**\n3. Place the mod JAR in your `mods/` folder\n4. Start the game and a default config will be generated\n\n## Metadata\n\n- **Mod ID**: `lootrestock`\n- **License**: GPL v3\n- **Game Versions**: `1.21+` \n- **Mod Loaders**: `Fabric`\n- **Dependencies**: `fabric-api`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquackster%2Flootrestock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquackster%2Flootrestock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquackster%2Flootrestock/lists"}