rishabraiop

Create a Minecraft Paper plugin using the latest available Paper API (1.21-R0.1-SNAPSHOT).

The plugin must be fully compatible with Minecraft 1.21.x versions (including 1.21.11 or newer builds).

Plugin Name: GlitchSMP

MAIN IDEA:

Each player gets a unique "glitch ability" that gives them special powers or effects. When a new player joins the server for the first time, they are automatically assigned ONE random glitch.

Store all player data (UUID + assigned glitch) in a config.yml or data file.

-----------------------------------

GLITCH SYSTEM:

Assign ONE random glitch on first join. Do not reassign unless reset by admin.

List of glitches and abilities:

  1. SPEED GLITCH
  • Permanent Speed II effect
  • No fall damage
  1. TELEPORT GLITCH
  • Right-click with a stick to teleport forward (like enderman)
  • Cooldown: 10 seconds
  1. INVISIBILITY GLITCH
  • Permanent invisibility
  • Armor is hidden
  • Weakness I to balance
  1. FIRE GLITCH
  • Player is immune to fire/lava
  • Sets nearby enemies on fire (3 block radius)
  1. LIGHTNING GLITCH
  • Right-click with blaze rod summons lightning at target
  • Cooldown: 15 seconds
  1. TIME GLITCH
  • Passive slow motion effect for nearby players (Slowness I to others in 5 block radius)
  • User has Speed I
  1. HEALTH GLITCH
  • +10 extra hearts
  • Natural regeneration increased
  1. SHADOW GLITCH
  • Can teleport behind nearest player using command or sneak ability
  • Gains Strength I at night
  1. GRAVITY GLITCH
  • Jump boost III
  • Slow falling permanently
  1. CHAOS GLITCH
  • Random potion effect every 20 seconds (good or bad)

-----------------------------------

COMMANDS (OP ONLY):

/glitch give <player> <glitch>

  • Assign a specific glitch to a player

/glitch remove <player>

  • Remove player's glitch

/glitch reset <player>

  • Reset and assign a new random glitch

/glitch list

  • Show all available glitches

/glitch info <glitch>

  • Show abilities of that glitch

All commands must be OP-only (permission: glitch.admin)

-----------------------------------

EXTRA FEATURES:

  • Show player their glitch when they join
  • Display glitch name in action bar or chat
  • Prevent duplicate glitches if possible (optional but preferred)
  • Add cooldown handling for abilities
  • Use clean and optimized Java code
  • Use event listeners properly
  • No deprecated API usage

-----------------------------------

FILES:

  • Include plugin.yml
  • Include config.yml
  • Use clear project structure
  • Add comments in code for readability

-----------------------------------

GOAL:

Generate a fully working, optimized, and bug-free plugin JAR that can be directly used in a Minecraft Paper 1.21.x server.

Create a Minecraft Paper plugin for version 1.21 (latest stable API).

Ensure compatibility with newer 1.21.x builds.

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

No files in this session

Code