rainylife

Plugins name Core SMP

is a hardcore plugin that automatically sets the server to hardcore mode when installed. The main command is /coreSMP <player name> and it is available for all players. A player cannot add their own name, only other players’ names. You can add up to 5 player names at once, but you can run the command multiple times to add more players.

If a player does not run this command, they will be put into a freeze mode where they cannot move, cannot attack, cannot be attacked, and cannot interact, but they can still see everything.

When the command is executed, the player becomes soulbound with the selected players. The HUD immediately updates and shows the player information in blue color, the number of linked players in red color, and a soul-type symbol between them. This indicates how many players are connected. In this system, if one soulbound player dies, all linked players die automatically.

Phase 1 is always active by default and cannot be turned off. It starts when the coreSMP command is used and represents the soulbound system.

When Phase 1 starts, a title message appears saying “Phase 1 Has Started” and a subtitle appears in two parts. The first subtitle gives a basic introduction of the phase, and the second subtitle shows a message like “Good luck for your new journey, survive.”

Phase 2 is controlled by the admin. The admin must first set a reward using the command /face2 reward set and then activate it using /face2 on. It can also be turned off using /face2 off. Rewards are always one-time only. Once a reward is given, it must be set again if needed.

In Phase 2, passive mobs will attack the player only if the player attacks them first. Hostile mobs that already attack players will have their damage slightly increased by 0.5 percent. Passive mobs will deal a small fixed damage.

When Phase 2 starts, a title message appears saying “Phase 2 Has Started” in black color and a red subtitle explains what Phase 2 does. A boss bar appears with a red and black theme showing “Phase 2.” This text may repeat multiple times during the phase.

Phase 3 is also admin controlled and follows the same command system: /face3 reward set, /face3 on, and /face3 off.

In Phase 3, all soulbound players become fully synced. This means their inventory, damage, and other stats are shared. Everything becomes common between them.

Phase 4 introduces a new system called energy. It uses the same command structure: /face4 reward set, /face4 on, and /face4 off.

In Phase 4, the soulbound HUD changes to an energy system. The player has a maximum energy of 500. Energy slowly regenerates when the player is standing still. Every action such as breaking blocks, placing blocks, crafting, running, swimming, riding, or wearing items consumes energy.

If a player runs out of energy, they cannot move, cannot break blocks, cannot craft, and cannot perform any actions. They must wait to regenerate energy.

Additionally, soulbound players are connected with a chain system that limits their distance to 1000 blocks. If they move farther than this limit, they are automatically teleported back to spawn. A warning message is shown in the boss bar.

All phases share the same structure for titles and subtitles. When a phase starts, a title appears in black color and a subtitle appears in red color explaining the phase. When a phase ends, an ending animation plays with a completion or congratulation message.

When a phase ends, all players are teleported to spawn. Random particle effects appear on each player such as rings, glow, aura, or spell-like visuals. These particles last for about 3 to 5 seconds and then disappear. All players receive the same reward that was set for that phase.

There is also a task system controlled by the admin. The admin can assign a task using: /task <player name> <prompt>

Before assigning the task, the admin must set the reward using: /taskbook reward set <player name>

This reward is also one-time only.

When a task is assigned, a book is automatically given to the player. At that moment, a fire ring particle appears around the player, a totem pop sound plays, and a title message appears saying that the player has received a task book.

The task is written inside the book, and the reward is always written on the third page of the book.

When the player completes the task and right-clicks the book, a message appears saying the task is completed and they can claim the reward. On right-click, the book disappears and the reward is given to the player along with particle effects and sound.

Finally, when any mob dies, a smooth and clean death animation is shown. This animation includes soft glowing particles, a gentle falling motion, and a small sparkle effect, making the death look visually pleasing and polished.

This is the complete Core SMP concept with all systems including commands, phases, rewards, tasks, HUD, boss bar, animations, and energy mechanics working together logically.

Kodari AI
KodariApr 5 at 12:41 pm 28,088 (v2)

I’ll create a comprehensive hardcore SMP plugin with soulbound mechanics, multiple phases, energy system, and task management.

CoreSMP
A hardcore SMP plugin featuring a soulbound system where linked players share life and death. Includes four progressive phases with unique mechanics: Phase 1 (soulbound linking), Phase 2 (enhanced mob combat), Phase 3 (full player sync), and Phase 4 (energy system with distance limits). Features freeze mode for unlinked players, task book system, custom HUD and boss bars, phase completion rewards, and smooth mob death animations.

Project created! CoreSMP is a comprehensive hardcore SMP plugin featuring:

Core Features:

  • Soulbound system where linked players share life and death

  • Freeze mode for unlinked players (cannot move/interact until linked)

  • 4 progressive phases with unique mechanics

  • Energy system (Phase 4) with regeneration and consumption

  • Distance limits with chain mechanics

  • Task book system with custom rewards

  • Custom HUD and boss bar displays

  • Smooth mob death animations

