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
No gallery available for this project.
| Version | Minecraft | Loader | Download |
|---|---|---|---|
|
RandomSlotDrop 1.0.0 1.0.0 |
1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8
|
bukkit, paper, purpur, spigot
|
Download |
|
RandomSlotDrop 1.0.0 1.0.0 |
1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8
|
folia, paper
|
Download |
