A serverside mod that refills loot containers.
Note: Curseforge likes to make mess out of descriptions. For proper formatting, visit github page.
mods/ folder./chestrefill reloadchestrefill.allowReloot)RandomizableContainerBlockEntitychestrefill.allowReloot - allows relooting chestchestrefill.config
chestrefill.config.edit - allows in-game config editingchestrefill.config.reload - allows reloading configYou can use an in-game /chestrefill command to edit the config in game.
See github page.
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
100 times60 secondsYou 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
Do you want to host your own server with this mod? Try ApexHosting!
Click the image below!

No files available for download.