Pratima Sinha

Get the plugin for MinecraftCreate a complete, production-ready Minecraft Paper plugin for Paper 1.21.11 using Java 21.

PLUGIN NAME:

ElementalSMP

IMPORTANT:

Follow every requirement below exactly.

========================================

  1. ELEMENT SYSTEM

========================================

There are ONLY 5 elements:

  1. Air πŸŒͺ️
  1. Water πŸ’§
  1. Earth πŸͺ¨
  1. Fire πŸ”₯
  1. Lightning ⚑

DO NOT add:

Light

Dark

Void

Any other element

Players CANNOT choose their element manually.

When a player joins/gets an element, they must ROLL for an element.

Use these exact normalized roll chances:

Air = 39.68% Water = 31.75% Earth = 19.84% Fire = 7.94% Lightning = 0.79%

Total = 100%.

Make the roll system random and weighted.

Show the result clearly to the player, for example:

"🎲 ELEMENT ROLL" "You rolled: πŸŒͺ️ AIR"

Save the player's element permanently using PersistentDataContainer or another reliable persistent storage system.

Players should not lose their element after restarting the server.

========================================

  1. NO ELEMENT WEAPONS

IMPORTANT:

REMOVE THE ENTIRE ELEMENTAL WEAPON SYSTEM.

DO NOT create:

Flame Sword

Tidal Spear

Wind Blade

Earth Hammer

Thunder Spear

Elemental Weapon

Element Slash

There must be NO elemental weapons.

Combat abilities must work directly from the player's element.

========================================

  1. TR SYSTEM

Each element has 10 TR levels.

There are:

5 Elements Γ— 10 TR = 50 total abilities.

TR means the progression level of the player's element.

Players start at TR1.

Each TR unlocks a different ability.

Players cannot manually skip TRs.

Every TR must have:

Unique ability

Unique power

Unique effects

Unique task

Unique required materials

Unique progression requirement

Do NOT make every element's TR identical.

========================================

  1. FIRE ABILITIES

TR1 = Flame Shot TR2 = Fire Dash TR3 = Flame Wall TR4 = Burning Ground TR5 = Fire Chain TR6 = Inferno Strike TR7 = Meteor Flame TR8 = Dragon Breath TR9 = Inferno Storm TR10 = Fire Apocalypse

========================================

  1. WATER ABILITIES

TR1 = Water Shot TR2 = Water Dash TR3 = Healing Wave TR4 = Water Prison TR5 = Water Blade TR6 = Tsunami Strike TR7 = Whirlpool TR8 = Ocean Shield TR9 = Sea Storm TR10 = Ocean Apocalypse

========================================

  1. AIR ABILITIES

TR1 = Wind Shot TR2 = Air Dash TR3 = Wind Push TR4 = Air Blade TR5 = Wind Cage TR6 = Tornado TR7 = Sky Jump TR8 = Cyclone TR9 = Storm Field TR10 = Heaven's Storm

========================================

  1. EARTH ABILITIES

TR1 = Stone Shot TR2 = Earth Dash TR3 = Stone Wall TR4 = Earth Spike TR5 = Rock Armor TR6 = Ground Slam TR7 = Earthquake TR8 = Mountain Fist TR9 = Titan Armor TR10 = Earth Cataclysm

========================================

  1. LIGHTNING ABILITIES

TR1 = Spark Shot TR2 = Lightning Dash TR3 = Thunder Strike TR4 = Chain Lightning TR5 = Thunder Cage TR6 = Storm Spear TR7 = Thunder Rain TR8 = Lightning Storm TR9 = Godspeed TR10 = Thunder Apocalypse

========================================

  1. ABILITY SYSTEM

Each ability must actually work in-game.

Use appropriate Minecraft/Paper mechanics such as:

particles

sounds

damage

knockback

potion effects

projectiles

area effects

temporary blocks where appropriate

cooldowns

Abilities must have balanced cooldowns.

Every ability should have a unique visual effect matching its element.

Do not make all abilities simple renamed versions of the same attack.

TR10 abilities should be the strongest abilities but must still have reasonable cooldowns.

========================================

  1. ELEMENT DAMAGE

Create elemental combat interactions.

Fire:

Fire-based attacks

Burning effects

Water:

Water/control/healing abilities

Air:

Movement/knockback/mobility abilities

Earth:

Defense/armor/ground attacks

Lightning:

High burst damage and rare elemental power

Balance the elements so each has different strengths.

Do not make every element identical.

========================================

  1. TR PROGRESSION

Players earn Element XP by completing elemental activities.

Create different tasks for every element.

Example:

Fire:

Kill fire-related mobs

Use Fire abilities

Survive in Nether-related areas

Complete fire challenges

Water:

Complete ocean/water tasks

Use Water abilities

Defeat aquatic mobs

Air:

Complete movement challenges

Use Air abilities

Travel/fly-related challenges

Earth:

Mining and underground challenges

Defeat earth-related mobs

Complete defense challenges

Lightning:

Rare lightning challenges

Thunder-related events

Special difficult tasks

Do NOT make all 50 TR requirements identical.

========================================

  1. MATERIAL REQUIREMENTS

Every TR should have a unique material requirement.

Use Minecraft materials appropriate to the element and difficulty.

Higher TRs should require rarer materials.

TR10 should require an extremely rare special progression material.

The material requirements must be different between elements.

========================================

  1. ELEMENT XP

Create:

Element XP Element TR Unlocked Abilities

Example:

Element: FIRE TR: 4 XP: 650 / 1000

Store progression permanently.

Players should not lose their XP or TR after restarting.

========================================

  1. ELEMENT GUI

Create a clean GUI showing:

Player Name Element Current TR Element XP Unlocked Abilities Next TR requirement Required Materials Cooldown information

Use different GUI themes/visuals for each element.

========================================

  1. ELEMENT LEADERBOARD

Keep the admin/player leaderboard system.

Command:

/element leaderboard

Show:

Player Element TR Element XP Abilities Unlocked Element Tasks Completed Element Kills

Sort by TR first and XP second.

========================================

  1. ADMIN COMMANDS

KEEP THE ADMIN COMMAND SYSTEM.

Create permission-based admin commands.

Examples:

/element set <player> <element> /element roll <player> /element tr <player> <number> /element xp <player> <amount> /element reset <player> /element info <player> /element leaderboard /element reload

IMPORTANT:

Players cannot use admin commands unless they have the required permission.

Admin commands can manually assign an element even though normal players receive their element through the roll system.

========================================

  1. PLAYER COMMANDS

Create useful player commands:

/element /element info /element abilities /element roll

If the player already has a permanent element, /element roll must NOT randomly replace it unless an admin resets the player's element first.

========================================

  1. ELEMENT ROLL GUI

Create a visually impressive roll animation.

Show all five elements:

πŸŒͺ️ Air πŸ’§ Water πŸͺ¨ Earth πŸ”₯ Fire ⚑ Lightning

Display their actual chances:

Air: 39.68% Water: 31.75% Earth: 19.84% Fire: 7.94% Lightning: 0.79%

Animate the selection before revealing the final result.

========================================

  1. PLAYER DATA

Save:

UUID

Element

TR

Element XP

Unlocked abilities

Completed tasks

Element kills

Cooldowns if necessary

Use PersistentDataContainer and/or YAML/JSON/database storage.

Data must survive:

server restart

player logout

player rejoin

========================================

  1. COOLDOWNS

Every ability needs a cooldown.

Show cooldown messages such as:

"Ability is on cooldown: 4.2 seconds"

Prevent ability spam.

========================================

  1. PERMISSIONS

Create permissions such as:

elemental.admin elemental.use elemental.leaderboard

Protect admin commands properly.

========================================

  1. CONFIGURATION

Create config.yml containing configurable:

Roll chances

Ability damage

