๐
1 file
8,076 chars
๐
pasted-code-1794846925325.txt
txt
314 lines
โถ
pasted-code-1794846925325.txt
txt
314 lines
# KODARI AI โ COMPLETE MINECRAFT THROWING DISCS PLUGIN
Develop a complete, fully functional Minecraft Paper plugin called **Throwing Discs**, compatible with Minecraft **1.21.11 and newer supported versions**.
This plugin recreates the newly announced Minecraft Throwing Discs gameplay feature using server-side plugin mechanics.
IMPORTANT: This is a SERVER PLUGIN, NOT A MOD. Do not use Forge, Fabric or NeoForge APIs.
# 1. FIVE THROWING DISCS
Create five different throwable discs:
1. Copper Throwing Disc
2. Iron Throwing Disc
3. Gold Throwing Disc
4. Diamond Throwing Disc
5. Netherite Throwing Disc
Every disc must have:
- A unique name and custom model.
- Its own texture.
- Unique material-based appearance.
- Custom item identification using PersistentDataContainer.
- Unique throwing and returning sounds.
- Custom particle effects.
- Individual statistics.
Use Minecraft-compatible custom item models and resource-pack assets.
# 2. THROWING MECHANICS
Players should be able to throw discs by right-clicking while holding them.
Implement these mechanics:
- Disc travels in the direction the player is looking.
- Disc uses a custom server-side projectile system.
- Disc rotates while flying to create a spinning animation.
- Disc can hit mobs and other players.
- Disc deals configurable damage.
- Disc produces particles and sound effects while travelling.
- Disc stops travelling after reaching its maximum distance.
- After reaching its maximum distance or hitting a target, it returns to its owner.
- Returning disc flies towards the owner's current position.
- When the disc reaches its owner, it returns to their inventory.
- If the inventory is full, safely drop the disc nearby.
- Disc must not be duplicated.
- Handle player death, disconnection, world changes and projectile cleanup safely.
Use an efficient projectile-tracking system without unnecessary repeating tasks.
# 3. DIFFERENT DISC STATISTICS
Each disc must have individual configurable statistics:
- Throwing speed
- Damage
- Maximum throwing distance
- Returning speed
- Cooldown
- Knockback strength
Make higher-tier discs generally stronger.
Suggested default balancing:
| Disc | Damage |
|---|---:|
| Copper | 3 |
| Iron | 4 |
| Gold | 4.5 |
| Diamond | 6 |
| Netherite | 8 |
All statistics must be configurable through config.yml.
# 4. THROWING ANIMATION
Create a proper spinning animation while the disc is flying.
Requirements:
- Disc rotates continuously during flight.
- Disc has a visually smooth returning animation.
- Different discs have appropriate visual effects.
- Use particles to make throwing visually appealing.
- Avoid excessive particles that could cause server lag.
# 5. EXACT CRAFTING RECIPES
Implement the following recipes using the actual Minecraft crafting system.
## A. Copper Throwing Disc
Crafting Table (3ร3):
- Top-middle: Copper Ingot
- Middle-left: Copper Ingot
- Middle-right: Copper Ingot
- Bottom-middle: Copper Ingot
All remaining slots empty.
Output: 1 Copper Throwing Disc.
## B. Iron Throwing Disc
Use the exact same pattern with four Iron Ingots.
Output: 1 Iron Throwing Disc.
## C. Gold Throwing Disc
Use the exact same pattern with four Gold Ingots.
Output: 1 Gold Throwing Disc.
## D. Diamond Throwing Disc
Use the exact same pattern with four Diamonds.
Output: 1 Diamond Throwing Disc.
IMPORTANT: Use the same plus-shaped arrangement for all four materials.
# 6. NETHERITE SMITHING UPGRADE
Netherite Throwing Disc MUST be obtained through the vanilla Smithing Table.
Do NOT create a normal crafting-table recipe for Netherite.
Use the actual vanilla Smithing Table with its three slots:
**Template slot:**
- Netherite Upgrade Smithing Template
**Equipment slot:**
- Diamond Throwing Disc
**Material slot:**
- Netherite Ingot
Output:
- 1 Netherite Throwing Disc.
Requirements:
- Register a proper SmithingTransformRecipe.
- Only accept the actual custom Diamond Throwing Disc.
- Do not accept ordinary diamonds or renamed items.
- Consume ingredients correctly according to vanilla smithing behaviour.
- Preserve appropriate custom metadata.
- Ensure the resulting item has the Netherite Throwing Disc identity and model.
- Prevent duplication exploits.
- Use the actual vanilla Smithing Table interface.
- Do not create a custom GUI for upgrading.
# 7. CUSTOM RESOURCE PACK
Generate a complete resource-pack structure containing all five disc textures and models.
Requirements:
- Copper Disc texture.
- Iron Disc texture.
- Gold Disc texture.
- Diamond Disc texture.
- Netherite Disc texture.
Each disc should look like a flat, circular throwing weapon.
Make the materials visually distinguishable:
- Copper: orange-brown metallic appearance.
- Iron: silver metallic appearance.
- Gold: bright golden appearance.
- Diamond: cyan-blue appearance.
- Netherite: dark metallic appearance.
Use proper Minecraft item model definitions and texture references compatible with the target Minecraft version.
No missing textures or broken model references.
Keep all assets organised inside the resource-pack folder.
# 8. COMMANDS
Implement these commands:
/discs
Displays plugin information.
/discs give [amount]
Gives a selected throwing disc.
/discs list
Displays all five available discs.
/discs reload
Reloads plugin configuration.
Requirements:
- Tab completion.
- Permission checks.
- Proper error messages.
- Console support where applicable.
# 9. PERMISSIONS
Create these permissions:
throwingdiscs.use
Allows players to throw discs.
throwingdiscs.craft
Allows players to craft discs.
throwingdiscs.give
Allows players to use the give command.
throwingdiscs.reload
Allows players to reload configuration.
throwingdiscs.admin
Grants administrative permissions.
Use sensible default permissions.
# 10. CONFIGURATION
Generate config.yml with the following settings:
- Enable/disable individual discs.
- Individual damage values.
- Throwing speed.
- Returning speed.
- Maximum distance.
- Cooldowns.
- Knockback.
- Throwing sounds.
- Returning sounds.
- Particle effects.
- Enable/disable individual crafting recipes.
- Enable/disable Netherite Smithing upgrade.
- Permission requirements.
- Debug mode.
All values should be configurable without editing Java source code.
# 11. TECHNICAL REQUIREMENTS
- Java-based Paper plugin.
- Minecraft 1.21.11+ compatibility.
- Maven project with pom.xml.
- Correct Paper API dependency.
- plugin.yml.
- config.yml.
- PersistentDataContainer for item identification.
- Proper event handling.
- Proper recipe registration.
- Proper projectile lifecycle management.
- No item duplication exploits.
- No unnecessary external dependencies.
- Clean and organised Java code.
- Proper error handling.
- Avoid deprecated APIs wherever possible.
If future Minecraft versions introduce breaking API changes, maintain compatibility through version-specific implementations where necessary.
# 12. PROJECT STRUCTURE
Generate a complete project with:
- src/main/java/
- plugin.yml
- config.yml
- pom.xml
- Resource pack folder
- Textures
- Models
- Item definitions
- README.md
# 13. README
Include:
- Installation instructions.
- How to install the resource pack.
- How to craft each disc.
- How to upgrade Diamond to Netherite.
- All available commands.
- All permissions.
- Configuration explanations.
# 14. FINAL DELIVERABLES
Generate the COMPLETE buildable Maven project.
Do not provide pseudocode.
Do not leave incomplete Java methods.
Do not skip any of the five discs.
Do not use fake crafting recipes.
Do not replace vanilla smithing with a custom GUI.
Before finishing:
1. Compile the complete project.
2. Fix all compilation errors.
3. Verify recipe registration.
4. Verify Netherite Smithing upgrade behaviour.
5. Verify custom item identification.
6. Verify throwing and returning mechanics.
7. Verify resource-pack references.
8. Ensure the plugin works on the specified Paper version.
The final output must contain the complete source code and all required assets, ready to build and install on a Paper server.
KodariMon at 4:36 pm 1
ThrowingDiscs
A complete Paper plugin implementing five throwable discs (Copper, Iron, Gold, Diamond, Netherite) with unique statistics, spinning flight animation, return mechanics, and custom item identification via PersistentDataContainer. Features crafting recipes, Netherite smithing upgrade, configurable permissions, commands, and a full resource pack with custom textures and models. Includes projectile tracking, damage, knockback, cooldowns, particles, sounds, and safe lifecycle management.
Kodari can build the Paper plugin, but it cannot create the requested resource pack; textures and models can be enabled in Settings โ Generation or at https://kodari.ai/settings?tab=features.
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code