promotional bannermobile promotional banner

AlbertLoots

Fill chests and barrels in any map with the items from your inventory. Set a % chance per item, multiple rolls, 10 saved inventory slots and a radius cleaner, all by command. Great for zombie maps and modpacks. Forge 1.16.5.
LOOT ALBERT

Loot Albert lets map makers and modpack creators fill every chest and barrel of a map with the items from their own inventory, using a few simple commands. Items already inside the containers are NEVER replaced: the mod only fills empty slots, so the original loot of your map stays intact.

Made for zombie / survival modpacks where a downloaded map is full of vanilla loot and you want it to match your mods (weapons, ammo, food, medicine and so on).

REQUIREMENTS
Minecraft 1.16.5, Forge, Java 8. All commands require cheats enabled or operator permission (level 2).

HOW IT WORKS
1. Fill your inventory with the items you want to spread around the map.
2. Set a % chance for each item (or for all of them at once).
3. Stand in the middle of the area and run /loot albert.

Each item rolls its own chance in every chest and barrel. If it succeeds, it is placed in a random empty slot, with a random quantity from 1 up to the amount you were carrying (limited by the item's max stack size). Your own inventory is not consumed.

COMMANDS

/loot albert [radius]
Fills the chests, trapped chests and barrels around you. The radius is measured in chunks (default 10, maximum 100). The items used are the ones in your current inventory (hotbar and main inventory, not armor or offhand) plus ALL items stored in your saved slots. The area closest to you is filled first. The work is spread over many ticks, so the game does not freeze, and you will get a message when it is done.

/loot peso <0-100>
Sets the % chance for the item you are holding in your main hand. Decimals are accepted (for example /loot peso 0.5). The chance is per chest or barrel, per roll. It is saved to a config file and applies to every world.

/loot peso albert <0-100>
Sets the same % chance for every item type in your inventory at once. It saves a lot of time compared to setting items one by one.

/loot padrao <0-100>
Sets the default chance used by items that never received a specific chance. The default value is 10%.

/loot rolar <1-10>
Sets how many times each item rolls its chance in each chest or barrel. The default is 1. Higher values fill the containers more, and the same item can show up more than once in the same chest. For example, an item with 25% chance has about a 44% chance to appear at least once with 2 rolls. If the chest has no empty slots left, nothing more is added.

/loot salvar <1-10>
Saves your current inventory into one of 10 slots (saving into a used slot replaces it). When you run /loot albert, the items of ALL saved slots are loaded together with your current inventory, which gives you much more variety than a single inventory can hold. No slot has priority over another. If the same item appears in more than one place, it is counted only once. Saved slots are stored in the config folder and work in every world.

/loot apagar <1-10>
Empties a saved slot.

/loot slots
Shows which slots have items saved and how many.

/loot limpar <radius>
Removes ALL items from every chest and barrel within the radius (in chunks), including the original items that came with the map. To prevent accidents, this command only shows a warning. To really run it, add "confirmar" at the end: /loot limpar 10 confirmar. This cannot be undone.

/loot lista
Shows the number of rolls, the default chance, and every item that has a specific chance.

/loot resetar
Removes all specific chances and sets the default chance to 0%. The number of rolls and your saved slots are kept.

/loot status
Shows the progress of the running task: percentage, chunks processed, chests and barrels found, and items placed or removed.

/loot parar
Cancels every running or queued task. Whatever was already processed stays as it is.

COMMAND NAMES (Portuguese to English)
peso = weight / chance
padrao = default
rolar = roll
salvar = save
apagar = delete
slots = slots
limpar = clear
confirmar = confirm
lista = list
resetar = reset
status = status
parar = stop

TIPS
- Always BACK UP your world before using /loot albert or /loot limpar.
- Chances belong to the item type, not to the slot: if you change the chance of an item, it changes everywhere.
- Use a radius that matches the size of your map. Chunks that do not exist yet may be generated if the radius goes beyond the map.
- Running /loot albert twice adds more items on top of the first run. To start over, use /loot limpar or restore your backup.
- The original vanilla /loot command keeps working normally; Loot Albert only adds new subcommands.

CONFIG FILES
config/lootalbert_pesos.json (chances, default chance and rolls)
config/lootalbert_slots.dat (saved inventory slots)

AlbertLoots Team

profile avatar
Owner
  • 1
    Projects
  • 3
    Downloads