Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🏰 Copper Kingdom

A Minecraft plugin that introduces copper-based weapons with unique properties and enchantment rolls. Designed for Paper 26.1.2+, the plugin focuses on low durability, high-damage copper gear, with chances for rare lucky enhancements.

✨ Features

  • New Copper Weapons: Copper Sword, Copper Axe, and Copper Pickaxe
  • New Copper Armor: Copper Helmet, Copper Chestplate, Copper Leggings, and Copper Boots
  • Enchantment Roll System: Random chances for special enchantments when crafting
  • Custom Crafting Recipes: Uses copper ingots with sticks (weapons) or leather (armor)
  • Lucky Enhancements: High durability, poison effects, bonus damage, enhanced protection, speed boost, and thorns
  • Configurable Properties: Fully customizable via config.yml
  • Developer Commands: Easy testing and debugging tools

🎲 Enchantment System

Each crafted copper weapon has configurable roll chances for special enhancements:

Weapon Enhancements

  • High Durability: 3x base durability (default 10% chance for swords)
  • Poison on Hit: Applies poison effect to enemies (default 5% chance for swords)
  • Bonus Damage: Additional attack damage (default 15% chance for swords)

Armor Enhancements

  • Enhanced Protection: 1.5x base durability + extra armor points (default 8-12% chance)
  • Speed Boost: Temporary speed effect when taking damage (default 5-15% chance)
  • Thorns Effect: Reflects damage back to attackers (default 2-10% chance)

🌟 Mythic Copper Lore Mechanics

The Copper Kingdom now embraces ancient magic, grounding, and healing lore that activates under specific conditions:

⚕️ Healing & Regeneration

  • Sunrise Regeneration: Players holding copper weapons receive Regeneration I during sunrise (23000-1000 world time)
  • Blessed Variants: 5% chance when crafting to create blessed weapons that cleanse poison and wither from nearby allies (5-block radius)
  • Ancient Healing: Blessed copper weapons provide protective aura to teammates

🌍 Grounding & Earth Connection

  • Copper Block Resistance: Standing within 5 blocks of copper blocks while holding copper weapons grants Resistance I
  • Crop Fertility: Buried copper blocks (underground) accelerate crop growth within 3-block radius by 30%
  • Earth Grounding: Copper weapons recharge durability slowly when near copper blocks (0.01 per tick chance)

⛈️ Storm & Lightning Mastery

  • Storm Bonus: 20% extra damage during rain, 50% extra damage during thunderstorms
  • Lightning Strike: Right-click with copper weapons to strike lightning at target location (10-minute cooldown)
  • Electric Conductivity: Lightning strikes deal 6 damage in 2-block radius
  • Storm Recharge: Copper tools near copper blocks restore durability faster during storms

🧱 Crafting Recipes

Weapons

Copper Sword

[Copper Ingot]  
[Copper Ingot]  
[Stick]         

Copper Axe

[Copper Ingot][Copper Ingot]  
[Copper Ingot][Stick]         
[        ][Stick]         

Copper Pickaxe

[Copper Ingot][Copper Ingot][Copper Ingot]  
[        ][Stick][        ]  
[        ][Stick][        ]  

Armor

Copper Helmet

[Copper Ingot][Copper Ingot][Copper Ingot]  
[Leather     ][           ][Leather     ]  
[            ][           ][            ]  

Copper Chestplate

[Copper Ingot][           ][Copper Ingot]  
[Copper Ingot][Leather    ][Copper Ingot]  
[Copper Ingot][Copper Ingot][Copper Ingot]  

Copper Leggings

[Copper Ingot][Copper Ingot][Copper Ingot]  
[Leather     ][           ][Leather     ]  
[Copper Ingot][           ][Copper Ingot]  

Copper Boots

[            ][           ][            ]  
[Leather     ][           ][Leather     ]  
[Copper Ingot][           ][Copper Ingot]  

🛠️ Installation

  1. Download the latest JAR from the releases
  2. Place in your server's plugins/ directory
  3. Restart your server
  4. Configure settings in plugins/CopperKingdom/config.yml

🏗️ Building from Source

