HomeJavaModsdel
del
️ SagaRepair Plugin User Manual
Modern Minecraft Item Repair Plugin Based on PDC Data-Driven Technology

Plugin Introduction
SagaRepair is an advanced item repair plugin designed specifically for Minecraft Paper 1.20.1 servers. It uses PDC (PersistentDataContainer) data-driven technology to provide a complete custom item durability system for servers, supporting intelligent repair interfaces, drag-and-drop repair, custom repair tools, and other advanced features.

Core Features
Core Function Modules
✨ PDC-Driven Durability System
️ Intelligent Item Protection System
Multi-Mode Repair System
Complete Command System
Command System Details
Complete Command List
Command Function Description Permission Required Usage Example
/srr repairgui Open repair interface sagarepair.use Open directly, no need to hold item
/srr info View held item PDC information sagarepair.use Shows durability, protection status, etc.
/srr help Display help information sagarepair.use Shows available commands based on permissions
/srr reload Reload all configuration files sagarepair.reload Hot reload config without server restart
/srr setdurability <max_durability> Initialize complete PDC data for held item sagarepair.admin /srr setdurability 100
/srr removedurability <amount> Reduce durability of held item sagarepair.admin /srr removedurability 10
/srr settool <repair_points> Set held item as custom repair tool sagarepair.admin /srr settool 50
Command Aliases
/srr # Main alias (recommended)
/sagarepair # Full name

⚡ Intelligent Tab Completion System
Permission System Details
Permission Node Default Permission Function Scope
sagarepair.use ✅ All players Basic functions: repair, view info, help
sagarepair.admin Administrators Admin functions: set durability, create tools, remove durability
sagarepair.reload Administrators Reload configuration files
Complete Item Repair Guide
Method 1: GUI Repair Interface (Recommended for beginners)
┌─────────────────────────────────┐
│ ️ Repair Interface Layout │
├─────────────────────────────────┤
│ [ ] [ ] [ ] │
│ [ ] [] [ ] ← Repair Slot │
│ [ ] [ ] [ ] │
│ [ ] [] [ ] ← Material Slot │
│ [ ] [ ] [ ] │
│ [ ] [✅] [ ] ← Confirm Button │
└─────────────────────────────────┘

Detailed Operation Steps
Step 1: Open Repair Interface

/srr repairgui

New Feature: No need to hold item, can open repair interface directly

Step 2: Place Item to Repair

Step 3: Place Repair Materials

Step 4: Execute Repair

⚡ Method 2: Drag-and-Drop Repair (Advanced users)
Inventory Drag-and-Drop Repair
Operation: Hold repair tool → Drag to target item
Use Case: Quick repair without opening GUI
Technical Requirement: SWAP_WITH_CURSOR mouse operation

Operation Steps:

  1. Hold repair material or custom repair tool
  2. Find the item that needs repair in inventory
  3. ️ Use mouse to drag repair tool onto target item
  4. ⚡ System automatically executes repair and consumes materials
️ GUI Drag-and-Drop Repair
Operation: Drag directly onto item in repair GUI
Use Case: Quick repair in GUI, skip confirmation step
Special Advantage: Supports safe operation of zero-durability items

Operation Steps:

  1. Open repair GUI (/srr repairgui)
  2. Place item to repair in repair slot
  3. Hold repair tool and drag directly onto item in repair slot
  4. ⚡ Complete repair immediately without clicking confirm
Repair Completion Effects
Item Information Viewing System
PDC Data Viewing
Basic Operation
  1. Hold Target Item

    # Hold the item you want to view

  2. Execute View Command

    /srr info

  3. View Detailed Information
    System will display complete PDC data information
Information Display Content
Data Item Display Content Description
Durability Info Current/Max Durability (Percentage) Real-time PDC durability data
️ Protection Status Protected / Unprotected Whether PDC protection mechanism is enabled
Broken Status Broken / Normal Current item usage status
Repair Material Material Type x Quantity Materials required for traditional repair
⭐ Repairability Repairable / Cannot Repair Whether contains complete PDC data
No PDC Data Prompt
⚠️ This item has no PDC durability data
Only items containing PDC data can use repair functions

Repair Interface Details
️ Intelligent GUI Design
┌─────────────────────────────────────────┐
│ ️ SagaRepair Repair Interface - Player Name │
├─────────────────────────────────────────┤
│ [] [] [] │
│ [] [] [] ← Repair Item Slot │
│ [] [] [] (Yellow glass pane hint) │
│ [] [] [] ← Repair Material Slot │
│ [] [] [] (Green glass pane hint) │
│ [] [✅] [] ← Confirm Repair Button │
└─────────────────────────────────────────┘

