August 1, 2026 · The Minely team
How to make a skywars plugin with AI (chests, grace, win rewards)
SkyWars is battle royale at Minecraft scale: everyone starts on an island, loot decides the first minute, and the middle island decides the rest. It is a minigame of chests and timings more than systems, which makes it one of the cleanest to build well.
What a skywars plugin actually is
A skywars plugin runs free-for-all matches: each player starts on a personal island with starter chests, fights over the richer middle island, and the last player alive wins. A short grace period stops spawn-rushing, and win rewards pay out in config.
How it works under the hood
A match holds player islands, chest definitions (starter tier, mid tier), and alive state. Chest filling rolls each chest from its tier's loot table at match start. The grace period is a timer with PvP disabled and a countdown display. Deaths eliminate (or spectate), and end detection pays the winner. Mid chests refill once mid-match for the second phase of the fight.
The prompt that builds it
You do not have to write this yourself. A precise description is enough:
a skywars plugin with player islands, tiered mid chests with a refill, a 10 second grace period, spectate on death, and win rewards in config
Name the commands, the permissions, and the exact messages players see. Precision here is what makes the first build land close.
Building it in the right order
- Build the match state with islands and alive tracking.
- Implement chest tiers and the fill logic.
- Add the grace period with PvP lock and countdown.
- Handle death, spectate, and win detection.
- Pay win rewards and handle the mid-chest refill.
The details that matter in production
In production, the first thing you learn is that the happy path is the easy half. The edges are where the work lives: restarts, protection interactions, full inventories, and players who treat every system like an exploit puzzle. Build for those from day one and the launch weekend is quiet instead of a fire drill.
Storage and cleanup deserve special attention. Write state as it changes rather than on shutdown, clear per-player state on quit and on world change, and make every admin-facing action leave an audit line. The first time something goes wrong, those records are the difference between a two-minute review and an evening of guessing.
Finally, test like a hostile user. Spam-click every GUI, rejoin mid-action, try the command with no permission and with every permission, and run it while the server is under load. The bugs that survive that pass are the ones worth shipping.
Tuning it after the first build
Starter chests should guarantee a weapon and a few blocks — anything less feels bad, anything more makes mid pointless. The mid refill at 60 to 90 seconds creates the second fight. A 5 to 10 minute match timer with border close or sudden death keeps games snappy.
Tips that save you a rebuild
- Guarantee one weapon per starter chest; unlucky starts are the top quit reason.
- Spectators get flight and invisibility, never interaction.
- Cap mid loot slightly below god-tier or the mid camper always wins.
- Broadcast kill leaders at the refill; it creates the endgame story.
Questions people ask
Can I have team skywars?
Yes — pairs with shared islands and team chests, same engine with team records.
What about kits?
Per-kit selection before the game with one free kit and unlockable others is the classic addition.
How do I stop spawn camping?
The grace period plus island spacing; both are config values.
Describe your version in the composer and see it built in minutes. Iterate with follow-up edits until it is exactly your server's flavor.
