thenameskoo

Create a Minecraft plugin JAVA 26.1 compatible with Geyser/Bedrock, so players on PC, mobile, PlayStation, Xbox, Nintendo Switch can join and use their abilities without commands.

⸻

  1. Commands

1. /smpstart – Starts the SMP roles game (only can be ran through console or by operator) • Levitates all players with blue dome + red fire particles • Displays rotating INVENTORY GUI of all roles for 5 seconds • Assigns one role per player automatically • Commander appears only if no one currently has it 2. /smpend – Ends the game (only can be ran through console or by operator) • Removes levitation, particles, abilities, cooldowns • Resets all saved data (roles, cooldowns, trust lists, ability items) 3. /trust <player> (anyone can use but their list only affects them and their abilities)– Adds a trusted player (abilities do not affect them) 4. /untrust <player> (anyone can use but their list only affects them and their abilities)– Removes a trusted player 5. /trustlist (anyone can use but their list only affects them and their abilities)– Displays your current trusted players

⸻

  1. Role Assignment Rules

1. Commander (unique) – Only 1 player can hold this role at a time 2. Other roles – Multiple players can have the same role 3. Abilities check trust list: • Trusted players are immune to damaging/CC abilities • Team-based buffs/heals only affect trusted players

⸻

  1. Ability Activation Logic

• Single right-click / tap / trigger → Ability 1 (no other click within 2 seconds) • Double right-click / tap / trigger within 2 seconds → Ability 2 • Server-side enforcement: • Cross-platform (PC, console, mobile, Bedrock) • Abilities cannot bypass cooldowns or trust checks • Cooldown display: • Action bar or INVENTORY GUI overlay • Visual/audio cues when ready

⸻

  1. Persistent Save System

• Saves roles, cooldowns, trust lists, levitation/particle state • Persistent across server restarts and player logouts • Cleared only via /smpend

⸻

  1. Full 20 Role Details
  1. Commander (Unique)

• Passive: +2 Attack, +3 Speed, Max Hearts 22 • Ability1: Royal Freeze — Freeze all non-trusted enemies 10 blocks for 8s; ice cube particles • Ability2: Battle Roar — +5 Attack self, -5 to non-trusted enemies 10 blocks 7s; trumpet sound; allies see enemies through walls • Cooldowns: 1:20 / 1:00

  1. Scout

• Passive: +5 Speed, +2 Jump, +2 Attack • Ability1: Blink Dash — Teleport 20 blocks, leaves decoy shouting “I’m not the real one!” 5s • Ability2: Mark of the Scout — Marks non-trusted enemies in 15 blocks; glowing + “boing” sound • Cooldowns: 1:10 / 1:30

  1. Phantom

• Passive: Invisible while standing still, +1 Attack • Ability1: Phase Step — Walk through walls 7s; ghostly moans • Ability2: Fear Echo — Non-trusted enemies flee 6s; high-pitched screams • Cooldowns: 1:40 / 1:50

  1. Titan

• Passive: Max Hearts 26, +2 Attack, -0.5 Speed • Ability1: Earthquake Slam — Knockback/stun non-trusted enemies 7 blocks 4s; crater & “BOOM!” • Ability2: Unstoppable — Immune to knockback/CC 6s; dust trail • Cooldowns: 1:30 / 2:00

  1. Warden

• Passive: Allies +2 Damage Resistance in 7 blocks • Ability1: Gravity Field — Pull non-trusted enemies 6 blocks, slow 50% 5s; “whoosh” • Ability2: Fortify — 5-block shield absorbs 15 dmg/hit 8s; sparks & clang • Cooldowns: 1:20 / 1:40

  1. Stormcaller

• Passive: +1 Speed, immune to environmental damage • Ability1: Lightning Strike — 3 strikes non-trusted enemies 12 blocks; 8 dmg + 2s stun; fireworks + “ZZAP!” • Ability2: Thunder Roar — 10-block radius; non-trusted enemies slowed 60%, 3 dmg/sec; “BOOM!” clouds • Cooldowns: 1:30 / 1:50

  1. Chef

• Passive: +3 Hearts when eating, +1 Attack • Ability1: Food Bomb — Pie blinds non-trusted enemies 5s; whipped cream particles • Ability2: Banquet Boost — Heal trusted allies 6 hearts; “nom nom nom” sound • Cooldowns: 1:00 / 1:40

  1. Mad Scientist

