
Chest Spawn
ChestSpawnPlugin is a flexible and fully customizable plugin for Paper Spigot Bukkit Purpur servers that automatically spawns random loot chests at configurable intervals and locations.
- Загрузки
- 1K
- Подписчики
- 8
- Обновлён
- 12 мая 2026 г.
- Лицензия
- MIT
Опубликован 8 мая 2025 г.
SpawnChestPlugin
Automatic treasure chest events with custom loot, legendary items, guardians, and a full visual loot editor.
Features
- Automatic chest spawns with configurable timer and batch spawning
- Visual loot editor — drag and drop items directly in a GUI
- Three chest tiers with different loot and guardian counts
- Nine legendary items with unique abilities (optional)
- Pre-open countdown timer — first click starts a race to the chest
- Chest protection zone — blocks cannot be broken near an active chest
- Four summoner apple types — force a specific tier on demand
- World apple drops — physical item that spawns in the world with coordinates
- Protection plugin integration — chests skip claimed territories automatically
- Permission-based broadcasts — fine control over who sees what
- BossBar HUD — countdown and active chest timer
- Statistics, achievements, and leaderboards
- 10 language translations

Compatibility
| Platform | Support |
|---|---|
| Spigot | Full support |
| Paper | Full support + async chunk loading |
| Purpur | Full support |
| Pufferfish | Full support |
| Folia | Full support |
Minecraft 1.18 – 1.21.x and 26.1 / 26.1.1 (Mojang's new versioning). Server type and version are detected automatically at startup.

Chest Tiers
| Tier | Chance | Guardians | Guardian Type |
|---|---|---|---|
| Common | 50% | 1 | Zombie |
| Rare | 35% | 2 | Skeleton |
| Legendary | 15% | 3 | Wither Skeleton |
All chances are configurable. Guardians can be disabled entirely.
Spawn System
- Distance from 0,0: 400–2000 blocks (configurable)
- Height range: Y 50–200 (configurable)
- Surface exclusions: block chests from spawning on water, lava, ice, leaves, and more
- Auto-despawn after 30 minutes if unopened (configurable)
- Batch spawning — spawn multiple chests per interval with a delay between each
settings:
chest-count-per-interval: 3 # spawn 3 chests at once
chest-spawn-delay-seconds: 5 # 5 s between each
Pre-Open Timer
Chests start locked after spawning. The first player to right-click starts a configurable countdown visible in chat and BossBar. Only after it ends can anyone open the chest — giving everyone a chance to run for it.
- Countdown messages sent only to players within a configurable radius
- Chest-disappear timer starts fresh after the chest is opened
- Fully optional — disable with
pre-open-timer.enabled: false
pre-open-timer:
enabled: true
duration-seconds: 30
notify-radius: 20.0
Chest Protection Zone
Blocks around an active chest are protected from breaking and placing by non-op players. The zone is removed automatically when the chest disappears or is opened.
- Uses real WorldGuard regions when WorldGuard is installed
- Falls back to built-in
BlockBreakEvent/BlockPlaceEventblocking otherwise - Radius is configurable
chest-protection-zone:
enabled: true
radius: 5 # 11×11 area around the chest
Protection Plugin Integration
Chests never spawn inside claimed or protected areas. Detected automatically at startup — no extra configuration required.
Supported: WorldGuard · GriefPrevention · GriefDefender · Lands

Custom Loot Editor
Open with /putintothechest. Configure loot visually without touching any YAML.
- Drag and drop items directly into the chest GUI
- Toggle between single (27 slots) and double (54 slots) chest
- Drop rate control: All · 1/2 · 1/3 · 1/4 … 1/10
- Per-tier configuration (Common / Rare / Legendary)
- Two-step reset confirmation — items drop at your feet on reset
- Preserves enchantments, custom names, lore, and NBT data
Drop Rate Examples
| Rate | Items Saved | Items per Spawn |
|---|---|---|
| 1/3 (default) | 30 | 10 random |
| 1/2 | 30 | 15 random |
| All | 30 | All 30 |
Summoner Apples
Four distinct apple types, each forcing a specific chest tier or picking one at random. All four can be given via command, obtained through /getlegendaryitems, and configured to drop inside chests independently.
| Command | Result |
|---|---|
/giveapple random <player> |
Random-tier chest |
/giveapple common <player> |
Always Common |
/giveapple rare <player> |
Always Rare |
/giveapple legendary <player> |
Always Legendary |
World Apple Drop
When enabled, a Summoner Apple spawns as a physical item in the world with each chest. Players see the coordinates in chat and race to pick it up. The item never despawns until collected.
world-apple-drop:
enabled: false
spawn-method: near-chest # near-chest | near-player | with-chest
radius: 15
BossBar
Optional HUD showing next chest countdown or active chest information. Switches between three states automatically:
- Yellow — countdown to next spawn (shows during last N minutes)
- Pink — pre-open countdown (first player activated the chest)
- Green — active chest: tier, coordinates, time until despawn
- Grey — chest was opened, showing despawn timer
features:
bossbar:
enabled: false # opt-in
countdown-show-minutes-before: 5
Permission-Based Broadcasts
All announcements check individual permission nodes. On servers where all permissions are denied by default, grant the spawnchest.notify.* nodes to the default group.
| Permission | Controls | Default |
|---|---|---|
spawnchest.notify.spawn |
Spawn announcement + title | true |
spawnchest.notify.coordinates |
Coordinates in announcement | true |
spawnchest.notify.disappear |
Disappear announcement | true |
spawnchest.notify.countdown |
Countdown warnings | true |
spawnchest.notify.bossbar |
BossBar visibility | true |
Players without spawnchest.notify.coordinates still receive the spawn message — coordinates are just omitted.
Legendary Items
Nine unique items with special abilities. Entirely optional — disable the whole system or individual items in config.
| Item | Ability | Cooldown |
|---|---|---|
| Dragon Slayer | +4 damage, ignites targets | 3s |
| Master Pickaxe | Auto-smelt, 50% double drops | 1s |
| Titan Axe | Tree felling, +3 combat damage | 4–6s |
| Void Shovel | 3×3 area excavation, auto-collect | 5s |
| Storm Hammer | +5 damage, lightning, AoE shockwave | 8s |
| Guardian Bow | Double shot, homing arrows | 2s |
| Book of Ancient Wisdom | Enchant all gear in inventory | One use |
| Phoenix Feather | Auto-resurrect, passive fire immunity | 5 min |
| Poseidon's Trident | Lightning on hit, rain aura | 10s |
All items include Mending and max-level enchantments. All cooldowns, damage values, and behaviours are configurable.
Custom Potions
Entirely optional — disable the whole system or individual items in config.
| Potion | Effect | Duration | Tier |
|---|---|---|---|
| Strength III | +6 Attack | 2 min | Rare, Legendary |
| Haste II | Mining Speed | 3 min | Rare, Legendary |
| Luck II | Loot Boost | 5 min | Legendary |
| Dolphin's Grace | Swim Speed | 3 min | Rare, Legendary |
| Turtle Master Extended | Resistance III + Slowness IV | 1 min | Legendary |
| Wither Resistance | Regen II + Resistance II | 30–60s | Legendary |

Statistics & Achievements
Tracked Stats
- Chests opened (total and per tier)
- Legendary items found
- Guardians killed
- Summoner Apples used
Achievements
| Achievement | Requirement | XP |
|---|---|---|
| First Find | Open 1 chest | 50 |
| Treasure Hunter | Open 10 chests | 200 |
| Chest Master | Open 50 chests | 500 |
| Legendary Finder | Find a legendary item | 300 |
| Guardian Slayer | Kill 25 guardians | 400 |
Commands
Player Commands
| Command | Aliases | Description |
|---|---|---|
/nextchest |
/nc |
Time until next spawn |
/mystats |
/stats |
View your statistics |
/leaderboard |
/lb, /top |
Server leaderboard |
/cooldowns |
/cd |
Legendary item cooldowns |
Admin Commands
| Command | Description |
|---|---|
/chestnow |
Spawn a chest immediately (respects batch count) |
/setchesttimer <seconds> |
Change spawn interval |
/resettimer |
Reset timer — chest spawns in 10 seconds |
/reloadchestconfig |
Reload config and language files |
/giveapple <random|common|rare|legendary> <player> [amount] |
Give a Summoner Apple |
/getlegendaryitems |
Receive all legendary items |
/togglelegendary [item] |
Toggle legendary items on/off |
/togglefeature <feature> |
Toggle features on/off |
/chestconfig get/set/toggle/reload/list |
Modify config live |
/putintothechest |
Open custom loot editor |
/cheststats |
View current plugin status |
/testchestzone |
Preview 5 random spawn coordinates |
Permissions
| Permission | Description | Default |
|---|---|---|
spawnchest.use |
Player commands | Everyone |
spawnchest.legendary |
Receive legendary items | Everyone |
spawnchest.apple |
Use Summoner Apple | Everyone |
spawnchest.admin |
All admin commands | OP |
spawnchest.config |
/chestconfig, /togglelegendary, /togglefeature |
OP |
spawnchest.bypass |
Bypass item cooldowns | OP |
spawnchest.notify.* |
Announcement visibility nodes | Everyone |
Localization
10 languages included. Edit files in plugins/SpawnChestPlugin/lang/
| Code | Language |
|---|---|
en |
English |
ru |
Русский |
ua |
Українська |
es |
Español |
de |
Deutsch |
fr |
Français |
zh |
中文 |
pt |
Português |
pl |
Polski |
it |
Italiano |
Installation
- Download the latest JAR
- Place it in your
plugins/folder - Start or restart the server
- Edit
plugins/SpawnChestPlugin/config.ymlif needed - Run
/reloadchestconfigto apply changes - Configure custom loot with
/putintothechest
Links
- Wiki: Full Documentation
- Issues: Report Bugs
- Discord: Get Support
Ченджлог
4.4.2Релиз26.1, 26.1.1, 26.1.2 · 12 мая 2026 г.
Metrics Fix
4.4.2Релиз26.1, 26.1.1, 26.1.2 · 12 мая 2026 г.
Fixed particle rendering crash on MC 1.21+ The ChestEffectsTask was calling world.spawnParticle() with offset/extra parameters that MC 1.21+ no longer accepts for certain particle types without explicit ParticleData. This caused the beacon beam effect to throw IllegalArgumentException: missing required data class java.lang.Float every tick.
What changed: Simplified END_ROD particle spawning to use single-parameter method
Removed problematic offset/extra float parameters that require ParticleData in 1.21+ Beacon beam effect now renders correctly without console spam Technical details:
// Before (broken in 1.21+): world.spawnParticle(Particle.END_ROD, x, y, z, 1, 0.1, 0.0, 0.1, 0.0f);
// After (works everywhere): world.spawnParticle(Particle.END_ROD, x, y, z, 1);
Affected versions: MC 1.21 - 1.21.4 Recommended for all Paper/Purpur 1.21+ users experiencing console warnings
4.4.2Релиз26.1, 26.1.1, 26.1.2 · 8 мая 2026 г.
SpawnChestPlugin v4.4.2
IN THIS VERSION FOLIA SUPPORT WAS REMOVED
What's New
bStats Integration
- Added anonymous usage statistics to help improve the plugin
- Plugin ID: 31206
- View stats at: https://bstats.org/plugin/bukkit/SpawnChestPlugin/31206
- Fully compliant with privacy - no personal data collected
Customizable Guardian Types
Configuration Example
Add to your config.yml:
features:
guardians:
enabled: true
# Guardian counts per tier
common-count: 2
rare-count: 3
legendary-count: 5
# NEW: Guardian mob types
# Valid types: ZOMBIE, SKELETON, WITHER_SKELETON, SPIDER, CAVE_SPIDER,
# CREEPER, ENDERMAN, PIGLIN, ZOMBIFIED_PIGLIN, BLAZE, STRAY, HUSK,
# DROWNED, VEX, VINDICATOR, PILLAGER, RAVAGER, SHULKER, PHANTOM, etc.
common-type: ZOMBIE # Default guardians for Common chests
rare-type: SKELETON # Default guardians for Rare chests
legendary-type: WITHER_SKELETON # Default guardians for Legendary chests
# Example 1: Spider-themed server
features:
guardians:
common-type: SPIDER
rare-type: CAVE_SPIDER
legendary-type: CAVE_SPIDER # with more spawns
# Example 2: Nether-themed
features:
guardians:
common-type: ZOMBIFIED_PIGLIN
rare-type: BLAZE
legendary-type: WITHER_SKELETON
# Example 3: End-themed
features:
guardians:
common-type: ENDERMITE
rare-type: ENDERMAN
legendary-type: SHULKER
# Example 4: Raid-themed
features:
guardians:
common-type: PILLAGER
rare-type: VINDICATOR
legendary-type: RAVAGER
- Fixed compatibility issue with mob types across MC versions
- Improved version-safe entity type detection
4.4.1Релиз1.21.11, 26.1, 26.1.1 · 8 апреля 2026 г.
Fixed a bug where the pre-open timer lock persisted even when pre-open-timer.enabled: false was set in config.
4.4Релиз1.21.11, 26.1, 26.1.1 · 8 апреля 2026 г.
SpawnChestPlugin 4.4
What's new
Multi-chest spawning
Spawn multiple chests per interval simultaneously. Each chest finds its own random location with a configurable delay between spawns to keep the server load even.
settings:
chest-count-per-interval: 3 # spawn 3 chests at once
chest-spawn-delay-seconds: 5 # 5 seconds between each
Four summoner apples
The old generic Summoner Apple is now four distinct items — each forces a specific chest tier or picks one at random. All four can be given via command, configured to drop inside chests independently, and obtained through /getlegendaryitems.
| Command | Result |
|---|---|
/giveapple random <player> |
Spawns a random-tier chest |
/giveapple common <player> |
Always spawns a Common chest |
/giveapple rare <player> |
Always spawns a Rare chest |
/giveapple legendary <player> |
Always spawns a Legendary chest |
World apple drop
When enabled, a Summoner Apple spawns as a physical item in the world each time a chest appears. Players see the coordinates in chat and race to pick it up. The item never despawns until collected.
world-apple-drop:
enabled: false
spawn-method: near-chest # near-chest | near-player | with-chest
radius: 15
Pre-open timer
Chests start locked. The first player to right-click starts a countdown visible to everyone nearby. Only after the countdown ends can anyone open the chest — giving distant players a chance to run. The chest-disappear timer begins only after the chest unlocks.
pre-open-timer:
enabled: true
duration-seconds: 30
notify-radius: 20.0 # countdown messages visible within this range
Chest protection zone
Blocks around an active chest are protected from breaking and placing. Removed automatically when the chest disappears or is opened. Uses real WorldGuard regions when WorldGuard is installed; falls back to built-in event blocking otherwise.
chest-protection-zone:
enabled: true
radius: 5 # 11×11 area
Protection plugin integration
Chests no longer spawn inside claimed territories. Detected automatically — no extra setup needed beyond having the plugin installed.
Supported: WorldGuard · GriefPrevention · GriefDefender · Lands
Permission-based broadcasts
All announcements now respect individual permission nodes. On servers where all permissions are denied by default, grant the spawnchest.notify.* nodes to the default group.
| Permission | Controls |
|---|---|
spawnchest.notify.spawn |
Spawn announcement + title |
spawnchest.notify.coordinates |
Coordinates in announcement |
spawnchest.notify.disappear |
Disappear announcement |
spawnchest.notify.countdown |
Countdown warnings |
spawnchest.notify.bossbar |
BossBar visibility |
Chest lifetime overhaul
- Unopened chest — disappears after
chest-disappear-minutesfrom spawn time - Opened chest — disappears after another full
chest-disappear-minutesfrom the moment it was opened
The two timers are independent. Opening a chest gives players the full window to loot it.
BossBar improvements
- Pre-open countdown shown in BossBar with configurable color
- After chest is opened: bar switches to a dimmed "opened · disappears in Xs" state
show-countdownandshow-active-chestflags now correctly hide the bar when both are off- BossBar re-initialises on
/reloadchestconfigwithout a server restart
Minecraft 26.1 / 26.1.1 support
Mojang introduced a new versioning scheme in 2026 (year.drop instead of 1.X). The version adapter now handles both formats transparently. No plugin changes needed on the server side — drop in the new jar and go.
Bug fixes
- Batch spawning — second and third chests in a batch were blocked by the
spawnInProgressflag from the previous chest. Replaced fixed delays with a queue that waits for each spawn to finish before starting the next. - Particle errors —
END_RODandBLOCK_CRACKparticles require explicitFloatdata in 1.21.10+. Fixed with correct types and a try-catch fallback for unsupported versions. - Paper 26.1 detection — the old
PaperConfigclass was removed in the Paper hard-fork. AddedServerBuildInfoand server-name fallback checks. - BossBar visible when disabled — the bar stayed visible after setting
show-countdown: false. Bar now hides explicitly when there is nothing to show.
Config changes
New sections added — existing configs are fully backward-compatible. Add the new sections manually or delete config.yml to regenerate it.
# New in 4.4
settings:
chest-count-per-interval: 1
chest-spawn-delay-seconds: 5
spawn-zone:
exclude-surfaces:
water: true
lava: true
leaves: true
ice: true
magma: true
cactus: true
sand: false
gravel: false
netherrack: false
pre-open-timer:
enabled: true
duration-seconds: 30
announce-at-seconds: [30, 20, 10, 5, 3, 2, 1]
show-in-bossbar: true
bossbar-color: PINK
notify-radius: 20.0
chest-protection-zone:
enabled: true
radius: 5
use-worldguard: true
worldguard-region-prefix: "spawnchest"
notify-players: true
protection:
enabled: true
check-worldguard: true
check-grief-prevention: true
check-grief-defender: true
check-lands: true
max-protection-retries: 20
world-apple-drop:
enabled: false
apple-type: random
spawn-method: near-chest
radius: 15
announce-coordinates: true
persist-until-pickup: true
summoner-apple:
random:
enabled: true
drop-in-legendary: true
drop-chance: 0.05
common:
enabled: true
drop-in-legendary: false
rare:
enabled: true
drop-in-legendary: false
legendary:
enabled: true
drop-in-legendary: false
Compatibility
| Minecraft | 1.18 – 1.21.x · 26.1 · 26.1.1 |
| Server software | Spigot · Paper · Purpur · Pufferfish |
| Protection plugins | WorldGuard · GriefPrevention · GriefDefender · Lands |
| Java | 17+ |
4.3.1Релиз1.21.9, 1.21.10, 1.21.11 · 2 апреля 2026 г.
v4.3 — Protection plugin integration (WorldGuard, GriefPrevention, GriefDefender, Lands), optional BossBar timer, and per-permission broadcast control so all players see announcements regardless of server permission setup.
Supports Spigot / Paper / Purpur · Minecraft 1.18 – 1.21.x
4.3Бета1.21.9, 1.21.10, 1.21.11 · 2 апреля 2026 г.
v4.3 — Protection plugin integration (WorldGuard, GriefPrevention, GriefDefender, Lands), optional BossBar timer, and per-permission broadcast control so all players see announcements regardless of server permission setup.
Supports Spigot / Paper / Purpur · Minecraft 1.18 – 1.21.x
4.2Релиз1.21.9, 1.21.10, 1.21.11 · 4 февраля 2026 г.
SpawnChestPlugin v4.2.0 - Release Notes
Custom Loot System Overhaul
Version 4.2 introduces a complete redesign of the custom loot editor with advanced configuration options and improved safety features.
Major Changes
Dynamic Chest Sizing
- Toggle between single chest (27 slots) and double chest (54 slots)
- Items automatically transfer when expanding chest size
- Excess items safely drop at player's location when downsizing
- Configuration settings persist through size changes
Configurable Drop Rates
New fraction system allows precise control over item spawning:
- 10 options: All items, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7, 1/8, 1/9, 1/10
- Items are shuffled randomly on each spawn
- Allows fine-tuning of loot balance per tier
- Current setting displayed in edit menu
Protected Reset System
Two-step confirmation prevents accidental data loss:
- First confirmation menu shows current item count and warns about deletion
- Second confirmation menu requires final approval
- Settings (chest type, drop rate) are preserved during reset
- Only item list is cleared
- Cancel option available at both stages
Configuration Preservation
Reset now intelligently preserves your settings:
- Chest type setting retained
- Drop rate fraction retained
- Only removes items from loot table
- Enables faster reconfiguration
Technical Improvements
GUI Stability
- Fixed bug where control buttons could be moved despite protection
- Fixed button click responsiveness issues
- Improved inventory state management during menu transitions
- Better session tracking across multiple menu changes
- Fixed timing issue that caused buttons to stop working
Validation and Safety
- Fixed inventory size validation errors (63 slot error)
- Added proper checks for chest area boundaries
- Improved item transfer logic
- Added atomic save operations for custom loot data
- Enhanced drag and drop protection
Localization
- Added 30+ new translation keys for all features
- Updated all 10 supported languages
- Context-aware messages throughout new system
- Consistent terminology across menus
Bug Fixes
- Fixed control buttons becoming movable in certain scenarios
- Fixed edit menu buttons not responding after opening from main menu
- Fixed inventory close event clearing state prematurely
- Fixed drag protection not blocking all control area slots
- Fixed shift-click allowing items into control buttons
- Fixed number keys bypassing protection
- Resolved session state conflicts during rapid menu switching
Upgrade Instructions
- Backup your current SpawnChestPlugin folder
- Replace the old JAR file with version 4.2
- Restart your server
- Existing custom loot configurations will be automatically migrated
- No manual configuration changes required
Your custom loot tables will remain intact and functional.
Configuration Example
After upgrading, you can now configure loot like this:
Balanced Rare Chest:
- 30 items configured in double chest (45 usable slots)
- Drop rate set to 1/3
- Result: Each chest spawns with 10 random items from the pool
High-tier Legendary Chest:
- All 9 legendary items plus 20 support items
- Drop rate set to All
- Result: Every configured item spawns in every chest
Command Changes
No new commands added. The /putintothechest command now opens the improved editor interface.
API Notes
No breaking changes for developers. All existing API methods remain functional. New methods added to CustomLootManager class for accessing chest size and fraction settings.
Performance
- All GUI operations are thread-safe
- No performance impact from new features
- Inventory management optimized for servers with high player counts
- Atomic file operations prevent corruption during saves
Documentation
Full documentation updated on GitHub Wiki covering:
- Step-by-step custom loot editor guide
- Chest type and fraction system explanation
- Reset system walkthrough
- Best practices for loot configuration
- Troubleshooting common issues
Feedback
Report bugs or suggest features:
- Issues: GitHub Issues
- Discord: Join our Discord
Version 4.2.0 - February 2026
Комментарии
Загружаем…