warriorplayz359
  1. Blood Night System

๐Ÿ” Cycle Logic

Blood Night should happen only every 5th night

Example:

Night 1 โ†’ Normal

Night 2 โ†’ Normal

Night 3 โ†’ Normal

Night 4 โ†’ Normal

Night 5 โ†’ Blood Night

Then repeat

โŒ Current Problem

Every night is becoming Blood Night

โœ… Correct Behavior

Track night count using a counter

Only when counter = 5 โ†’ trigger Blood Night

Then reset counter back to 0

๐ŸŒŒ Blood Night Effects

During Blood Night:

Sky should turn red

Send message:

"โš  Blood Night has begun!"

Add:

Red particles

Dark atmosphere (optional)

Increase difficulty (optional):

More mob spawn

More damage

  1. Soul System

โค๏ธ Souls (Lives System)

Every player has 5 Souls

โš” Kill Rules

Normal kill โ†’ victim loses 1 Soul

Blood Night kill โ†’ victim loses 2 Souls

๐Ÿ”„ Soul Transfer System (IMPORTANT)

When Player A kills Player B:

Player B loses souls

Player A gains those souls

โ— NO ITEM DROP

โ— Souls are NOT physical items

โŒ Current Problems

Souls dropping as items

Souls being consumable

โœ… Correct Behavior

Souls stored in:

Player data (config/database)

No inventory items involved

  1. Death System

๐Ÿ’€ On Player Death

Reduce soul count based on:

Normal โ†’ -1

Blood Night โ†’ -2

โš  If Souls = 0

You can choose:

Ban player temporarily OR

Put player in spectator OR

Keep them at 0 but weak

(You can decide this later)

  1. Respawn System

๐Ÿ”„ After Death

Player respawns normally

If Player Has Souls Left

Just respawn normally

If Player Has No Power (no shard logic here)

Just normal respawn (your shard plugin will handle items)

  1. First Join System

๐ŸŽฌ First Time Join

Detect if player is new

๐ŸŽ‰ On First Join

Play animation:

Particles around player

Titles on screen

Show message:

"Welcome to the server!"

โŒ Current Problem

Animation repeating again and again

โœ… Fix

Add check:

hasJoinedBefore = true

Run animation ONLY ONCE

  1. Join/Rejoin System

๐Ÿ” When Player Rejoins

DO NOT:

Give rewards again

Play animation again

Only:

Load player data (souls etc.)

  1. Data System (VERY IMPORTANT)

Store player data like:

Souls count

First join status

Example Data: player: souls: 5 first_joined: true

  1. System Messages

Make everything feel clean:

On Kill:

"You stole 1 soul!"

"You stole 2 souls! (Blood Night)"

On Death:

"You lost a soul!"

On Blood Night:

"โš  Blood Night has begun!"

  1. Main Fix Summary

Your plugin must fix:

โŒ Blood Night happening every night

โŒ Souls dropping as items

โŒ Souls being consumable

โŒ Join animation looping

โŒ No data tracking

โœ… Final Behavior

โœ” Blood Night only every 5th night โœ” Souls stored in system (not items) โœ” Souls transfer directly to killer โœ” First join animation runs once โœ” Clean messages โœ” Stable multiplayer system

Kodari AI
KodariMar 18 at 1:35 pm 15,426 (v2)

Iโ€™ll create a Blood Night and Soul system plugin that properly tracks nights, manages souls as data (not items), and handles first-join animations.

BloodNightSouls
A hardcore survival plugin featuring a 5-night cycle Blood Night system where the sky turns red and combat becomes more intense. Players have souls (lives) that are lost on death and transferred to their killer. Normal deaths cost 1 soul, Blood Night deaths cost 2 souls. Includes first-join welcome animations, persistent data storage, and configurable death penalties when players run out of souls.

Iโ€™ll build this system with proper night cycle tracking, soul data storage, and one-time join animations.

System created with proper cycle tracking, soul data storage, and one-time join animations. Blood Night triggers only every 5th night, souls transfer directly between players as data (no items), and first-join animations play once per player.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
16 686
src/main/java/com/bloodnightsouls/BloodNightSouls.java
package com.bloodnightsouls;

import com.bloodnightsouls.commands.BloodNightCommand;
import com.bloodnightsouls.commands.SetSoulsCommand;
import com.bloodnightsouls.commands.SoulsCommand;
import com.bloodnightsouls.data.DataManager;
import com.bloodnightsouls.listeners.PlayerDeathListener;
import com.bloodnightsouls.listeners.PlayerJoinListener;
import com.bloodnightsouls.listeners.TimeChangeListener;
import com.bloodnightsouls.managers.BloodNightManager;
import com.bloodnightsouls.managers.JoinManager;
import com.bloodnightsouls.managers.SoulManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class BloodNightSouls extends JavaPlugin {
    private DataManager dataManager;
    private BloodNightManager bloodNightManager;
    private SoulManager soulManager;
    private JoinManager joinManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.dataManager = new DataManager(this);
        this.dataManager.load();
        
        this.bloodNightManager = new BloodNightManager(this);
        this.soulManager = new SoulManager(this);
        this.joinManager = new JoinManager(this);
        
        Bukkit.getPluginManager().registerEvents(new PlayerDeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new TimeChangeListener(this), this);
        
        getCommand("souls").setExecutor(new SoulsCommand(this));
        getCommand("setsouls").setExecutor(new SetSoulsCommand(this));
        getCommand("bloodnight").setExecutor(new BloodNightCommand(this));
        
        getLogger().info("BloodNightSouls has been enabled!");
    }

    @Override
    public void onDisable() {
        if (this.dataManager != null) {
            this.dataManager.save();
        }
        getLogger().info("BloodNightSouls has been disabled!");
    }
}