RandomSlotDrop
Drops a configurable percentage of inventory slots and item stacks on player death, with optional full drop on spectator gamemode.
📖About RandomSlotDrop
RandomSlotDrop
RandomSlotDrop is a Minecraft plugin that allows players to keep a portion of their inventory upon death. It introduces a configurable chance for dropping only a certain percent of random inventory slots, giving players a better experience by reducing frustration from losing everything after death.
Functional overview
Configurable slot drops
Only a specific percentage of inventory slots are randomly selected to drop upon player death.
For example, suppose thedropSlotsPercentis set to 10%. Since players have a total of 41 inventory slots (36 general slots + 4 armor slots + off-hand slot), the plugin calculates 10% of 41, resulting in approximately 4 random slots chosen to drop items. If a player has items in only 10 of slots, then up to 4 slots might drop items or none at all if the randomly selected slots are empty.Partial stack drops
For each selected slot containing more than one item, the plugin will randomly choose a partial stack size to drop, within a configured range (fromstackDropPercentMin% tostackDropPercentMax% of the stack). If you set both the min and max to 100, the entire stack will always drop.Drop full inventory on spectator gamemode
Optionally, if a player dies and is switched to spectator mode shortly afterward, their entire inventory will automatically drop (configured viaspectatorFullDrop).
Plugin commands
| Command | Description |
|---|---|
/rsd enable/disable |
Enable or disable the RandomSlotDrop plugin. |
/rsd reload |
Reload config.yml to apply configuration changes. |
/rsd status |
Show current plugin status (enabled/disabled). |
/rsd set slots <0-100> |
Set percentage of inventory slots to drop. |
/rsd set min <0-100> |
Set minimum stack drop percentage. |
/rsd set max <0-100> |
Set maximum stack drop percentage. |
/rsd set spectatorDrop <true/false> |
Enable/disable full inventory drop on spectator gamemode. |
Configuration (plugins/RandomSlotDrop/config.yml)
# Enable or disable the plugin
enabled: true
# If set to true, the player’s full inventory will drop when they die and their gamemode is Spectator.
spectatorFullDrop: true
# Percentage of inventory slots to randomly select for partial drop on death.
dropSlotsPercent: 25.0
# Minimum percentage of items in a selected slot to drop when its stack size > 1.
stackDropPercentMin: 20.0
# Maximum percentage of items in a selected slot to drop when its stack size > 1.
stackDropPercentMax: 80.0
