Skip to main content
← Blog

August 3, 2026 · The Minely team

How to make a lobby cosmetics plugin with AI (hats, trails, gadgets)

Lobbies live on cosmetics. Hats, trails, and silly gadgets give players something to do between games and something to chase between sessions. The systems are independent — a hat slot, a particle trail, a gadget with a cooldown — which makes this the perfect first multi-feature plugin.

What a lobby cosmetics plugin actually is

A lobby cosmetics plugin bundles three toy systems: hats worn on the head, particle trails that follow movement, and gadgets (fun items with small effects and cooldowns). Everything is toggleable in one /cosmetics GUI, with per-item permissions for the premium tiers.

How it works under the hood

Hats are helmet-slot items applied without touching armor logic, restored when the hat is removed. Trails are a move listener that spawns a few particles at foot level with strict rate limiting — the difference between tasteful and slideshow is three particles a second, not thirty. Gadgets are inventory items with use handlers and per-gadget cooldowns. All of it lives in a per-player state map, cleared on world change or minigame join.

The prompt that builds it

You do not have to write this yourself. A precise description is enough:

a lobby cosmetics plugin with /cosmetics GUI, hats, particle trails with rate limiting, a gadget slot with cooldowns, per-item permissions, and state cleared on game join

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

  1. Build the /cosmetics GUI with three sections.
  2. Implement hats with clean apply/remove and armor restoration.
  3. Add trails with per-player styles and rate-limited spawning.
  4. Create gadgets with use handlers and per-gadget cooldowns.
  5. Wire permissions for premium items and clear state on game join.

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

Restraint is the design skill here. Three to five hats per tier, five trail styles, four to six gadgets. Gadget cooldowns of 10 to 30 seconds keep them fun without being spam. Premium cosmetics belong in crates and the tag shop — the chase is the content.

Tips that save you a rebuild

  • Rate-limit particles globally as well as per player — 200 players with trails is a weather event.
  • Never apply cosmetics inside minigames unless the game opts in; a trail gives away a hider.
  • Restore the real helmet when a hat comes off, or players lose armor to a cosmetic.
  • Test with 20 alts in one lobby before launch; cosmetics are a load feature too.

Questions people ask

Can players see others' cosmetics?

Yes — that is the point. Trails and hats are client-side cheap; gadgets should respect lobby rules.

How do I add a hat?

Ask for it with its item and permission: "add a beacon hat for the MVP tier". It appears in the GUI section automatically.

What about capes or wings?

Ask for an elytra-cosmetic with flight disabled — the look without the gameplay.

If you can describe it, you can ship it. Take the prompt from this guide, tweak one detail, and build your version tonight.