.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:

  1. A player must write and sign a book.
  2. Once signed, that book becomes linked to the player who signed it.
  3. This represents the player “signing their life away.”
  4. If another player has that signed book in their inventory, they are allowed to permanently kill the signer.
  5. 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.
  6. 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.

Kodari AI
KodariJul 1 at 4:47 pm 1

I’ll create the SignedLifeBook plugin - a custom hardcore-lite mechanic using signed books.

SignedLifeBook
A Bukkit/Spigot plugin where players can only be permanently killed if another player holds their signed life book in their inventory. Players remain in Survival mode until permanently killed via their signed book. Features configurable death actions (Spectator, Ban, or custom command), broadcast messages, and anti-copy protection using PersistentDataContainer UUID storage to prevent faking.

The plugin is ready to build. Here’s how it works:

Flow:

  1. A player signs a book → their UUID is injected into the book’s PersistentDataContainer (immune to renaming/duping)

  2. If another player holds that signed book and kills the signer → permanent death

  3. Without the book → normal Survival death, player respawns as usual

Config options:

  • death-action: SPECTATOR (default), BAN, or COMMAND

  • allow-copies: false (copies lack PDC data, so they naturally won’t count)

  • broadcast-on-kill: true with customizable message using %player% and %killer% placeholders

  • custom-command: runs on permanent death with %player%/%killer% placeholders

Key design decisions:

  • UUID stored via PDC, not in visible book text — can’t be bypassed by renaming or copying in an anvil

  • Copies from crafting tables create fresh ItemStacks without PDC data, so they never count (regardless of the config toggle)

  • Admin /lifebook give <player> command to create a signed life book for any player

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 397
src/main/java/com/example/signedlifebook/SignedLifeBook.java
package com.example.signedlifebook;

import com.example.signedlifebook.commands.LifeBookCommand;
import com.example.signedlifebook.config.ConfigManager;
import com.example.signedlifebook.listeners.BookListener;
import com.example.signedlifebook.managers.BookManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class SignedLifeBook extends JavaPlugin {

    private static SignedLifeBook instance;
    private ConfigManager configManager;
    private BookManager bookManager;

    @Override
    public void onEnable() {
        instance = this;

        saveDefaultConfig();

        configManager = new ConfigManager(this);
        bookManager = new BookManager(this);

        Bukkit.getPluginManager().registerEvents(new BookListener(this), this);

        getCommand("lifebook").setExecutor(new LifeBookCommand(this));

        getLogger().info("SignedLifeBook enabled - players can now sign their lives away!");
    }

    @Override
    public void onDisable() {
        getLogger().info("SignedLifeBook disabled.");
    }

    public static SignedLifeBook getInstance() {
        return instance;
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public BookManager getBookManager() {
        return bookManager;
    }
}