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.
- 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
Each crafted copper weapon has configurable roll chances for special 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)
- 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)
The Copper Kingdom now embraces ancient magic, grounding, and healing lore that activates under specific conditions:
- 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
- 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 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
[Copper Ingot]
[Copper Ingot]
[Stick]
[Copper Ingot][Copper Ingot]
[Copper Ingot][Stick]
[ ][Stick]
[Copper Ingot][Copper Ingot][Copper Ingot]
[ ][Stick][ ]
[ ][Stick][ ]
[Copper Ingot][Copper Ingot][Copper Ingot]
[Leather ][ ][Leather ]
[ ][ ][ ]
[Copper Ingot][ ][Copper Ingot]
[Copper Ingot][Leather ][Copper Ingot]
[Copper Ingot][Copper Ingot][Copper Ingot]
[Copper Ingot][Copper Ingot][Copper Ingot]
[Leather ][ ][Leather ]
[Copper Ingot][ ][Copper Ingot]
[ ][ ][ ]
[Leather ][ ][Leather ]
[Copper Ingot][ ][Copper Ingot]
- Download the latest JAR from the releases
- Place in your server's
plugins/directory - Restart your server
- Configure settings in
plugins/CopperKingdom/config.yml
Requirements:
- Java 25+
- Maven 3.6+
- Docker (optional, for testing)
git clone <repository-url>
cd copper-kingdom
make setup # Set up development environment
make build # Build the plugin
make dev # Build, install, and restart servermake 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/copperkingdom give <item>- Give yourself a copper weapon or armor piece/copperkingdom help- Show command help
/copperkingdom blessed <weapon>- Give yourself a blessed copper weapon/copperkingdom test <type>- Test lore mechanics (copperblocks, storm, lightning)/copperkingdom reload- Reload plugin configuration
copper_sword- Copper sword with enchantment rollscopper_axe- Copper axe with enchantment rollscopper_pickaxe- Copper pickaxe with enchantment rolls
copper_helmet- Copper helmet with enchantment rollscopper_chestplate- Copper chestplate with enchantment rollscopper_leggings- Copper leggings with enchantment rollscopper_boots- Copper boots with enchantment rolls
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- Start the server:
make start - Connect to
localhost:25565 - Get materials:
/give @p minecraft:copper_ingot 64 - Get crafting materials:
/give @p minecraft:stick 64and/give @p minecraft:leather 64 - Craft weapons and armor or use:
/copperkingdom give copper_swordor/copperkingdom give copper_helmet
make test # Run unit tests
make docker-test # Test in Docker container
make validate # Run full validation suitesrc/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
Test the plugin in a containerized environment:
make docker-build # Build Docker image with plugin
make docker-test # Run automated Docker testsThe Docker setup includes:
- Paper 26.1.2 server
- Geyser + Floodgate for Bedrock compatibility
- ViaVersion for cross-version support
- Automatic plugin installation
make debug # Run debug script
./debug-plugin.sh status # Check plugin status
./debug-plugin.sh logs # Check plugin logs
./debug-plugin.sh compile # Test compilationmake lint # Check shell scripts with shellcheck
make format # Format Java code (if configured)
make validate # Run linting and tests- Paper API: 26.1.2 build 74 stable
- Java: 21+
- Maven: 3.6+
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests:
make validate - Submit a pull request
Follow the development standards in CONTRIBUTING-ai-plugin-dev.md.
This project is licensed under the GNU Affero General Public License v3.0 or later.
Current version: 0.1.1
Compatible with:
- Minecraft Java Edition 1.21+
- Paper 26.1.2+
- Java 25+
Built with ⚒️ for the Minecraft community