• Passive: +2 Speed, potion effects 2x longer • Ability1: Confusion Grenade — Random potion effects 6s to non-trusted players, smoke clouds • Ability2: Rocket Boots — Fly 10 blocks; rocket sparks & “WHEEE!” • Cooldowns: 1:20 / 1:30

  1. Mime

• Passive: Immune to knockback • Ability1: Invisible Wall — Trap non-trusted enemies 5x5x5 for 5s; “mmmph mmmph!” • Ability2: Silent Scream — Silence non-trusted enemies 6 blocks 5s; giant “!” overhead • Cooldowns: 1:20 / 1:40

  1. Balloonist

• Passive: +2 Jump, float slightly • Ability1: Balloon Lift — Lift self/trusted ally 10 blocks; squeaky sounds • Ability2: Air Drop — Bouncing balloon trap; non-trusted enemies bounce 3x, “boing boing” • Cooldowns: 1:30 / 1:40

  1. Bard

• Passive: Allies +1 Speed & +1 Attack in 10 blocks • Ability1: Epic Anthem — Buff trusted allies 10 blocks for 6s; musical notes particles • Ability2: Discord — Non-trusted enemies slowed/confused 6s; comic “wah wah wah” sound • Cooldowns: 1:20 / 1:50

  1. Magician

• Passive: +1 Attack, +1 Jump • Ability1: Illusion — Swap position with trusted ally 7 blocks; puff of smoke • Ability2: Magic Missile — Shoot projectile at non-trusted enemies 10 dmg; sparkle particles • Cooldowns: 1:30 / 1:50

  1. Pyromaniac

• Passive: Fire immunity, +1 Attack • Ability1: Flame Burst — 5-block radius damage non-trusted enemies 4s; fire particles • Ability2: Inferno Trail — Walk leaves 3-block fire; trusted allies safe • Cooldowns: 1:20 / 1:40

  1. Rubber

• Passive: Bounce when falling, +2 Jump • Ability1: Stretch Punch — Knockback non-trusted enemies 7 blocks • Ability2: Slingshot Jump — Launch self/trusted ally 15 blocks; spring particles • Cooldowns: 1:30 / 1:50

  1. Ice Cream Truck

• Passive: +1 Speed, heals 1 heart per second to trusted allies within 5 blocks • Ability1: Freeze Spray — Freeze non-trusted enemies 5 blocks 6s; ice cream cone particles • Ability2: Ice Cream Buffet — Heal all trusted allies 6 hearts; “yum yum” particles • Cooldowns: 1:20 / 1:50

  1. Librarian

• Passive: +1 Attack, buffs reading allies • Ability1: Knowledge Bomb — Disorient non-trusted enemies 5s; books flying • Ability2: Study Aura — Buff trusted allies +2 Attack/Speed 6s; glowing book particles • Cooldowns: 1:30 / 1:50

  1. Jester

• Passive: Confuses non-trusted enemies within 5 blocks when moving • Ability1: Prank — Swap non-trusted enemies locations randomly in 7 blocks; silly particles • Ability2: Pie Time — Pie hits non-trusted enemies; blinds for 4s • Cooldowns: 1:20 / 1:40

  1. Time Traveler

• Passive: +1 Speed, can see past positions of non-trusted enemies • Ability1: Rewind — Revert self/trusted ally to 5s earlier position • Ability2: Fast Forward — Speed boost 7s for self/trusted allies • Cooldowns: 1:30 / 1:50

  1. Chef’s Apprentice

• Passive: +1 Heart per food, +1 Attack • Ability1: Spicy Explosion — Non-trusted enemies burned 4s; chili particles • Ability2: Cooking Aid — Heal trusted allies 4 hearts; potion particles • Cooldowns: 1:20 / 1:40

  1. Disco King/Queen

• Passive: Allies in 7 blocks have 10% crit chance • Ability1: Disco Ball — Stuns non-trusted enemies 5s; rainbow particles • Ability2: Boogie Boost — +3 Speed trusted allies 7s; music notes particles • Cooldowns: 1:30 / 1:50

⸻

  1. Additional Developer Notes

• All abilities check trust lists for team effects • Particles & sounds: unique per ability • Cooldowns & persistent saves: server-side, cross-platform, persistent across restarts/logouts • Server-side enforcement: Ability items cannot be dropped, stored, or duplicated • INVENTORY GUI: Role rotation screen displays roles visually; Commander only if available

Kodari can make mistakes. Review important code before using.
Files

No files in this session

Code