Requirements:

  • Java 25+
  • Maven 3.6+
  • Docker (optional, for testing)

Quick Start

git clone <repository-url>
cd copper-kingdom
make setup    # Set up development environment
make build    # Build the plugin
make dev      # Build, install, and restart server

Available Commands

make help           # Show all available commands
make build          # Build plugin JAR
make test           # Run unit tests
make start          # Start test server
make stop           # Stop test server
make restart        # Restart test server
make logs           # View server logs
make attach         # Attach to server console
make test-commands  # Show plugin test commands

🎮 Commands

Player Commands

  • /copperkingdom give <item> - Give yourself a copper weapon or armor piece
  • /copperkingdom help - Show command help

Admin Commands

  • /copperkingdom blessed <weapon> - Give yourself a blessed copper weapon
  • /copperkingdom test <type> - Test lore mechanics (copperblocks, storm, lightning)
  • /copperkingdom reload - Reload plugin configuration

Available Weapons

  • copper_sword - Copper sword with enchantment rolls
  • copper_axe - Copper axe with enchantment rolls
  • copper_pickaxe - Copper pickaxe with enchantment rolls

Available Armor

  • copper_helmet - Copper helmet with enchantment rolls
  • copper_chestplate - Copper chestplate with enchantment rolls
  • copper_leggings - Copper leggings with enchantment rolls
  • copper_boots - Copper boots with enchantment rolls

⚙️ Configuration

The plugin is fully configurable via config.yml:

weapons:
  copper_sword:
    base_damage: 7.0
    base_durability: 75
    display_name: "&6Copper Sword"
    
enchantments:
  copper_sword:
    high_durability: 10    # 10% chance
    poison_on_hit: 5       # 5% chance  
    bonus_damage: 15       # 15% chance
    
enhancements:
  high_durability_multiplier: 3.0
  poison_duration: 60
  bonus_damage_amount: 3.0

🧪 Testing

In-Game Testing

  1. Start the server: make start
  2. Connect to localhost:25565
  3. Get materials: /give @p minecraft:copper_ingot 64
  4. Get crafting materials: /give @p minecraft:stick 64 and /give @p minecraft:leather 64
  5. Craft weapons and armor or use: /copperkingdom give copper_sword or /copperkingdom give copper_helmet

Automated Testing

make test           # Run unit tests
make docker-test    # Test in Docker container
make validate       # Run full validation suite

📁 Project Structure

src/main/java/org/xpfarm/copperkingdom/
├── CopperKingdom.java           # Main plugin class
├── commands/
│   └── CopperKingdomCommand.java # Command handler
├── events/
│   ├── CraftingListener.java    # Crafting event handler
│   └── WeaponListener.java      # Weapon attack handler
├── items/
│   └── CopperWeapons.java       # Weapon creation and management
└── recipes/
    └── CopperRecipes.java       # Recipe registration

🐳 Docker Support

Test the plugin in a containerized environment:

make docker-build   # Build Docker image with plugin
make docker-test    # Run automated Docker tests

The Docker setup includes:

  • Paper 26.1.2 server
  • Geyser + Floodgate for Bedrock compatibility
  • ViaVersion for cross-version support
  • Automatic plugin installation

🔧 Development

Debug Commands

make debug          # Run debug script
./debug-plugin.sh status    # Check plugin status
./debug-plugin.sh logs      # Check plugin logs
./debug-plugin.sh compile   # Test compilation

Code Quality

make lint           # Check shell scripts with shellcheck
make format         # Format Java code (if configured)
make validate       # Run linting and tests

📦 Dependencies

  • Paper API: 26.1.2 build 74 stable
  • Java: 21+
  • Maven: 3.6+

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests: make validate
  5. Submit a pull request

Follow the development standards in CONTRIBUTING-ai-plugin-dev.md.

📄 License

This project is licensed under the GNU Affero General Public License v3.0 or later.

🏷️ Version

Current version: 0.1.1

Compatible with:

  • Minecraft Java Edition 1.21+
  • Paper 26.1.2+
  • Java 25+

Built with ⚒️ for the Minecraft community

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages