|
|
Data is stored in the drops.yml file, located in the main plugin folder. Here is a config sample:
|
|
|
|
|
|
```
|
|
|
monsters:
|
|
|
ZOMBIE:
|
... | ... | @@ -21,6 +22,7 @@ Let's say for instance you want a zombie to drop a custom iron sword or a custom |
|
|
Subtables can have different subtable coefficients. The higher the coefficient is, the higher the chance is for the subtable to be selected. Calculating the chance for a subtable to be selected is pretty easy. If, inside a drop table, the first subtable has a coefficient of 1 and the second has a coefficient of 2, the first subtable has a 1 in 3 chance of being selected. The chance for a subtable to be chosen can thus be calculated using this formula: `chance = <subtable-coefficient> / <sum-of-all-subtable-coefficients>`
|
|
|
|
|
|
The monsters section corresponds to the items that drop whenever an entity dies. Here is the config template:
|
|
|
|
|
|
```
|
|
|
MOB_NAME:
|
|
|
first-subtable:
|
... | ... | @@ -45,12 +47,15 @@ MOB_NAME: |
|
|
The _blocks_ config section corresponds to the items that drop whenever a block is broken/mined by a player. Follow the same format as in the monsters section, but replace the mob name by the block type name. Block types can be found [here](https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html) (1.13).
|
|
|
|
|
|
**You can configurate three values for each subtable item:**
|
|
|
|
|
|
* **drop-chance** - The chance for your item to drop.
|
|
|
* **min & max** - The amount of drops is chosen randomly between these two values.
|
|
|
* **unidentified-chance** - the chance for your item to be unidentified when it drops.
|
|
|
|
|
|
**Additional subtable options:**
|
|
|
|
|
|
* **disable-silk-touch** - when set to true, this will prevent the subtable from dropping any item if the block was mined with a silk touch pickaxe. This prevents item duplication glitches with blocks like ores.
|
|
|
|
|
|
```
|
|
|
blocks:
|
|
|
DIAMOND_ORE:
|
... | ... | @@ -63,7 +68,9 @@ blocks: |
|
|
```
|
|
|
|
|
|
## Adding mmoitems to MythicMobs drop tables
|
|
|
|
|
|
Adding MMOItems to MM drop tables is pretty easy. Since 4.5, items created using MI can be summoned in MM drop tables using this format:
|
|
|
|
|
|
```
|
|
|
TestDropTable:
|
|
|
Conditions:
|
... | ... | @@ -72,7 +79,7 @@ TestDropTable: |
|
|
- mmoitems{type=SWORD;id=CUTLASS} 1 .1
|
|
|
```
|
|
|
|
|
|
This tells the drop table to add the sword from MMOItems called _CUTLASS_ with a drop chance of 10% (so 0.1 in a MM drop table). You can change the amount of items you want to be dropped as if this drop was a vanilla drop. If you want the item to be unidentified when it is dropped, you will have to add one option within the brackets: this means that the item has a 30% chance of being unidentified when it is dropped: `mmoitems{type=SWORD;id=CUTLASS;unidentified=30} 1 .1`
|
|
|
This tells the drop table to add the sword from MMOItems called _CUTLASS_ with a drop chance of 10% (so 0.1 in a MM drop table). You can change the amount of items you want to be dropped as if this drop was a vanilla drop. If you want the item to be unidentified when it is dropped, you will have to add one option within the brackets: this means that the item has a 30% chance of being unidentified when it is dropped: `mmoitems{type=SWORD;id=CUTLASS;unidentified=0.1} 1 .1`
|
|
|
|
|
|
NOTE: Both `type` and `id` values MUST be capitals.
|
|
|
|
... | ... | |