Mohammad Saleem uddin

Act as an expert Minecraft plugin developer and systems designer specializing in high-performance Paper/Spigot plugin architecture for Minecraft versions 1.20+ up to modern versions (1.21+ / modern Paper API).

I am developing a custom Minecraft server plugin called AuraSMP, built around a core elemental system, hardcore life mechanics, and balanced PvP progression.

Technical & Code Standards (1.20+ to Modern):

  • API & Framework: Target the Paper API (latest 1.20.x through modern versions). Ensure thread safety and compatibility with modern server environments (mention Folia considerations where tick-threads or region schedulers apply).
  • Text & Components: Strictly use Kyori Adventure API (Component, MiniMessage, NamedTextColor) for all player messages, action bars, titles, and item lore. Avoid all legacy chat color codes (ChatColor.RED, &c, etc.).
  • Data Storage & Persistence: Use Bukkit's PersistentDataContainer (PDC) combined with NamespacedKey for saving player data (lives, tiers, elements) and locking items.
  • Modern Registries & Materials: Use current Material enums, modern item meta APIs, and proper registry lookups.

Using the complete AuraSMP Master Plugin Documentation provided below, please assist me with: [INSERT YOUR TASK HERE, e.g., writing the Java code for the Temporal Rewind ability using PersistentDataContainer, packet playback, and a ghost clone entity, or designing the inventory-lock event listener...]

---

AuraSMP Plugin Documentation Reference:

1. Core Systems & Server Rules:

  • First-Join Spin: 3-second animated UI cycles through all 7 elements, permanently locking on join. Soul-bound item that doesn't drop on death.
  • Anti-Storage Lock: Blocked from moving/storing the Element Item inside chests, Ender chests, shulker boxes, barrels, hoppers, drop crates, or item frames.
  • 3-Lives Hardcore Ban: 3 lives total. Death = -1 life. 0 lives = permanent UUID and IP ban (unbannable only via /aura unban <player>).
  • Balanced PvP Stealing (+1 Tier Rule): Slain in PvP resets victim's element to Tier 1 (-1 life). Killer receives +1 Tier (capped/incremented sequentially, e.g., T1 -> T2), preventing instant max-tier leaps.

2. The 7 Elements & Tiers:

  • Ignis (Fire): T1 (Fire Res + Strength I), T2 (Flame Dash, 20s CD), T3 (Flame Nova, 75s CD), T4 (Ignis Blade & flaming meteor).
  • Aeon (Time): T1 (Speed I + Haste I), T2 (Time Blink, 15s CD), T3 (Temporal Rewind - 5s health/hunger/location restoration with ghost clone & clockwork sound, 90s CD), T4 (Aeon Scythe & cooldown reset).
  • Void (Space): T1 (Night Vision + Invis while crouching 3s), T2 (Shadow Phase, 25s CD), T3 (Void Trap blind 8-block radius, 60s CD), T4 (Void Dagger & true stealth).
  • Kinetic (Force): T1 (Resistance I / 10% reduction), T2 (Kinetic Blast 6-block repel, 15s CD), T3 (Force Shield 100% invulnerability 3s, 80s CD), T4 (Kinetic Hammer & ground slam).
  • Frost (Ice): T1 (Slowness I aura 4 blocks), T2 (Frost Wave block trap 3s, 20s CD), T3 (Blizzard Slowness IV & Mining Fatigue II 12-block area, 70s CD), T4 (Cryo Spear & ice shard).
  • Storm (Lightning): T1 (Conduit Power + Dolphin's Grace in water), T2 (Lightning Strike, 15s CD), T3 (Supercharge +50% attack speed & Speed II, 60s CD), T4 (Mjolnir Axe & zero-cooldown AoE lightning).
  • Terra (Earth): T1 (Absorption II + Knockback Resistance), T2 (Root Trap 4s, 20s CD), T3 (Earthquake seismic shockwave, 75s CD), T4 (Terra Shield off-hand resistance & knockback immunity).

3. Tier Upgrade Altar (/aura altar):

  • T1 $\rightarrow$ T2: $8\times$ Netherite Ingots + $1\times$ Nether Star
  • T2 $\rightarrow$ T3: $4\times$ Echo Shards + $2\times$ Dragon's Breath
  • T3 $\rightarrow$ T4: $10\times$ Aura Shards + $1\times$ Heavy Core (or Nether Star)

4. Quest System (/quest aurashards):

  • Objective: Defeat 3 Wardens in 90 minutes. Failure resets progress to 0/3. Daily reset at 12:00 AM server time.

5. Commands & Permissions:

  • User: /aura info, /aura altar, /quest aurashards, /quest status (Permission: aurasmp.user)
  • Admin: /aura unban, /aura setlives, /aura settier, /aura setelement, /aura give shards, /aura resetquest (Permission: aurasmp.admin)
Kodari AI
KodariNov 8 at 10:24 am 1
AuraSMPCore
Core elemental plugin for AuraSMP server. Implements first-join element spin with soul-bound item, anti-storage lock, 3-lives hardcore ban system, and balanced PvP tier stealing. Features 7 elements (Ignis, Aeon, Void, Kinetic, Frost, Storm, Terra) with 4 tiers each, providing passive buffs and active abilities with cooldowns. Includes tier upgrade altar, quest system for Aura Shards, and comprehensive admin/user commands with Adventure API components and PersistentDataContainer storage.

What should I implement first for AuraSMP? Replace the placeholder with a specific task—for example, the Temporal Rewind ability or the Element Item inventory-lock listener.

Mohammad Saleem uddin

Replace the placeholder with a specific task—for example, the Temporal Rewind ability or the Element Item inventory-lock listener

Kodari AI
KodariNov 8 at 10:25 am 1

Choose the first AuraSMP feature to build: Temporal Rewind or the Element Item inventory-lock listener. I need a specific task before I can create the project files.

Mohammad Saleem uddin

Element Item inventory-lock listener.

Kodari AI
KodariNov 8 at 10:27 am 1
  1. Add the plugin bootstrap and a PDC-backed service for marking Element Items.

  2. Block tagged items from being stored through container clicks/drags, hopper transfers, and item frames.

  3. Keep all handling inside Bukkit events; no scheduler work is needed, avoiding cross-region scheduling concerns on Folia.

Added the Element Item inventory lock. Tag an item with plugin.getElementItemService().markElementItem(item); its PDC marker is checked by the listener.

Tagged items are blocked from being stored through container clicks, shift-clicks, hotbar/off-hand swaps, drags, hopper transfers, and item-frame placement. Denials use an Adventure action bar. The event handlers use no schedulers, so they introduce no cross-region scheduling on Folia.

Mohammad Saleem uddin

Temporal Rewind

Kodari AI
KodariNov 8 at 10:31 am 2
  1. Trace the plugin bootstrap, Element Item/PDC conventions, and event handling.

  2. Add Temporal Rewind with a 5-second snapshot, tier/cooldown checks, and the documented restoration effects.

  3. Register the ability and keep scheduling compatible with Paper; note Folia limits where relevant.

Added Aeon Tier 3 Temporal Rewind. Right-click a tagged Element Item while the player’s PDC says element=aeon and tier>=3; it restores the snapshot from five seconds earlier, plays a clockwork-like sound, and leaves a glowing armor-stand afterimage for two seconds. The 90-second cooldown is stored in the player’s PDC.

Set progression from your spin or admin system with plugin.getTemporalRewindService().setPlayerElementAndTier(player, "aeon", 3). The project has no packet/NPC library, so the afterimage is an armor stand rather than a packet-based player clone.

Folia note: snapshots and the afterimage cleanup currently use Bukkit’s main-thread scheduler, so this implementation targets standard Paper, not Folia. Folia support would require moving the repeating work and entity operations to the relevant entity/region schedulers.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
7 412
src/main/java/com/aurasmp/AuraSMPPlugin.java
package com.aurasmp;

import com.aurasmp.ability.TemporalRewindService;
import com.aurasmp.item.ElementItemLockListener;
import com.aurasmp.item.ElementItemService;
import org.bukkit.plugin.java.JavaPlugin;

public final class AuraSMPPlugin extends JavaPlugin {
    private ElementItemService elementItemService;
    private TemporalRewindService temporalRewindService;

    @Override
    public void onEnable() {
        elementItemService = new ElementItemService(this);
        getServer().getPluginManager().registerEvents(new ElementItemLockListener(elementItemService), this);
        temporalRewindService = new TemporalRewindService(this, elementItemService);
        getServer().getPluginManager().registerEvents(temporalRewindService, this);
        temporalRewindService.start();
    }

    @Override
    public void onDisable() {
        if (temporalRewindService != null) {
            temporalRewindService.shutdown();
        }
    }

    public ElementItemService getElementItemService() {
        return elementItemService;
    }

    public TemporalRewindService getTemporalRewindService() {
        return temporalRewindService;
    }
}