Do you need your enemies to drop more loot or change how the game drops items?
This plugin adds a randomized tier-based loot drop mechanic to your game. You can customize loot tables in the plugin manager and set up various item pools. You can assign these loot tables to enemies or use plugin commands on the map.
Loot tables consist of different item pools, which are assigned different weights. A pool with a higher weight has a higher chance of being selected. A selected item pool will drop a random item that has been assigned to it.
Notetags
In the notetags below, the keywords Item/Drop/Loot are interchangeable. For example, you can use <Item Table>, <Drop Table>, or <Loot Table>.
[Optional] rate : The probability this table will drop items. Default is 100%. Replace with a decimal or percent value.
name : Name of the item or item pool. For items, you can use the names of the items or use Item [id], Weapon [id], or Armor [id], replacing [id] with the item ID.
weight : Weight of the item or item pool. Default is 1.
[amount] : Number of items to drop. Default is 1.
[minAmount]-[maxAmount] : Random range of the items to drop (inclusive).
There is a 75% chance that this enemy will drop an item with an ID of 3, two Potions, a random Common item, three to five random Common items (all same), or a random Rare item.
The total weight adds up to 16, so the Rare item has a 1/16 chance to drop, whereas the two Potions have a 5/16 chance.
Plugin Commands
In the plugin commands below, the keywords Item/Drop/Loot are interchangeable. Customize the message displayed in the plugin manager.