All Commands Implemented:

  • /coresmp <players> - Link up to 5 players (can run multiple times)

  • /face2 on/off/reward set - Control Phase 2 (enhanced mob combat)

  • /face3 on/off/reward set - Control Phase 3 (full player sync)

  • /face4 on/off/reward set - Control Phase 4 (energy system)

  • /task <player> <prompt> - Assign tasks

  • /taskbook reward set <player> - Set task rewards

Phase Mechanics:

  • Phase 1: Always active, soulbound system

  • Phase 2: Passive mobs retaliate, hostile mobs +0.5% damage

  • Phase 3: Inventory/damage/stats fully synced

  • Phase 4: Energy system (500 max), distance limit (1000 blocks)

All managers, listeners, commands, and data classes properly implemented with full XSeries cross-version support!

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
31 1,608
src/main/java/com/yourname/coresmp/CoreSMP.java
package com.yourname.coresmp;

import com.yourname.coresmp.commands.CoreSMPCommand;
import com.yourname.coresmp.commands.Phase2Command;
import com.yourname.coresmp.commands.Phase3Command;
import com.yourname.coresmp.commands.Phase4Command;
import com.yourname.coresmp.commands.TaskCommand;
import com.yourname.coresmp.commands.TaskBookCommand;
import com.yourname.coresmp.listeners.BlockBreakListener;
import com.yourname.coresmp.listeners.BlockPlaceListener;
import com.yourname.coresmp.listeners.CraftItemListener;
import com.yourname.coresmp.listeners.EntityDamageByEntityListener;
import com.yourname.coresmp.listeners.EntityDamageListener;
import com.yourname.coresmp.listeners.EntityDeathListener;
import com.yourname.coresmp.listeners.InventoryClickListener;
import com.yourname.coresmp.listeners.PlayerDeathListener;
import com.yourname.coresmp.listeners.PlayerInteractListener;
import com.yourname.coresmp.listeners.PlayerJoinListener;
import com.yourname.coresmp.listeners.PlayerMoveListener;
import com.yourname.coresmp.managers.BossBarManager;
import com.yourname.coresmp.managers.DeathAnimationManager;
import com.yourname.coresmp.managers.EnergyManager;
import com.yourname.coresmp.managers.FreezeManager;
import com.yourname.coresmp.managers.ParticleManager;
import com.yourname.coresmp.managers.PhaseManager;
import com.yourname.coresmp.managers.RewardManager;
import com.yourname.coresmp.managers.SoulboundManager;
import com.yourname.coresmp.managers.TaskManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

public class CoreSMP extends JavaPlugin {

    @Getter
    private PhaseManager phaseManager;

    @Getter
    private SoulboundManager soulboundManager;

    @Getter
    private FreezeManager freezeManager;

    @Getter
    private EnergyManager energyManager;

    @Getter
    private TaskManager taskManager;

    @Getter
    private RewardManager rewardManager;

    @Getter
    private BossBarManager bossBarManager;

    @Getter
    private ParticleManager particleManager;

    @Getter
    private DeathAnimationManager deathAnimationManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        // Initialize managers
        this.phaseManager = new PhaseManager(this);
        this.soulboundManager = new SoulboundManager(this);
        this.freezeManager = new FreezeManager(this);
        this.energyManager = new EnergyManager(this);
        this.taskManager = new TaskManager(this);
        this.rewardManager = new RewardManager(this);
        this.bossBarManager = new BossBarManager(this);
        this.particleManager = new ParticleManager(this);
        this.deathAnimationManager = new DeathAnimationManager(this);

        // Register commands
        getCommand("coresmp").setExecutor(new CoreSMPCommand(this));
        getCommand("face2").setExecutor(new Phase2Command(this));
        getCommand("face3").setExecutor(new Phase3Command(this));
        getCommand("face4").setExecutor(new Phase4Command(this));
        getCommand("task").setExecutor(new TaskCommand(this));
        getCommand("taskbook").setExecutor(new TaskBookCommand(this));

        // Register listeners
        getServer().getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerMoveListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerDeathListener(this), this);
        getServer().getPluginManager().registerEvents(new EntityDamageListener(this), this);
        getServer().getPluginManager().registerEvents(new EntityDamageByEntityListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerInteractListener(this), this);
        getServer().getPluginManager().registerEvents(new InventoryClickListener(this), this);
        getServer().getPluginManager().registerEvents(new BlockBreakListener(this), this);
        getServer().getPluginManager().registerEvents(new BlockPlaceListener(this), this);
        getServer().getPluginManager().registerEvents(new CraftItemListener(this), this);
        getServer().getPluginManager().registerEvents(new EntityDeathListener(this), this);

        getLogger().info("CoreSMP has been enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("CoreSMP has been disabled!");
    }
}