Create a Minecraft Paper/Spigot plugin for 1.21.x called RandomDropMadness for a YouTube challenge video.
PLUGIN IDEA:
Every 60 seconds, every online player receives a completely random item drop directly above their head. The item should fall naturally from the sky with particles and sounds for dramatic effect.
MAIN FEATURES:
Timer repeats every 60 seconds automatically
Random items can be:
Vanilla items
OP enchanted gear
Funny useless items
Food
TNT
Potions
Spawn eggs
Modded/custom items support through item IDs
Random amount from 1–64 depending on item
Broadcast message before drop:
"⚠ Random Drop Incoming in 5 seconds!"
Countdown titles:
5... 4... 3... 2... 1...
At drop:
Lightning effect (visual only)
Explosion particles
Sound effects
Item rains above player
SPECIAL EVENTS (random chance):
5% chance: Legendary Drop Event
Netherite OP gear
Rare enchanted items
Totems
3% chance: Troll Event
Pufferfish
Rotten flesh
Poison potion
Chicken
2% chance: Chaos Event
TNT rain around all players for 5 seconds
Fireworks everywhere
Creeper sounds
ADMIN COMMANDS:
/rd start
/rd stop
/rd forcenext
/rd reload
/rd settime
CONFIG SYSTEM:
Editable config.yml
Add/remove items easily
Set timer
Enable/disable events
World blacklist support
PERFORMANCE:
Optimized for 10–50 players
Async safe
No lag spikes
Clean code structure
EXTRA COOL FEATURES:
Bossbar countdown
Actionbar timer
Hologram text above legendary drops
Different rarity system:
Common
Rare
Epic
Mythic
MAKE THE PLUGIN:
Professional quality
No bugs
Maven project
Full source code
Config comments
Compatible with Paper 1.21.x
Support custom model data items
Use modern API only
Also add:
Permissions
Tab completion
Colorful messages
INVENTORY GUI preview menu for admins using /rd menu
Statistics system showing:
Total drops
Rare drops
Player luck
The plugin should feel chaotic, cinematic, and perfect for Minecraft challenge videos.
KodariMay 26 at 12:49 pm 46,368 (v2)
I’ll build this plugin systematically. Let me plan all class dependencies first before writing any code.
Architecture Plan:
RandomDropMadness.java — main plugin class
config/ConfigManager.java — config loading/saving
data/StatsManager.java — statistics tracking
data/PlayerStats.java — per-player stats data class
manager/DropManager.java — core drop logic, scheduler, events
listener/WorldListener.java — world blacklist enforcement
util/ItemUtil.java — item building helpers
util/MessageUtil.java — color/message helpers
RandomDropMadness
A chaotic Minecraft challenge plugin that drops random items on every player every 60 seconds with cinematic effects. Features rarity tiers (Common/Rare/Epic/Mythic), special events (Legendary/Troll/Chaos), bossbar countdown, actionbar timer, explosion particles, lightning effects, and admin controls. Includes an inventory GUI stats menu, full config system with world blacklist, per-player statistics, and tab-completed admin commands. Built for YouTube challenge videos on Paper 1.21.x.
Now I need to fix the BossBarManager.java package declaration (it has a typo) and register the PlayerJoinListener:Let me read all the files I need to verify and fix:
Good. I can see several issues to fix:
BossBarManager.java has wrong package declaration
ItemUtil.java has a broken item() helper method call in buildMythicItem and buildLegendaryItem — it calls item(base, meta) but the method signature is private static void item(ItemStack item, ItemMeta meta) which just calls item.setItemMeta(meta) — that’s actually fine, but the method name item is confusing and it works. Let me re-check… actually it’s fine.
DropManager has a ENCHANTMENT_TABLE particle that doesn’t exist in 1.21 — should be ENCHANT
MessageUtil uses BungeeCord API for action bar — on Paper 1.21 we should use the native API
XEnchantment.getEnchant() — need to verify this method name
Let me fix all issues now:
Now fix the remaining issues in parallel:
Now let me also check XEnchantment — in XSeries the method is .getEnchant() not .getEnchant(). Let me also verify the ItemUtil broken item() call and fix the XEnchantment API — in newer XSeries it’s enchantment.getEnchant() which returns a Bukkit Enchantment. That’s correct. Let me also check the FIREWORK_ROCKET entity type used in DropManager — in 1.21 it’s EntityType.FIREWORK_ROCKET which is correct.
Now let me create the build.gradle:
Now let me also verify the remaining files that were created but not read — the RarityTier, PlayerStats, InventoryGUI framework files, and the data/PlayerStats increment method since StatsManager calls ps.increment(tier):
Everything looks good. Now let me read the build.gradle that was auto-created to verify it:
The build.gradle doesn’t include XSeries. Since XSeries is auto-detected by the platform, that’s fine per the instructions. However, I need to double-check — the instructions say “XSeries is already included — do NOT add it.” This means the platform handles it. The build.gradle looks correct.
Now let me also fix one subtle bug in DropManager — the countdownTask logic has an off-by-one issue where it decrements secondsRemaining but the trigger at == 5 doesn’t decrement, so the timer will jump from 6 to 5 and then trigger. Let me trace through: starts at interval, decrements each second. When it hits 5, it calls triggerWarningAndDrop() and returns without decrementing. The triggerWarningAndDrop then resets secondsRemaining = config.getDropInterval() after 5 seconds. This is correct behavior.
One more issue: in DropManager.startCountdown(), the secondsRemaining is set at the top of startCountdown() but also at the start of start(). The start() call sets it, then startCountdown() sets it again — that’s redundant but harmless. Let me clean up start():
The project is complete. Here’s a summary of what was built: