.seba1982

Minecraft custom mod concept: “Signed Life Book”

The server stays in normal Survival mode for everyone. No one is in Hardcore by default.

Core mechanic:

A player can only be permanently killed if another player has a signed book from them in their inventory.

How it works:

A player must write and sign a book.

Once signed, that book becomes linked to the player who signed it.

This represents the player “signing their life away.” If another player has that signed book in their inventory, they are allowed to permanently kill the signer.

If the signer dies to that player while the killer has their signed book, the signer is treated like Hardcore mode: they are permanently dead or banned/spectator.

If the killer does not have the signer’s signed book, the death is normal Survival and the player respawns.

Important rules:

The signed book must clearly store the signer’s UUID, not just their username.

Only the original signed book should count.

Copies should either not work or should be configurable.

The killer must have the book in their inventory at the moment of the kill.

Everyone remains in Survival mode until they are permanently killed.

Permanent death should probably change the player to Spectator mode or ban them, depending on server config.

Optional config:

Enable/disable book copies counting.

Choose what happens after permanent death: Spectator, ban, or custom command.

Broadcast a message when someone is permanently killed.

Prevent players from renaming fake books to bypass the system. and make sure it doesnt clear people

Kodari AI
KodariJul 2 at 3:57 pm 1

I’ll create a plugin where players can “sign their life away” into a book, giving others the power to permanently kill them.

SignedLifeBook
A unique survival server plugin that adds a hardcore-style mechanic through signed books. Players can sign a book to link it to their life. If another player holds that signed book and kills the signer, the signer faces permanent consequences (spectator mode, ban, or custom action). Normal deaths without the book present result in standard survival respawn. Fully configurable with copy protection, broadcast messages, and permanent death handling options.

Let me create the full project structure.

I’ll create the Signed Life Book plugin - a survival server plugin where signed books become linked to a player’s life, allowing holders to permanently kill them.

SignedLifeBook
A unique survival server plugin adding a hardcore-style mechanic through signed books. Players sign a book to link it to their life. If another player holds that signed book and kills the signer, the signer faces permanent consequences (spectator mode, ban, or custom command). Normal deaths without the book present result in standard survival respawn. Fully configurable with copy protection, broadcast messages, and permanent death handling options.
.seba1982

make the name signedlifebook-1.0.2

Kodari AI
KodariJul 2 at 3:58 pm 1

build.gradle now builds signedlifebook-1.0.2.jar:

  • archiveBaseName = 'signedlifebook'

  • version = '1.0.2'

  • Output JAR: signedlifebook-1.0.2.jar

.seba1982

make sure that it doesnt ban ppl when the person who killed them doesnt have the book in their inventory

Kodari AI
KodariJul 2 at 3:59 pm 1

The code already handles this correctly. Here’s the death flow:

Line 51: if (!bookManager.hasLifeBook(killer, victim.getUniqueId())) return;

When a player dies:

  1. If no killer → normal death (respawn as usual)

  2. If killer == victim → normal death

  3. If killer doesn’t have the signed book → return — exits the method entirely, never reaches handlePermanentDeath()

  4. Only if killer does have the book → permanent death triggers

No changes needed — the guard clause at line 51 ensures that without the book in the killer’s inventory, the death proceeds as a standard Survival death with normal respawn.

.seba1982

and remove the custom death messege and turn them into spectator and kick them

Kodari AI
KodariJul 2 at 4:01 pm 1

Now let me clean up the config to remove the unused options

Now I’ll strip out the unused config options:

.seba1982

make sure that the person killed keeps their items on death when keep inventory is on but if its off the items should drop like a pinatha

Kodari AI
KodariJul 4 at 8:24 am 1

This is already how the plugin works — the code never touches event.getDrops() or item handling, so it respects the default Minecraft behavior:

  • keepInventory = true → player keeps all items, gets set to spectator and kicked

  • keepInventory = false → items drop to the ground normally (piñata-style)

No changes needed.

.seba1982

change the nake to lifebook-1.0.3

Kodari AI
KodariJul 4 at 8:26 am 1

Now let me update the plugin name references

JAR name is already updated. Let me also update the plugin name and class references to match.

Now I’ll rename the package from com.example.signedlifebook to com.example.lifebook and the main class to LifeBook:

Now update the main class name and internal references:

Now update the class name and all internal references

One more permission reference to fix in AdminCommand:

All done. The JAR builds as lifebook-1.0.3.jar with:

  • Package: com.example.lifebook

  • Main class: LifeBook

  • Permission node: lifebook.admin

  • Plugin name: LifeBook

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
9 518
src/main/java/com/example/lifebook/LifeBook.java
package com.example.lifebook;

import com.example.lifebook.commands.AdminCommand;
import com.example.lifebook.commands.LifeBookCommand;
import com.example.lifebook.config.ConfigManager;
import org.bukkit.plugin.java.JavaPlugin;

public class LifeBook extends JavaPlugin {

    private BookManager bookManager;
    private ConfigManager configManager;

    @Override
    public void onEnable() {
        configManager = new ConfigManager(this);
        bookManager = new BookManager(this);

        getServer().getPluginManager().registerEvents(bookManager, this);
        getServer().getPluginManager().registerEvents(new CombatListener(this, bookManager, configManager), this);

        getCommand("lifebook").setExecutor(new LifeBookCommand(this, bookManager));
        getCommand("lifebookadmin").setExecutor(new AdminCommand(this, configManager));
    }

    @Override
    public void onDisable() {
    }

    public BookManager getBookManager() {
        return bookManager;
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }
}