Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_bEd7sINe.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
SpawnerChance - 墨喵 Minecraft 资源
SpawnerChance 图标

SpawnerChance

作者:rebot | 分类:模组

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

Minecraft 版本: 1.20 1.20.1 1.20.2 1.20.3 1.20.4 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 1.21.9 1.21.10 1.21.11 26.1 26.1.1 26.1.2 26.2

平台: paper purpur

标签: game-mechanics utility

资源介绍

SpawnerChance

A plugin for managing spawners with three main features:

  1. Chance of a spawner dropping when broken (via permissions)
  2. Granting a temporary drop chance to a player (via command)
  3. Restricting which mobs can be placed in spawners (via config)

🧩 Version Compatibility

Plugin version Supported Paper Java
1.6.0+ 1.20 – 26.2 25
1.5.0 1.20 – 1.21.11 21

Optional Dependencies:

Features

🎯 Spawner Drop Chance

  • Configurable chance for a spawner to drop when broken
  • Preserves mob type and all spawner settings
  • Permissions system for different drop chances: spawner.dropchance.
  • Informative messages for players

🎯 Temporary Spawner Drop Chance

  • Requires LuckPerms for this feature
  • Command /spawnerchance tempchance <player> <chance> grants a player a temporary drop chance when breaking a spawner
  • Duration (in minutes) for the temporary drop chance is set in temp-chance-duration in the config
  • Cleanup interval (in seconds) for expired temporary permissions is set in cleanup-interval

🚫 Mob Restrictions for Spawners (via spawn eggs)

  • Whitelist of allowed mobs is set in the config: allowed-spawner-mobs: []
  • Prevents placing forbidden mobs in spawners
  • Admins can bypass restrictions
  • Mob names in messages can be localized

Configuration

# format: language_COUNTRY
# changing this will load default material names for the server
language: en_US

# Duration (in minutes) for temporary drop chance
temp-chance-duration: 15
# Interval (in seconds) to clean up expired temporary permissions
cleanup-interval: 10

# Main plugin messages
messages:
  # Spawner drop messages
  empty-spawner-name: "<gray>Empty"
  drop-success: "<green>Luck! {spawner} dropped ({chance}%)"
  drop-failure: "<red>Spawner did not drop ({chance}%)"
...

# List of allowed mobs for spawners (add only mobs that can be placed in spawners)
# Leave empty to allow all mobs
allowed-spawner-mobs: []
#  - BLAZE
#  - PIGLIN
#  - COW

Placeholders

'%spawnerchance_chance%' - shows the current chance of spawner failure.

Permissions

Spawner Drop Chances:

  • spawner.dropchance.<number> - drop chance in percent
    • Example: spawner.dropchance.50 - 50% chance
    • The highest available chance for the player is used

Bypass Restrictions:

  • spawner.bypass - allows placing any mobs in spawners

Command Access:

  • spawner.command.use - allows using plugin commands

Usage Examples

Spawner Drop:

⚔️ Player breaks a Zombie Spawner
🎯 Check drop chance (e.g., 30%)
✅ On success: "Luck! Zombie Spawner dropped (30%)"
❌ On failure: "Spawner did not drop (30%)"

Mob Restrictions:

🔧 Player tries to use a Villager egg on a spawner
🚫 If mob is not whitelisted: "Error: Villager Egg cannot be placed in a spawner!"
✅ If mob is allowed: "You placed a spawner for: Zombie"

Features

  • Data Preservation: Dropped spawners retain all original settings
  • Localization Friendly: All messages and mob names support any language
  • Flexible Configuration: Easily add or remove mobs from the whitelist

Installation

  1. Download the latest release
  2. Place it in the /plugins folder
  3. Restart the server
  4. Configure config.yml if needed and run /spawnerchance reload
下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
IDR Pack

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

查看详情
Player Carry

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

查看详情
Yume 3

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

查看详情
Diamond Remix

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

查看详情