RandomSlotDrop 图标

RandomSlotDrop

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/randomslotdrop
资源信息

Minecraft 版本: 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

标签: game-mechanics utility

资源介绍

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.

Plugin showcase

Functional overview

  • Configurable slot drops

    Only a specific percentage of inventory slots are randomly selected to drop upon player death.
    For example, suppose the dropSlotsPercent is 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 (from stackDropPercentMin% to stackDropPercentMax% 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 via spectatorFullDrop).


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
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
More Ender Pearls

价格:0 墨喵币
下载量:0

查看详情
Block Shuffle

价格:0 墨喵币
下载量:0

查看详情
Hearths of Middle Earth - HoME

价格:0 墨喵币
下载量:0

查看详情
Hardsingl

价格:0 墨喵币
下载量:0

查看详情