๐
1 file
3,941 chars
๐
pasted-code-1775603421992.txt
txt
194 lines
โถ
pasted-code-1775603421992.txt
txt
194 lines
Create a Minecraft plugin (Spigot/Paper API, latest version) called "MythicWeapons".
The plugin should introduce 6 custom weapons with unique abilities, cooldowns, and visual effects. Abilities should be triggered using right-click or on-hit events. The plugin must include a clean cooldown system and smooth multiplayer performance.
---
### Weapons and Abilities:
1. Inferno Blade (Sword)
* Ability: Fire Slash (Right-click)
* Shoots a cone of fire (5 blocks)
* Deals damage and burns enemies
* Cooldown: 10 seconds
2. Thunder Hammer (Axe)
* Ability: Lightning Strike (Right-click)
* Strikes lightning at target location
* AoE damage + slowness/blindness
* Cooldown: 15 seconds
3. Shadow Dagger (Sword)
* Ability: Shadow Step (Right-click)
* Teleports behind nearest enemy
* Grants invisibility
* Next hit deals double damage
* Cooldown: 12 seconds
4. Storm Bow (Bow)
* Ability: Tornado Shot (on arrow hit)
* Creates tornado that lifts enemies
* Causes fall damage
* Cooldown: 8 seconds
5. Frost Staff (Stick)
* Ability: Ice Prison (Right-click)
* Freezes target player temporarily
* Cooldown: 14 seconds
6. Celestial Doom Mace (Mace)
* Ability: Skyfall Annihilation (Right-click)
* Launches player high into the air
* On landing:
* Massive shockwave (AoE damage)
* Knockback + stun
* Extra:
* Lightning effects
* Gravity pull
* Rage boost if multiple enemies hit
* No fall damage
* Cooldown: 15 seconds
---
### Dimension + Biome Crafting System:
Weapons can only be crafted in specific dimensions and biomes.
Rules:
* End Dimension: Completely disabled
* Nether: Main crafting dimension
* Overworld: Limited crafting allowed
Weapon Conditions:
* Inferno Blade: Nether (Nether Wastes / Basalt Deltas)
* Thunder Hammer: Nether (Crimson Forest)
* Shadow Dagger: Nether (Soul Sand Valley)
* Storm Bow: Overworld (Plains / Savanna)
* Frost Staff: Overworld (Snowy biomes)
* Celestial Doom Mace: Nether (Basalt Deltas + near lava)
Cancel crafting if conditions are not met and return items.
---
### Trial Vault Weapon System:
1. Command:
* /mw randomkey โ gives a Vault Key to a random online player
* /mw givekey โ give key manually
* /mw forcestart โ force start vault event
* /mw stop โ stop active vault event
2. Key Mechanics:
* Player receives "Vault Key" item
* Glowing item with custom name and lore
3. Location Reveal:
* Broadcast key holder location every configurable interval
4. Vault Interaction:
* Right-click Trial Chamber Vault block to activate
* Consumes key and starts event
5. Weapon Roll System:
* Start timer (configurable)
* Show cycling weapons above vault
* After timer ends โ randomly select weapon
6. Reward:
* Drop selected weapon at vault location
7. PvP Interaction:
* Players can fight and steal reward
---
### Additional Commands:
/mw give
* Give a specific weapon
* Weapons: inferno_blade, thunder_hammer, shadow_dagger, storm_bow, frost_staff, mace
/mw remove
* Remove weapon from player
/mw list
* Show all weapons
/mw reload
* Reload plugin config
/mw cooldown
* Show player cooldowns
/mw info
* Show plugin info and help menu
---
### Permissions:
mythicweapons.admin
* Full access
mythicweapons.give
* Use give command
mythicweapons.key
* Use key commands
mythicweapons.reload
* Reload plugin
---
### Core Requirements:
* Custom item names, lore, model data
* Per-player cooldown system
* Prevent spam
* Particle + sound effects
* Multiplayer compatibility
---
Write clean, optimized Java code using Spigot/Paper API.
Include:
* Main class
* Command handler
* Event listeners
* Cooldown manager
* Vault system logic
The plugin should be fully functional and ready to compile.
Kodari can make mistakes. Review important code before using.
Files
No files in this session
Code