Overview
This prompt aims to guide developers in creating a Minecraft Spigot plugin that enhances gameplay with a new spear weapon. Programmers and Minecraft server administrators will benefit from the detailed implementation instructions and requirements.
Prompt Overview
Purpose: This plugin introduces a new spear weapon with enhanced abilities for Minecraft players.
Audience: It is designed for Minecraft developers and players interested in custom gameplay mechanics.
Distinctive Feature: The spear allows players to dash and deal damage while providing beneficial potion effects.
Outcome: Players will enjoy a unique combat experience with strategic movement and enhanced power in battles.
Quick Specs
- Media: Text
- Use case: Content Creation, Generation, Planning & Strategy
- Industry: Content & Media Creation, Cryptocurrency & Blockchain, Inventory Management
- Techniques: Plan-Then-Solve, Role/Persona Prompting, Structured Output
- Models: Claude 3.5 Sonnet, Gemini 2.0 Flash, GPT-4o, Llama 3.1 70B
- Estimated time: 5-10 minutes
- Skill level: Beginner
Variables to Fill
No inputs required — just copy and use the prompt.
Example Variables Block
No example values needed for this prompt.
The Prompt
Create a Minecraft Spigot plugin compatible with version 1.12.2 that introduces a new spear weapon resembling the original spear from version 1.21, but with additional features.
**Requirements:**
– The spear can be crafted using:
– 2 sticks
– 1 dragon egg
– The spear functionality mirrors the original 1.21 spear with enhancements:
– Every 10 seconds, the player can perform a dash by right-clicking, propelling them forward 6 blocks and dealing 6 hearts (12 HP) of damage to any entity hit, regardless of the entity’s armor.
– Holding the spear in the player’s main hand grants:
– Strength I
– Regeneration I
– These effects are active only while the spear is held (not when in the inventory).
– Right-clicking functionality:
– Primary right-click action remains as usual (e.g., blocking with the spear).
– Secondary right-click action triggers the dash (with a 10-second cooldown).
– The shield action is considered the third; ensure that it does not interfere with the spear’s right-click abilities.
**Implementation Details:**
– Include crafting recipe registration for the spear with the specified materials.
– Implement cooldown logic of 10 seconds between dashes.
– Ensure damage dealt by the dash ignores armor reductions.
– Apply and remove Strength I and Regeneration I potion effects dynamically based on whether the spear is held in the main hand.
– Prioritize smooth integration with existing game mechanics and respect 1.12.2 Spigot API constraints.
– Provide error-free, clean, and well-commented Java source code for the plugin.
**Steps:**
1. Define the custom spear item resembling the 1.21 spear.
2. Register the crafting recipe: 2 sticks + 1 dragon egg.
3. Monitor player interactions to detect right-click with the spear in hand.
4. Implement a cooldown timer for the dash ability.
5. On dash, propel the player forward 6 blocks and deal fixed 6 hearts damage to any entity hit, ignoring armor.
6. Apply Strength I and Regeneration I potion effects when the spear is held in the main hand; remove when not.
7. Manage right-click event so primary, secondary (dash), and shield actions do not conflict.
8. Test the plugin in a 1.12.2 Spigot server environment to ensure correct behavior.
**Output Format:**
Provide the complete Java source code for the plugin, including:
– The main plugin class with proper event handlers.
– Item and recipe registration code.
– All necessary imports and package declarations.
– Comments explaining key implementation parts.
Ensure the code compiles cleanly under Spigot 1.12.2 and adheres to good coding practices.
Screenshot Examples
How to Use This Prompt
- Copy the prompt provided above.
- Paste it into your coding environment or text editor.
- Follow the requirements and steps outlined in the prompt.
- Write the Java source code for the Spigot plugin.
- Test the plugin on a Minecraft 1.12.2 Spigot server.
- Ensure the code is clean and well-commented.
Tips for Best Results
- Define the Spear Item: Create a custom item that resembles the original spear from version 1.21.
- Register Crafting Recipe: Implement a crafting recipe using 2 sticks and 1 dragon egg for the spear.
- Implement Right-Click Functionality: Manage primary, secondary (dash), and shield actions without conflicts.
- Apply Potion Effects Dynamically: Grant Strength I and Regeneration I while the spear is held, removing effects when not in hand.
FAQ
- What materials are needed to craft the new spear?
You need 2 sticks and 1 dragon egg to craft the spear. - How often can the spear's dash ability be used?
The dash ability can be used every 10 seconds. - What effects does holding the spear grant the player?
Holding the spear grants Strength I and Regeneration I effects. - Does the dash ability ignore armor when dealing damage?
Yes, the dash ability ignores armor reductions when dealing damage.
Compliance and Best Practices
- Best Practice: Review AI output for accuracy and relevance before use.
- Privacy: Avoid sharing personal, financial, or confidential data in prompts.
- Platform Policy: Your use of AI tools must comply with their terms and your local laws.
Revision History
- Version 1.0 (February 2026): Initial release.