Slot Function Details
Repair Item Slot (Slot 11)
Repair Material Slot (Slot 15)
✅ Confirm Repair Button (Slot 22)
️ Safety Guarantee Mechanisms
Item Safety System
Special Support for Zero-Durability Items
️ Custom Repair Tool System
⭐ What are Custom Repair Tools?
Custom repair tools are special items created by administrators using Base64 serialization technology, with the following characteristics:

Administrator Creation Guide
Creation Steps
Step 1: Prepare Item

# Hold any item as repair tool template
# Recommend using items with special appearance or names

Step 2: Execute Creation Command

/srr settool <repair_points>

# Examples:
/srr settool 50 # Create tool that repairs 50 durability points
/srr settool 100 # Create tool that repairs 100 durability points
/srr settool 25 # Create tool that repairs 25 durability points

Step 3: Confirm Creation Result

Technical Features
Technical Feature Implementation Advantage
Data Storage Base64 Serialization Completely saves all item attributes
Recognition Mechanism Byte-level precise comparison 100% accurate tool recognition
Configuration Management tool.yml dynamic configuration Supports hot reload and batch management
Compatibility Paper API standard Perfect compatibility with all Paper servers
Player Usage Guide
️ GUI Usage
  1. Open Repair Interface: /srr repairgui
  2. Place Repair Item: Drag to repair slot
  3. ⭐ Place Custom Tool: Drag to material slot
  4. ✅ Confirm Repair: Click green button
⚡ Drag Quick Repair
  1. Hold Custom Tool
  2. ️ Drag to Target Item: Directly drag onto item that needs repair
  3. ⚡ Complete Immediately: System automatically executes repair
Intelligent Consumption Mechanism
⚙️ Configuration System Details
Configuration File Structure
SagaRepair uses a multi-file configuration system to ensure functional modularity and easy management:

plugins/SagaRepair/
├── config.yml # Main configuration file
├── message.yml # Message configuration file
├── debugmessage.yml # Debug message configuration
└── tool.yml # Custom tool configuration (auto-generated)

Main Configuration File (config.yml)
Complete Configuration Example
Message Configuration File (message.yml)
Message Configuration Structure
Configuration Hot Reload
Use the following command to hot reload all configuration files:

/srr reload

Reload Scope:

PlaceholderAPI Integration
Supported Placeholders
SagaRepair fully integrates with PlaceholderAPI, providing dedicated %ssr_% placeholder series:

SagaRepair Dedicated Placeholders
️ Placeholder Function Description Use Case Example Value
%ssr_current% Current durability value Display item current durability 85
%ssr_max% Maximum durability value Display item maximum durability 100
%ssr_percentage% Durability percentage Display durability percentage 85.0
%ssr_protected% Protection status Display item protection status Protected/Unprotected
%ssr_broken% Broken status Display item broken status Normal/Broken
%ssr_repair_material% Repair material Display required repair material IRON_INGOT
%ssr_repair_count% Repair count Display required repair quantity 3
%ssr_durability_format% Formatted durability display Complete durability information 85/100 (85.0%)
%ssr_status% Comprehensive status Overall item status Normal/Low Durability/Broken
General PlaceholderAPI Placeholders
Also supports all standard PlaceholderAPI placeholders:

️ Placeholder Function Description Use Case
%player_name% Player name GUI title, message personalization
%player_displayname% Player display name Support nickname systems
%server_name% Server name Multi-server environment identification
%server_online% Online player count Server status display
Configuration Examples
Using SagaRepair Placeholders in GUI Title
gui:
title: "&6Repair Interface - &e%player_name% &7| &bDurability: %ssr_durability_format%"
enable_papi: true

Using SagaRepair Placeholders in Messages
repair:
success: "&a %player_name% repair successful! Durability restored to %ssr_durability_format%"
status_check: "&7Item status: %ssr_status% &8| &7Protection: %ssr_protected%"

item_info:
ssr_examples:
current: "&7Current durability: &f%ssr_current%"
max: "&7Maximum durability: &f%ssr_max%"
percentage: "&7Durability percentage: &f%ssr_percentage%&7%"
full_format: "&7%ssr_durability_format% &8| %ssr_status%"

Actual Display Effects
⚙️ Technical Implementation
Technical Features
PDC Data-Driven Technology
PDC Key-Value Specifications
// Unified naming prefix: sagarepair_pdc_
public static final NamespacedKey DURABILITY = new NamespacedKey(plugin, "sagarepair_pdc_durability");
public static final NamespacedKey MAX_DURABILITY = new NamespacedKey(plugin, "sagarepair_pdc_max_durability");
public static final NamespacedKey PROTECTED = new NamespacedKey(plugin, "sagarepair_pdc_protected");
public static final NamespacedKey BROKEN = new NamespacedKey(plugin, "sagarepair_pdc_broken");
public static final NamespacedKey REPAIR_MATERIAL = new NamespacedKey(plugin, "sagarepair_pdc_repair_material");
public static final NamespacedKey REPAIR_COUNT = new NamespacedKey(plugin, "sagarepair_pdc_repair_count");

Data Management Advantages
Modern API Usage
Adventure API Integration
// Using Adventure API to handle text components
Component message = Component.text("Repair successful!")
.color(NamedTextColor.GREEN)
.decoration(TextDecoration.BOLD, true);
player.sendMessage(message);

Paper API Features
⚠️ Important Notes
Item Requirements
Repair Material Types
  1. Traditional Repair Materials
    • Each item has specific repair material requirements
    • Material type and quantity can be viewed in item information
    • Corresponding amount of materials will be consumed during repair
  2. Custom Repair Tools
    • Special repair items created by administrators
    • Have fixed repair points
    • Can repair any item that supports repair
Permission Instructions
Frequently Asked Questions
Q: Why can't my item be repaired?
A: Please check the following points:

Q: What to do if repair interface won't open?
A: The new version repair interface can be opened directly without holding items:

Q: What to do if drag repair doesn't work?
A: Please confirm the following operations:

Q: What to do if items disappear after closing GUI?
A: The new version has completely solved this problem:

Q: How to obtain repair materials?
A: There are two types of repair materials:

  1. Traditional Repair Materials: Regular Minecraft items
    • Mining and gathering
    • Trading with other players
    • Purchasing from shops
  2. Custom Repair Tools: Created by administrators
    • Contact server administrators to obtain
    • Participate in server activities to get
Q: Will items disappear when damaged?
A: No! Protected items will not disappear when damaged:

Q: What to do if zero-durability items cannot be operated?
A: The new version perfectly supports zero-durability items:

Usage Tips
Practical Suggestions
  1. Regular Equipment Inspection
    • Use /srr info to regularly check equipment durability
    • Repair in time when durability is low
    • Pay attention to ActionBar low durability warnings
  2. Prepare Repair Materials
    • Prepare commonly used repair materials in advance
    • Recommend storing some repair materials at base
    • Apply to administrators for custom repair tools
  3. Reasonable Equipment Usage
    • Avoid unnecessary equipment wear
    • Perform repair operations in safe places
    • Zero-durability items can also be safely repaired
Repair Process Optimization
⚡ Quick Repair Tips
  1. Drag Repair
    • Drag repair tools directly onto items in inventory
    • Drag repair in GUI without clicking confirm
    • Suitable for quick repair of single items
  2. Batch Repair
    • Use repair GUI to repair multiple items one by one
    • Prepare sufficient repair materials
    • Use custom repair tools to improve efficiency
️ Safe Repair
  1. Zero-Durability Item Repair
    • Open repair GUI directly without worrying about item movement
    • Supports drag repair of zero-durability items
    • Repair process is completely safe
  2. Item Safety Guarantee
    • Items automatically return when closing GUI
    • Items drop with notification when inventory is full
    • Items are not lost in case of disconnection and other exceptions
Material Management
  1. Traditional Materials
    • Understand repair material requirements for different items
    • Reasonably allocate and store repair materials
    • Use /srr info to check required materials
  2. Custom Tools
    • Apply to administrators for high repair point tools
    • Use reasonably to avoid wasting repair points
    • Can repair any PDC items
Advanced Gameplay
  1. Combined Repair Strategy
    • Use traditional materials for low-durability items
    • Use custom tools for high-value items
    • Use drag quick repair in emergency situations
  2. Team Cooperation
    • Team sharing of repair materials
    • Administrators distribute repair tools uniformly
    • Establish team repair stations

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

del is a free Minecraft Java mod. Compatible with Minecraft 1.20, 1.20.6, 1.21. Downloaded 184 times (via Spigot). Download it and open it directly in the game.

Explore more