截图
介绍
## Loot Chest Refill
**Transform any container into a refillable loot chest!**
**Loot Chest Refill** is a lightweight yet powerful mod that lets server admins and map makers turn any container into a dynamic, automatically refilling loot source.
Use it with vanilla chests, barrels, shulker boxes or *any* block with an inventory, and control everything with customizable categories and timers.
—
## Features
– **Universal container support** – Works with any block that has an inventory (chests, barrels, shulker boxes, hoppers, dispensers, etc.).
– **Custom loot categories** – Create unlimited categories such as `weapons`, `ammo`, `medical`, `military`, `food`, `rare`, and more.
– **Full NBT support** – Items keep their enchantments, custom names, lore and all NBT data.
– **Per-container timers** – Each loot chest has its own UUID and independent refill timer.
– **Smart timer system** – The timer only starts when a player opens the chest, not while it’s idle.
– **Configurable chances** – Set individual spawn chances (0.01%–100%) per item.
– **Per-chest overrides** – Override the category’s default refill time on specific chests.
– **Persistent data** – All loot and chest data is saved and survives server restarts.
—
## How It Works
1. Create a loot category with a refill time.
2. Add items to the category by holding them in your hand.
3. Look at any container and assign the category to it.
4. The container is instantly filled with loot.
5. When a player opens it, the refill timer starts.
6. Once the timer expires, the chest refills automatically.
7. The timer pauses again until another player opens the chest.
—
## Commands
> All commands require operator permission (level 2).
### Category Management
| Command | Description |
|———————————————-|——————————————————————-|
| `/lootchest category create <name> [seconds]` | Create a new loot category. Default refill: 300 seconds (5 min). |
| `/lootchest category delete <name>` | Delete a category. |
| `/lootchest category list` | List all categories with item count and refill time. |
| `/lootchest category info <name>` | Show detailed info about a category (items and chances). |
| `/lootchest category settime <name> <seconds>` | Change the refill time of a category. |
### Item Management
| Command | Description |
|———————————————-|——————————————————————-|
| `/lootchest additem <category> <chance>` | Add the item in your main hand to a category. Chance is 0.01–100%. Preserves stack size and NBT. |
| `/lootchest removeitem <category> <index>` | Remove an item from a category by its index. |
| `/lootchest clearitems <category>` | Remove all items from a category. |
### Chest Management
| Command | Description |
|——————————————|——————————————————————-|
| `/lootchest setchest <category>` | Assign a category to the container you’re looking at. |
| `/lootchest setchesttime <seconds>` | Set a custom refill time for a specific chest (`-1` to use category default). |
| `/lootchest chestinfo` | Show info about the targeted chest (UUID, category, status, timer). |
| `/lootchest refill` | Force an immediate refill of the targeted chest. |
| `/lootchest removechest` | Remove loot chest data from a container (returns it to normal). |
| `/lootchest listchests` | List all registered loot chests on the server. |
### Data Management
| Command | Description |
|———————|————————————-|
| `/lootchest save` | Manually save all loot data. |
| `/lootchest reload` | Reload all loot data from disk. |
—
## Quick Start
“`txt
/lootchest category create weapons 600
/lootchest additem weapons 25.0
/lootchest additem weapons 50.0
/lootchest additem weapons 10.0
/lootchest setchest weapons
Configuration
Edit config/lootchestrefill-common.toml:
| Option | Default | Description |
|---|---|---|
defaultRefillTime |
300 | Default refill time in seconds. |
minItemsPerRefill |
1 | Minimum items spawned per refill. |
maxItemsPerRefill |
5 | Maximum items spawned per refill. |
broadcastRefill |
false | Log refills to console (debug). |
Use Cases
Survival servers – Create loot spots that periodically respawn.
PvP servers – Military crates, weapon stashes, supply drops.
RPG servers – Dungeon loot, boss rewards, treasure chests.
Adventure maps – Scripted loot with controlled chances.
Minigames – Battle royale / hunger games-style chest refills.
Permissions
All commands require operator level 2.
For more granular permissions, use a permission mod such as LuckPerms.
Technical Details
Minecraft: 1.20.1
Mod Loader: Forge 47.2.0+
Side: Server-side only (works on dedicated servers, clients don’t need the mod).
Support
Found a bug or have a suggestion?
常见问题
[TACZ] Lootchest Refill 支持哪些 Minecraft 版本?
[TACZ] Lootchest Refill 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
[TACZ] Lootchest Refill 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
arginou57 的其他作品
查看全部 →Create : New Furnitures
Create 家具模组:多人游戏第三方椅子座位
CBC Enchanced Shells [Create Big Cannons]
为 Create Big Cannons 新增 50 种强化弹药变体(Mk.I–V):9 种炮弹,伤害、穿甲能力和爆炸威力逐级提升;另有 5 种火药装药,可提高炮口初速。采用分级合成,配有独特色彩,并保持平衡的成长曲线。
[Immersive Vehicle/IV/MTS] Fuel Pump Refill
沉浸式载具 IV(MTS)加油泵补给服务器角色扮演交通工具
Chest Finder Esp – Neo/Forge/Fabric
Chest Finder is a client-side utility mod that helps you locate containers and storage blocks through walls using an ESP (Extra Sensory Perception) overlay. Perfect for exploring abandoned mineshafts, finding hidden loot in dungeons
评论
登录后评论和评分