Ability cooldowns

TR XP requirements

Material requirements

Task requirements

Messages

Do not hard-code everything.

========================================

  1. PROJECT STRUCTURE

Create a complete Maven project:

ElementalSMP/ β”œβ”€β”€ pom.xml β”œβ”€β”€ src/ β”‚ └── main/ β”‚ β”œβ”€β”€ java/ β”‚ β”‚ └── com/ β”‚ β”‚ └── elementalsmp/ β”‚ β”‚ β”œβ”€β”€ ElementalSMP.java β”‚ β”‚ β”œβ”€β”€ commands/ β”‚ β”‚ β”œβ”€β”€ elements/ β”‚ β”‚ β”œβ”€β”€ abilities/ β”‚ β”‚ β”œβ”€β”€ tr/ β”‚ β”‚ β”œβ”€β”€ gui/ β”‚ β”‚ β”œβ”€β”€ data/ β”‚ β”‚ β”œβ”€β”€ tasks/ β”‚ β”‚ β”œβ”€β”€ listeners/ β”‚ β”‚ └── utils/ β”‚ └── resources/ β”‚ β”œβ”€β”€ plugin.yml β”‚ └── config.yml

========================================

  1. PAPER COMPATIBILITY

Target:

Paper 1.21.11 Java 21

Use modern Paper/Bukkit APIs compatible with Paper 1.21.11.

Avoid deprecated APIs whenever possible.

========================================

  1. CODE QUALITY

The plugin must compile without errors.

Do not provide pseudocode.

Do not leave TODO sections.

Do not use fake methods.

Every referenced class and method must exist.

Register all:

commands

listeners

managers

abilities

GUIs

Handle null values safely.

========================================

  1. FINAL BUILD

Provide the COMPLETE source code for every file.

Then provide:

  1. Folder structure
  1. Complete pom.xml
  1. Complete plugin.yml
  1. Complete config.yml
  1. Every Java class
  1. How to compile
  1. Where the generated .jar will appear
  1. How to install the .jar into the Paper server
  1. Required Java version
  1. All commands
  1. All permissions
  1. Testing instructions

The final plugin must be a COMPLETE playable Elemental SMP system for Paper 1.21.11.

MOST IMPORTANT RULES:

ONLY 5 elements

No Light element

No Dark element

No Element Slash

No elemental weapons

Players cannot manually choose their element

Normal players receive their element through weighted rolling

Roll chances total exactly 100%

10 TR per element

50 total abilities

Every TR must have different progression

Admin commands remain available

Save player data permanently

All abilities must actually function

Plugin must compile for Paper 1.21.11

Kodari AI
KodariSep 16 at 9:17 am 3
ElementalSMP
A comprehensive Paper plugin implementing a 5-element progression system with weighted random element assignment, 50 unique abilities across 10 TR levels per element, persistent player data storage, elemental combat interactions, GUI-based progression tracking, leaderboards, and admin management tools. Features balanced cooldowns, configurable roll chances, and distinct progression paths for Air, Water, Earth, Fire, and Lightning elements.
  1. Create the Maven/Paper project metadata and default configuration.

  2. Add the five-element model, persistent player data, weighted rolling, and TR progression.

  3. Add all 50 abilities with cooldowns, combat effects, activities, and listeners.

  4. Add commands, status/roll GUIs, permissions, and registration in the main plugin class.

Implemented the complete ElementalSMP Paper plugin project.

Project structure

Plain Text
ElementalSMP/
β”œβ”€β”€ pom.xml
└── src/
    └── main/
        β”œβ”€β”€ java/com/elementalsmp/
        β”‚   β”œβ”€β”€ ElementalSMP.java
        β”‚   β”œβ”€β”€ abilities/
        β”‚   β”‚   β”œβ”€β”€ Ability.java
        β”‚   β”‚   β”œβ”€β”€ AbilityCatalog.java
        β”‚   β”‚   └── AbilityManager.java
        β”‚   β”œβ”€β”€ commands/
        β”‚   β”‚   └── ElementCommand.java
        β”‚   β”œβ”€β”€ data/
        β”‚   β”‚   β”œβ”€β”€ DataManager.java
        β”‚   β”‚   └── PlayerData.java
        β”‚   β”œβ”€β”€ elements/
        β”‚   β”‚   β”œβ”€β”€ Element.java
        β”‚   β”‚   └── ElementManager.java
        β”‚   β”œβ”€β”€ gui/
        β”‚   β”‚   β”œβ”€β”€ ElementGUI.java
        β”‚   β”‚   └── RollGUI.java
        β”‚   β”œβ”€β”€ listeners/
        β”‚   β”‚   β”œβ”€β”€ GuiListener.java
        β”‚   β”‚   └── PlayerListener.java
        β”‚   β”œβ”€β”€ tasks/
        β”‚   β”‚   └── ActivityListener.java
        β”‚   └── tr/
        β”‚       └── ProgressionManager.java
        └── resources/
            β”œβ”€β”€ config.yml
            └── plugin.yml

Included systems

  • Exactly five elements:

    • Air

    • Water

    • Earth

    • Fire

    • Lightning

  • Weighted permanent element rolls:

    • Air: 39.68%

    • Water: 31.75%

    • Earth: 19.84%

    • Fire: 7.94%

    • Lightning: 0.79%

  • Animated element roll GUI

  • Persistent player data in:

    • plugins/ElementalSMP/players.yml

    • PersistentDataContainer values

  • 10 TR levels per element

  • 50 total abilities

  • Ability cooldowns

  • Element-specific damage, particles, sounds, movement, healing, resistance, knockback, lightning, fire, and area effects

  • Element XP and TR progression

  • Element-specific task requirements

  • Material requirements for every TR

  • Element status GUI

  • Ability unlock display

  • Element leaderboard

  • Admin commands

  • Player commands

  • Configurable roll chances, XP, materials, tasks, damage, cooldowns, and messages

Abilities

Fire

Plain Text
Flame Shot
Fire Dash
Flame Wall
Burning Ground
Fire Chain
Inferno Strike
Meteor Flame
Dragon Breath
Inferno Storm
Fire Apocalypse

Water

Plain Text
Water Shot
Water Dash
Healing Wave
Water Prison
Water Blade
Tsunami Strike
Whirlpool
Ocean Shield
Sea Storm
Ocean Apocalypse

Air

Plain Text
Wind Shot
Air Dash
Wind Push
Air Blade
Wind Cage
Tornado
Sky Jump
Cyclone
Storm Field
Heaven's Storm

Earth

Plain Text
Stone Shot
Earth Dash
Stone Wall
Earth Spike
Rock Armor
Ground Slam
Earthquake
Mountain Fist
Titan Armor
Earth Cataclysm

Lightning

Plain Text
Spark Shot
Lightning Dash
Thunder Strike
Chain Lightning
Thunder Cage
Storm Spear
Thunder Rain
Lightning Storm
Godspeed
Thunder Apocalypse

No elemental weapons or Element Slash system was added.

Compile

Required:

Plain Text
Java 21
Maven 3.9+

Build the plugin:

Shell
mvn clean package

Generated JAR:

Plain Text
target/ElementalSMP-1.0.0.jar

Installation

  1. Compile the project.

  2. Copy:

Plain Text
target/ElementalSMP-1.0.0.jar

into:

Plain Text
plugins/
  1. Start or restart a Paper 1.21.11 server.

  2. Players without an element automatically receive the animated roll GUI when joining.

Player commands

Plain Text
/element
/element info
/element info <player>
/element abilities
/element roll
/element cast <ability>
/element leaderboard

Example:

Plain Text
/element cast flame_shot
/element cast fire dash

Admin commands

Requires elemental.admin.

Plain Text
/element set <player> <air|water|earth|fire|lightning>
/element roll <player>
/element tr <player> <1-10>
/element xp <player> <amount>
/element reset <player>
/element info <player>
/element leaderboard
/element reload

