介绍
ChestRefill
A serverside mod that refills loot containers.
Note: Curseforge likes to make mess out of descriptions. For proper formatting, visit github page.
How-to
- Put the mod in your
mods/folder. - Restart the game / server.
- Tweak the config if you need, then use
/chestrefill reload
- Tweak the config if you need, then use
- Generate / create new loot chests.
- Loot them, wait for given time (default: 4 hours) and reloot them again with another account!
Features
- configurable (time, max fills, reset loot seed …)
- permission support (
chestrefill.allowReloot) - works on any container extending
RandomizableContainerBlockEntity
Permissions
chestrefill.allowReloot– allows relooting chestchestrefill.configchestrefill.config.edit– allows in-game config editingchestrefill.config.reload– allows reloading config
Config
You can use an in-game /chestrefill command to edit the config in game.
See github page.
Per-loot-table customization
You can also set custom values for specified loot tables.
Do you want the end city loot table refilled more times than default?
Set the following options.
{
"...": "",
"// Map to override above config for certain loot tables only.": "",
"lootModifierMap": {
"minecraft:chests/end_city_treasure": {
"randomize_loot_seed": true,
"allow_reloot_without_permission": true,
"max_refills": 100,
"refill_non_empty": false,
"min_wait_time": 60
},
"sample_mod:chests/custom_loot_table": {
"randomize_loot_seed": true,
"allow_reloot_without_permission": false,
"max_refills": 5,
"refill_non_empty": false,
"min_wait_time": 14400
}
}
}
This will cause the minecraft:chests/end_city_treasure to be
- relootable by same players
- refillable
100times - refilled each
60seconds
Per-container customization
You can customize a chest using the NBT tags. These will override
the both config defaults and loot table overrides.
ChestRefill: {
RefillCounter: 0,
SavedLootTable: "minecraft:chests/igloo_chest",
CustomValues: {
AllowReloot: 1b
MaxRefills: -1
MinWaitTime: 60
}
}
(RandomizeLootSeed and RefillNonEmpty custom values are also available.)
The command would look like the following:
/setblock ~ ~ ~ minecraft:chest{ChestRefill: {RefillCounter: 0, SavedLootTable: "minecraft:chests/igloo_chest", CustomValues: {AllowReloot: 1b, MaxRefills: -1, MinWaitTime: 60}}}
This will create a lootable container that can be
- relooted by same players
- refilled infinitely
- refilled every 60 seconds
Servers
Do you want to host your own server with this mod? Try ApexHosting!
Click the image below!

常见问题
Chest Refill 支持哪些 Minecraft 版本?
Chest Refill 支持 Minecraft Java 版 1.17.1–1.20,共 4 个版本,可用的加载器:Fabric / Forge。下载时注意选择和你游戏版本一致的文件。
Chest Refill 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
samo_lego 的其他作品
查看全部 →Taterzen NPCs [Forge]
一个类似NPC/市民的模组
Taterzens [Fabric]
一款类似 Citizens 的 NPC Fabric 模组。
DisguiseLib
一个服务端前置库,可让实体伪装成其他实体。[Forge & Fabric]
HealthCare
简洁实用的服务端生物血量标签。
评论
登录后评论和评分