LifeAndRebirth
Claim this plugin
This plugin was imported from Spiget and is currently unclaimed.
Plugin Information
Description
=== PLUGIN: Life and Rebirth === --- SERVER SETTINGS --- - Max 10 players on the server - On first server start, generate a flat 4x4 chunk safe spawn point at world origin --- LIFE SYSTEM --- - Every player starts with 4 lives (stored persistently in a config/database) - Lives are represented as a custom item called "Life" (use a red dye or heart-shaped item with custom name "&cLife" and lore "&7A soul bound to your fate") - When a player dies, they lose 1 life. The life item drops at the death location as a physical item that: - NEVER despawns - CANNOT be destroyed (fire, lava, void, explosions, etc.) - CAN be picked up by ANY player (not just the owner) - The life item is NOT consumed when picked up — it remains as a physical item in the picker's inventory - Display the original owner's name in the item lore (e.g. "&7Owner: &f[PlayerName]") - If a player loses all 4 lives, they are permanently banned with message: "&4You have lost all your lives. You are banished." - Life items are UNSTACKABLE (max stack size 1) - Life items CANNOT be placed in Ender Chests or Shulker Boxes --- LIFE DEPOSIT / WITHDRAW SYSTEM --- - Players can withdraw a life using command: /life withdraw - Removes 1 life from their stored count and gives them a Life item - Cannot withdraw if they only have 1 life remaining (minimum 1 must stay stored) - Players can deposit a life using command: /life deposit (while holding a Life item) - Adds 1 life to their stored count and removes the item - Can ONLY deposit their OWN life item (checked via owner NBT tag in lore) - Cannot deposit someone else's life item — message: "&cThis life does not belong to you." --- REBIRTH BOOK --- - Custom item called "Rebirth Book" (use a writable book item with custom name "&5Rebirth Book" and lore "&7The power to restore a banished soul.") - UNSTACKABLE (max stack size 1) - CANNOT be placed in Ender Chests or Shulker Boxes - Crafting Recipe (shaped): [Life] [Totem of Undying] [Life] [Totem of Undying] [Heart of the Sea] [Totem of Undying] [Life] [Totem of Undying] [Life] - SERVER-WIDE LIMIT: Only 10 Rebirth Books can ever be crafted in total across the entire server lifetime (tracked persistently) - PER-PLAYER LIMIT: Each player can craft a maximum of 3 Rebirth Books total (tracked persistently) - If either limit is reached, the crafting attempt is cancelled with a message explaining why --- REBIRTH STRUCTURE --- - 10 structures total generate across the world (done once on first server start or via admin command /liferebirth generatestructures) - 4 in Overworld (one directly beneath the spawn point underground, 3 random locations spread far apart) - 3 in Nether (random locations spread far apart) - 3 in The End (random locations spread far apart) - Each structure is a 2x2 chunk (32x32 block) building: - Built from dimension-appropriate blocks: - Overworld: Stone bricks, mossy stone bricks, deepslate, iron bars - Nether: Nether bricks, blackstone, crying obsidian, nether brick fences - End: Purpur blocks, end stone bricks, obsidian, end rods - FULLY INDESTRUCTIBLE (all blocks are unbreakable, explosions have no effect) - Has exactly ONE entrance (a doorway, no door — just an opening) - Interior contains a LECTERN placed prominently in the center - The structure should be atmospheric — dark, enclosed, mysterious - Structures are tracked persistently (locations saved to config) --- REBIRTH MECHANIC --- - To use a Rebirth Book, a player must: 1. Take a Rebirth Book (writable book item) 2. Write the EXACT username of the player they want to revive inside the book 3. Place the book on the Lectern inside one of the Rebirth Structures (ONLY works on structure lecterns — placing on any other lectern does nothing) - When the book is placed on a structure Lectern: - Read the written player name from the first page of the book CASE 1 — Player is NOT banned: - The book stays on the lectern and remains fully editable (players can open it and change the name) - Message to the placer: "&cThis soul has not yet been banished. The book awaits their fate." - No book is consumed, no structure is affected CASE 2 — Player IS banned: - The Rebirth Book is consumed (removed from the lectern) - The named banned player is unbanned - They are given 4 fresh lives - Any of their old Life items still in the world are deleted/removed - The entire structure vanishes (all blocks removed, replaced with air) - The Lectern is removed - Broadcast to server: "&5[PlayerName] has been reborn. The shrine has crumbled." - The unbanned player gets a message on next login: "&aYou have been reborn. You have 4 lives." CASE 3 — Player name in book doesn't exist / is invalid: - Book stays on the lectern, editable - Message to placer: "&cNo soul found by that name." - Rebirth Books placed on NON-structure lecterns: - Are immediately returned to the player's inventory - Message: "&cThis is not a sacred shrine. The book has no power here." --- COMMANDS --- - /life withdraw — withdraw 1 life as an item - /life deposit — deposit held life item - /life check [player] — check your own or another player's life count (op only for others) - /liferebirth generatestructures — (op only) manually trigger structure generation - /liferebirth status — (op only) show how many structures remain, rebirth books crafted, banned players
Minecraft Plugin Badges
Use these badge images in docs, README files, or forum posts.