Permissions

Plain Text
elemental.use
elemental.leaderboard
elemental.admin

Defaults:

Plain Text
elemental.use          true
elemental.leaderboard  true
elemental.admin        op

Testing checklist

  1. Join with a new player and confirm the roll GUI appears.

  2. Confirm the result displays one of the five allowed elements.

  3. Relog and restart the server to verify the element remains saved.

  4. Open /element and verify:

    • Element

    • TR

    • XP

    • Tasks

    • Element kills

    • Unlocked abilities

    • Next TR requirement

  5. Test an unlocked ability with /element cast <ability>.

  6. Cast it again immediately and verify the cooldown message.

  7. Use /element set as an administrator to test each element.

  8. Test XP and TR progression using:

Plain Text
/element xp <player> 5000
/element tr <player> 10
  1. Test /element leaderboard.

  2. Verify normal players cannot use administrative commands.

Kodari can make mistakes. Review important code before using.
Files
src
pom.xml
Code
18 932
src/main/java/com/elementalsmp/ElementalSMP.java
package com.elementalsmp;

import com.elementalsmp.abilities.AbilityManager;
import com.elementalsmp.commands.ElementCommand;
import com.elementalsmp.data.DataManager;
import com.elementalsmp.elements.ElementManager;
import com.elementalsmp.gui.ElementGUI;
import com.elementalsmp.gui.RollGUI;
import com.elementalsmp.listeners.GuiListener;
import com.elementalsmp.listeners.PlayerListener;
import com.elementalsmp.tasks.ActivityListener;
import com.elementalsmp.tr.ProgressionManager;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public class ElementalSMP extends JavaPlugin {
    private DataManager dataManager;
    private ElementManager elementManager;
    private ProgressionManager progressionManager;
    private AbilityManager abilityManager;
    private ElementGUI elementGUI;
    private RollGUI rollGUI;
    private NamespacedKey elementKey;
    private NamespacedKey trKey;
    private NamespacedKey xpKey;
    private NamespacedKey abilityKey;

    @Override public void onEnable() {
        saveDefaultConfig();
        elementKey = new NamespacedKey(this, "element"); trKey = new NamespacedKey(this, "tr"); xpKey = new NamespacedKey(this, "xp"); abilityKey = new NamespacedKey(this, "ability");
        dataManager = new DataManager(this); elementManager = new ElementManager(this, dataManager); progressionManager = new ProgressionManager(this, dataManager); abilityManager = new AbilityManager(this, dataManager); elementGUI = new ElementGUI(this); rollGUI = new RollGUI(this);
        Bukkit.getPluginManager().registerEvents(new PlayerListener(this), this); Bukkit.getPluginManager().registerEvents(new ActivityListener(this, dataManager), this); Bukkit.getPluginManager().registerEvents(new GuiListener(this), this);
        ElementCommand command = new ElementCommand(this); getCommand("element").setExecutor(command); getCommand("element").setTabCompleter(command);
        getLogger().info("ElementalSMP enabled with 5 elements and 50 abilities.");
    }

    @Override public void onDisable() { if (dataManager != null) dataManager.saveAll(); }
    public String message(String key) { return ChatColor.translateAlternateColorCodes('&', getConfig().getString("messages." + key, "")); }
    public DataManager getDataManager() { return dataManager; }
    public ElementManager getElementManager() { return elementManager; }
    public ProgressionManager getProgressionManager() { return progressionManager; }
    public AbilityManager getAbilityManager() { return abilityManager; }
    public ElementGUI getElementGUI() { return elementGUI; }
    public RollGUI getRollGUI() { return rollGUI; }
    public NamespacedKey elementKey() { return elementKey; }
    public NamespacedKey trKey() { return trKey; }
    public NamespacedKey xpKey() { return xpKey; }
    public NamespacedKey abilityKey() { return abilityKey; }
}