Mystery Loots

How Mystery Loots work

Each file in the /config/loots folder is a group where you can create loots. Groups are useful for making loots of the same rarity that have the same settings. For example, you might have a "common" group with many common loots that all have the same effects.

How to create a Group

  1. Open the /config/loots folder.

  2. Copy one of the group files that are already there, and paste it in the same folder.

  3. That's it! Now you can make loots inside the new group file.

How to create a Loot inside a Group

All the loots in a group are found under the loot-creator section. To make a new loot, just copy one of the existing loots and paste it. Then, change the settings to what you want.

Here's an example of three different loots named "iron-loot", "gold-loot", and "diamond-loot":

loot-creator:
    iron-loot:
        [...]
    gold-loot:
        [...]
    diamond-loot:
        [...]

Assigning a Group/Loot to a Box

  1. Open the /config/boxes folder.

  2. Choose a box file and open it.

  3. Find the loots-assigned section.

  4. Assign a loot using the example below as a guide.

Each loot is added using either an 'id' or 'file' setting, along with a 'chance' setting.

  • 'id' is the unique name of the loot (/mb listloots).

  • 'file' is the name of the file that has the loot IDs you want to add.

  • 'chance' is how likely it is for the loot to be given, written as a percentage.

The drop chances don't have to add up to 100. The plugin has a smart system that figures out the weighted drop chances for each loot. You can also use numbers bigger than 100 (like 1000, 2000, etc.) or numbers with decimals (like 0.1, 0.5, etc.).

Mystery Loot Config

Last updated