Create a highly advanced, fully optimized, and lightweight plugin (in Java for the Paper/Purpur engine) or an extensive script (in Skript) that brings the core gameplay mechanics of Rust into Minecraft. This project is dedicated to a hardcore, small-scale survival server with a maximum of 20 players online simultaneously. The entire codebase must be written completely from scratch (no external mechanic plugins) and include a clean, customizable configuration section at the top of the file for easy balancing (HP values, messages, damage outputs, etc.).
Implement the following modules and mechanics according to these strict specifications:
1. ADMIN-COMMAND SYSTEM (/shmc) & WORLD MANAGEMENT:
- Create a primary admin command: `/shmc ` which spawns specific resources exactly at the administrator's current location (X, Y, Z).
- Supported Loot Crates: `Militarycrate`, `Box`, `Toolbox`, `Airdrop`. Once emptied by a player, these crates must not respawn automatically (no auto-respawn).
- Supported Resource Nodes: `zelazo` (Iron), `wegiel` (Coal), `drewno` (Wood), `zloto` (Gold), `miedz` (Copper), `diamenty` (Diamonds), `emeraldy` (Emeralds). These spawned blocks must have their own individual custom Health Points (HP). Hitting a resource node with an appropriate tool damages the block's HP and gradually rewards the player with resources. The resource yield depends on the tool used (every item deals different damage to the resource block). Once the node's HP hits 0, the block disappears (no auto-respawn).
- Economy Currency: The Netherite item (ingot/scrap) is entirely repurposed as "Scrap" and serves as the sole currency for technological research and blueprint unlocking.
2. WORKBENCH SYSTEM (LEVELS 1-3) & TECH TREE CRAFTING:
- Implement a physical, evolutionary crafting bench system that players must upgrade in the world:
* Level 1 Workbench: A standard Minecraft Crafting Table. Allows crafting basic items (e.g., Bow, Bandage) and features an upgrade option to Level 2 in exchange for a configured amount of Scrap.
* Level 2 Workbench: Upon upgrading, the physical block in the world changes into a Fletching Table. It unlocks mid-tier recipes (e.g., Crossbow) and an upgrade option to Level 3.
* Level 3 Workbench: Upon upgrading, the physical block changes into a Smithing Table. It unlocks top-tier advanced raiding items (e.g., C4).
- Blueprint System & Team Sharing: To craft advanced items, a player must first unlock its Blueprint at the corresponding Workbench level by spending Scrap. Once a player unlocks a Blueprint, that specific recipe is instantly and automatically unlocked for all current members of their Clan (team).
3. CLAN SYSTEM (Clans):
- Implement a lightweight, command-only team system with the following syntax:
* `/klan stworz` - creates a new clan.
* `/klan dodaj ` - invites a player to the clan.
* `/klan dolacz ` - accepts a pending invitation to join.
* `/klan opusc` - leaves the current clan.
* `/klan wyrzuc ` - kicks a member (clan leader only).
- Clan members must have PvP completely disabled between each other (Friendly Fire = OFF).
4. TOOL CUPBOARDS (TC) & BASE MAINTENANCE (UPKEEP):
- A physical Barrel block serves as the Szafa Narzędziowa / Tool Cupboard (TC). Right-clicking the barrel opens a custom chest-style INVENTORY GUI showing the base status, required maintenance resources, and protected time remaining.
- Protection Zone & Particles: The TC projects a protection radius around the base. Authenticated players inside their own TC zone will constantly see ambient particle effects outlining the boundaries of their claimed land. If the TC barrel is destroyed, the building protection instantly vanishes, allowing any outsider to build in that area.
- Upkeep Mechanic: Players must place specific building materials (repurposed MC ores) inside the TC barrel to prevent base decay. If the TC runs out of upkeep materials, the base begins to decay. Every 5 minutes without upkeep, the base structural blocks lose HP. For every additional 5-minute interval that passes without upkeep, this periodic decay damage scaling increases by +1 HP (e.g., 0-5 mins: -1 HP per cycle, 5-10 mins: -2 HP, 10-15 mins: -3 HP, and so on).
5. BUILDING PLAN, HAMMER & STRUCTURAL HP:
- Players are strictly forbidden from placing normal blocks directly from their inventory. Building is done exclusively using a custom item named "Building Plan". While holding this item, players can select a structure piece to place (Wall, Foundation, Stairs, Ladder, Door, Ceiling). Placing any basic structure costs exactly 20 units of the required raw material.
- A newly placed structure piece defaults to Wood tier and has exactly 10 HP.
- A custom "Hammer" item is used to upgrade placed structures by consuming materials (upgrading costs exactly 20 units of the upgrade material):
* Upgrading to Stone tier increases the block's maximum health to 250 HP.
* Upgrading to Metal tier increases the block's maximum health to 500 HP.
- Bossbar UI: When a player looks directly at any structural base block, a custom Bossbar must appear at the top of their screen, displaying the structural block type and its current/maximum health (e.g., "Stone Wall [250/250 HP]").
- Door Security: Iron Doors are placed as structural elements and open normally via manual player interaction, but this interaction is strictly hard-locked against unauthorized outsiders. They can ONLY be opened by players who are actively authenticated in that specific base's Tool Cupboard (TC).
6. RAIDING SYSTEM (C4):
- Create an item named "C4". Placing it on a wall or foundation converts the item into a custom skull/head block textured like a TNT block, "snapping" and sticking directly onto the targeted surface.
- Once deployed, a 10-second fuse countdown triggers. Every second, the system must play a rhythmic Minecraft XP pickup sound, replicating the ticking noise of a live explosive.
- Exactly at the 10-second mark, a detonation occurs. The explosion deals exactly 200 HP damage EXCLUSIVELY to the specific structural block it was attached to. To ensure high server performance, it must not trigger generic environment-destroying block explosions.
7. SLEEPERS & DEATH MECHANICS:
- When a player logs out of the server, their character does not disappear from the world. A "Sleeper" (an NPC or an entity carrying the logged-out player's exact armor and inventory) spawns at their log-out coordinates.
- Sleepers are never automatically cleared or despawned by the server – they remain in the game world permanently until killed or looted. Other players can freely search, loot, or execute a sleeping body.
- If a sleeper is killed, the owner must be notified upon logging back in via a large on-screen Title message: "Zostałeś zabity podczas snu przez [Killer_Name]" (You were killed while sleeping by [Killer_Name]) and they must respawn fresh with an empty inventory.
- Death Crates: When a live player dies or their sleeping body is executed, a physical storage chest spawns at the death site containing their entire inventory. This chest has no ownership locks (anyone can open it) and never despawns automatically (no auto-despawn).
- Respawining: Upon dying, players respawn at their placed and claimed Minecraft Bed (acting as a Rust sleeping bag). If they do not have a valid bed, they respawn at a random map spawn location (the beach).
8. REGENERATION, RADIATION ZONES (Building Blocked) & COMBAT BALANCING:
- The entire server world is a mandatory, ruthless PvP zone. There are no safezones, no compasses, and no coordinate displays visible on the players' action bars.
- Completely disable natural health regeneration from food saturation. The only method of healing is using a custom "Bandage" item – using it triggers a brief interactive delay/countdown, after which a fixed amount of HP is restored.
- All firearms are completely disabled. The only available ranged weapons are:
* Modified Bow: Deals a hard-coded, flat damage of exactly 10 HP per hit.
* Modified Crossbow: Deals a hard-coded, flat damage of exactly 15 HP per hit.
- Radiation Management: Admins can manually define a 3D radioactive cuboid strefa using the command: `/shmc radiacja `.
- Inside any defined radiation zone, a strict building ban is automatically applied (Building Blocked status) – players cannot place any foundations or structures within these boundaries.
- Entering a radiation zone without a complete, green-dyed leather armor set (acting as a Hazmat Suit - the player must wear all 4 pieces: helmet, chestplate, leggings, and boots) results in severe, continuous, and periodic health point (HP) loss until the player exits or dies.