I would like a plugin that adds custom enchants in the game.
There should be tier lists of custom enchants. Tier lists are listed below in the ascending order:
- Rogue Enchantments (10 Enchantments)
- Phantom Enchantments (10 Enchantments)
- Spectral Enchantments (6 Enchantments)
- Abyssal Enchantments (4 Enchantments)
- Oblivion Enchantments (4 Enchantments)
Each tier has it's own enchantments.
Right clicking "Firework Star" of different colors (each color represents a tier) would give the player a random enchantment from that tier. The item (Firework star) should be named according to their tier list name. This should not replace the actual firework star. This should be a different item than the actual firework star.
Colors for each tier is listed below:
- Light Gray Firework Star - Rogue Enchantments
- White Firework Star - Phantom Enchantments
- Red Firework Star - Spectral Enchantments
- Black Firework Star - Abyssal Enchantments
- Yellow Firework Star - Oblivion Enchantments
Enchantments in each tier is uploaded as a README file along with some instructions.
📄
README (1).md
md
348 lines
▶
# Plugin Name: Ovion
## Plugin Feature Requirements: Tier Enchantment Stars
This section describes how players obtain custom enchantments in-game.
### Overview
Add five custom tier items. Each item is visually based on a Firework Star, but **must be distinguishable from a normal vanilla Firework Star**. Right-clicking a tier item awards the player one random custom enchantment from that tier.
The tier order, from lowest to highest, is:
| Tier | Tier name | Number of enchantments | Item color |
|---:|---|---:|---|
| I | Rogue Enchantments | 10 | Light gray |
| II | Phantom Enchantments | 10 | White |
| III | Spectral Enchantments | 6 | Red |
| IV | Abyssal Enchantments | 4 | Black |
| V | Oblivion Enchantments | 4 | Yellow |
### Tier item names and appearance
Each tier item should use a Firework Star-style appearance with the following display name:
| Item color | Display name |
|---|---|
| Light gray | `Rogue Enchantments` |
| White | `Phantom Enchantments` |
| Red | `Spectral Enchantments` |
| Black | `Abyssal Enchantments` |
| Yellow | `Oblivion Enchantments` |
Use a distinct custom item identity, not just the item's name or color. For example, assign a plugin-specific identifier through the item's `PersistentDataContainer`. This prevents ordinary Firework Stars from accidentally activating the custom-enchantment feature.
**Important:** The tier item is a custom token inspired by a Firework Star. It is not intended to replace, consume, or alter the behavior of ordinary vanilla Firework Stars. Normal Firework Stars must continue to work as usual.
### Right-click behavior
When a player right-clicks with a valid tier item:
1. Identify the custom tier token using its persistent custom ID.
2. Determine which tier it represents.
3. Select one enchantment uniformly at random from that tier's configured enchantment pool.
4. Give the player the corresponding custom enchantment reward.
5. Consume exactly one tier token after a successful reward, unless the configuration explicitly disables consumption.
6. Send a message identifying the enchantment received and its tier.
7. Play a short sound or show a small particle effect if desired. These effects should be configurable and lightweight.
If the player's inventory is full, do not delete the reward. Drop it safely at the player's location or leave the token unconsumed and notify the player. Choose one consistent behavior and document it in the plugin configuration.
### What does the player receive?
The reward should be an **enchantment book** that can later be applied to compatible gear. The reward must preserve the enchantment's internal ID and tier when moved, renamed, stored, or traded.
Do not give the player a vanilla enchantment by mistake. Each reward should contain the custom enchantment's own identifier and, where applicable, its level. Display lore can show the enchantment name, tier, description, and application instructions.
### Random selection rules
- Rogue tokens select only from the 10 Rogue enchantments.
- Phantom tokens select only from the 10 Phantom enchantments.
- Spectral tokens select only from the 6 Spectral enchantments.
- Abyssal tokens select only from the 4 Abyssal enchantments.
- Oblivion tokens select only from the 4 Oblivion enchantments.
- Each eligible enchantment in a tier has an equal chance unless per-enchantment weights are explicitly added later.
- A token must never award an enchantment from another tier.
- Keep the tier pools in one central registry so the random-reward logic does not rely on display names.
### Interaction and item-consumption safeguards
- Handle both main-hand and off-hand interactions carefully so one click cannot award two enchantments.
- Cancel the relevant interaction only for a recognized custom tier token, preventing the token from also triggering unrelated item behavior.
- Do not intercept ordinary Firework Stars.
- Validate that the token is a recognized custom item before consuming it.
- Ensure a reward is successfully created or delivered before consuming the token.
- Add permission or administrative commands for obtaining tier tokens, if desired.
- Make the item names, colors, sounds, and token-consumption behavior configurable where practical.
### Suggested administrative commands
The following commands are optional but useful for testing and server administration:
| Command | Purpose |
|---|---|
| `/ovion give [amount]` | Give a player one or more tier tokens. |
| `/ovion reload` | Reload supported configuration values. |
| `/ovion list [tier]` | List all registered custom enchantments, optionally filtered by tier. |
Restrict administrative commands with a dedicated permission such as `customenchants.admin`.
### Configuration example
A possible `config.yml` structure:
```yaml
tier-tokens:
rogue:
display-name: "&7Rogue Enchantments"
firework-star-color: "LIGHT_GRAY"
consume-on-use: true
phantom:
display-name: "&fPhantom Enchantments"
firework-star-color: "WHITE"
consume-on-use: true
spectral:
display-name: "&cSpectral Enchantments"
firework-star-color: "RED"
consume-on-use: true
abyssal:
display-name: "&8Abyssal Enchantments"
firework-star-color: "BLACK"
consume-on-use: true
oblivion:
display-name: "&eOblivion Enchantments"
firework-star-color: "YELLOW"
consume-on-use: true
rewards:
random-selection: "uniform"
reward-item: "ENCHANTED_BOOK"
show-message: true
play-sound: true
```
This is an illustrative configuration. The exact implementation should match the target Minecraft/Paper version and the plugin's custom-enchantment storage system. For Firework Star appearance, use the appropriate firework-effect metadata API for the target server version.
### Acceptance checklist
- [ ] Five distinct tier tokens can be obtained.
- [ ] Each token has the correct color and tier display name.
- [ ] Each token has a persistent custom ID that ordinary Firework Stars do not have.
- [ ] Right-clicking a token grants exactly one random enchantment from the correct tier.
- [ ] All 34 enchantments are registered in their correct tier pools.
- [ ] A single click cannot trigger twice due to off-hand interaction.
- [ ] Normal vanilla Firework Stars still behave normally.
- [ ] Tokens are only consumed according to the configured behavior.
- [ ] Full inventories do not cause rewards to be lost.
- [ ] Reward items retain their custom enchantment ID after being moved, stored, renamed, or traded.
- [ ] The feature respects permissions and server protection rules.
# Custom Enchantments
A custom enchantment design plan for a Paper/Purpur Minecraft server.
This document describes the planned enchantments, their intended effects, and implementation notes. Numerical values are starting points for testing, not final balance guarantees.
## Tier overview
| Tier | Enchantment count | Intended power |
|---|---:|---|
| Rogue | 10 | Simple bonuses and quality-of-life effects |
| Phantom | 10 | Tactical combat and utility abilities |
| Spectral | 6 | Strong abilities that can change a fight |
| Abyssal | 4 | Rare, fight-changing powers |
| Oblivion | 4 | Endgame abilities with dramatic effects |
**Total: 34 enchantments.**
---
## Tier I: Rogue Enchantments
Rogue enchantments offer useful, relatively modest benefits. They should be straightforward to understand and implement.
| Enchantment | Applies to | Effect |
|---|---|---|
| Scavenger | Sword | Has a small chance to grant extra eligible mob drops. |
| Gale Step | Boots | Slightly increases movement speed while sprinting. |
| Deep Pockets | Leggings | Increases the pickup range for nearby experience orbs. |
| Steadfast | Chestplate | Slightly reduces knockback received. |
| Headseeker | Bow | Deals a small damage bonus against targets at long range. |
| Lumberjack | Axe | Has a chance to drop an extra log when breaking natural logs. |
| Miner's Instinct | Pickaxe | Has a chance to grant bonus experience when mining eligible ores. |
| Rejuvenation | Helmet | Reduces hunger depletion slightly, or occasionally restores a small amount of exhaustion. |
| Last Stand | Any armor | When the wearer drops below 25% health, briefly grants minor damage resistance. Has a cooldown. |
| Quickdraw | Bow | Reduces the time needed to fully draw a bow. |
**Implementation notes**
- Use event listeners for combat, mining, and damage effects.
- Apply cooldowns to effects that can trigger repeatedly.
- Make sure Scavenger and Miner's Instinct do not duplicate rewards from protected or otherwise ineligible sources.
- Quickdraw may require a custom implementation; test the chosen approach against the target Paper version.
---
## Tier II: Phantom Enchantments
Phantom enchantments provide noticeable tactical advantages. They introduce active abilities, debuffs, and effects that reward timing.
| Enchantment | Applies to | Effect |
|---|---|---|
| Bloodlust | Sword | Consecutive hits build a temporary damage bonus. The stack resets after a short gap between hits. |
| Blink | Boots | Sneak-right-click to teleport a short distance forward, if the destination is safe. |
| Soul Siphon | Sword | Restores a small amount of health based on damage dealt. |
| Hexshot | Bow | Arrows have a chance to briefly apply Weakness to the target. |
| Titan Grip | Axe | Charged attacks deal bonus damage and additional knockback. |
| Second Wind | Chestplate | Taking heavy damage briefly grants regeneration or damage resistance. Has a cooldown. |
| Frostbite | Sword | Hits have a chance to briefly apply Slowness. |
| Veil | Helmet | Taking damage briefly grants Invisibility. Has a cooldown. |
| Greed | Pickaxe | Has a chance to multiply eligible ore drops. |
| Aftershock | Boots | Landing after a sufficiently high fall damages and knocks back nearby enemies. The wearer should be protected from their own ability's damage. |
**Implementation notes**
- Validate teleport destinations before moving the player.
- Define whether effects work in PvP, PvE, or both.
- Avoid stacking multiple copies of the same potion effect.
- Ensure Aftershock does not trigger from every tiny jump.
---
## Tier III: Spectral Enchantments
Spectral enchantments introduce powerful abilities that can change the outcome of combat. They should have clear triggers and meaningful cooldowns.
| Enchantment | Applies to | Effect |
|---|---|---|
| Riftblade | Sword | Every few successful hits releases a short-range rift strike that damages nearby enemies. |
| Soulbound | Chestplate | Once per cooldown, lethal damage leaves the wearer at 1 health instead of killing them. |
| Tempest | Boots | Sprinting charges a forward dash that knocks enemies aside. |
| Doomshot | Bow | Fully charged arrows create a small explosive impact that damages nearby enemies. |
| Phantom Army | Sword | Defeating an enemy briefly summons spectral copies to attack nearby hostile targets. |
| Arcane Overload | Helmet | Periodically empowers the wearer's next attack with bonus damage. |
**Implementation notes**
- Track hit counts per player and enchantment for Riftblade.
- Make Soulbound's lethal-hit handling robust so it cannot trigger multiple times from the same damage sequence.
- Use a bounded dash distance and check collision and safe destinations.
- For Doomshot, use a controlled damage radius. Avoid terrain damage by default.
- For Phantom Army, limit the number and duration of summons, prevent farming drops and XP, and remove the summons when their lifetime ends.
- Arcane Overload should consume its empowered state on the next valid attack.
---
## Tier IV: Abyssal Enchantments
Abyssal enchantments are rare and powerful. Each has a distinct role without requiring huge visual effects.
| Enchantment | Applies to | Effect |
|---|---|---|
| Worldbreaker | Axe | A charged strike damages and knocks back nearby enemies in a small radius. It may create a short-lived ground-crack effect. |
| Death's Embrace | Chestplate | Once per long cooldown, lethal damage leaves the wearer at 1 health and grants brief damage resistance. |
| Voidwalker | Boots | Sneak-right-click to teleport a short distance, briefly avoiding incoming attacks if the destination is safe. |
| Soul Devourer | Sword | Killing a player grants a short damage buff and a small heal. |
**Implementation notes**
- Decide whether Worldbreaker changes actual blocks or uses particles only. Particle-only cracks are safer and simpler.
- Prevent Death's Embrace from stacking with Soulbound or Second Life in a way that causes repeated lethal-hit loops.
- Respect region protections, teleport restrictions, and PvP settings.
---
## Tier V: Oblivion Enchantments
Oblivion is the highest tier. These enchantments should feel dramatic and powerful through terrain effects, summoned allies, and impactful combat abilities, while remaining feasible to implement and safe for a multiplayer server.
### 1. Cataclysm
- **Applies to:** Weapon
- **Activation:** Sneak-right-click.
- **Effect:** Slams the ground, damaging and launching enemies within a limited radius.
- **Visuals:** A shockwave with dust, block-crack, and impact particles. Actual block changes are optional.
- **Suggested cooldown:** 35 seconds.
**Implementation notes:** Use a bounded radius and apply damage/knockback to eligible nearby enemies. Prefer particles or temporary block displays for the cracked-ground look. If blocks are changed, record their original states and restore them safely. Respect WorldGuard and other protection plugins.
### 2. Soul Reaper
- **Applies to:** Sword or other designated weapon.
- **Trigger:** Every fifth successful hit, subject to cooldown.
- **Effect:** Releases a soul wave that damages nearby enemies and heals the wielder for 25% of the total damage dealt by the wave.
- **Range:** Approximately 4 blocks.
- **Suggested cooldown:** 12 seconds.
**Implementation notes:** Track valid hits per player. Apply damage once per eligible target and calculate healing from the actual damage dealt, with a sensible healing cap. Do not count cancelled hits or allow the wave to repeatedly trigger itself.
### 3. Earthshatter
- **Applies to:** Axe or other designated weapon.
- **Activation:** Charged or sneak-right-click attack.
- **Effect:** Sends a line-shaped ground fracture toward enemies, dealing damage and briefly slowing targets caught in its path.
- **Range:** Approximately 6 blocks.
- **Suggested cooldown:** 25 seconds.
**Visuals:** Use block-crack particles, dust, and stone particles along the line.
**Implementation notes:** The simplest safe version uses particles and damage checks without changing real terrain. If temporary blocks are added later, restore original block states and never overwrite player changes, containers, protected blocks, or blocks inside protected regions.
### 4. Armageddon
- **Applies to:** Chestplate.
- **Trigger:** When the wearer would receive lethal damage.
- **Effect:** Once per cooldown, prevents that death by leaving the wearer at 1 health, releases a fiery shockwave that damages nearby enemies, grants brief Resistance, and restores a small amount of health only if this does not conflict with the 1-health survival behavior.
- **Suggested cooldown:** 120 seconds.
**Implementation notes:** Handle lethal damage carefully to avoid repeated activation from the same damage event. Use a per-player cooldown and a short-lived activation guard. Apply the area damage only once, exclude the wearer, and respect PvP and region protection rules.
---
## Shared implementation guidelines
### Enchantment identification
- Give every custom enchantment a stable internal ID, separate from its display name.
- Store IDs and levels using item persistent data or another version-appropriate mechanism.
- Avoid identifying enchantments only by lore text, because players can rename items or lore may change.
- Validate enchantment compatibility and maximum levels centrally.
### Cooldowns and state
- Centralize cooldown management rather than writing separate timer logic for every enchantment.
- Track hit counters, active effects, and cooldowns by player UUID and enchantment ID.
- Clean up temporary state when players quit, die, or the plugin disables.
### Damage and protection
- Respect cancelled events and avoid applying an effect twice to the same attack.
- Decide which enchantments work in PvP, PvE, or both.
- Integrate with WorldGuard or the server's region-protection system before changing blocks, teleporting players, or damaging entities.
- Prevent duplicate drops, XP farming, friendly fire, and unintended self-damage.
### Terrain changes
- Prefer particles for visual cracks unless actual terrain destruction is a core feature.
- If temporarily replacing blocks, store original block data and restore it only if the block is still the plugin's temporary block.
- Never modify containers, protected blocks, or blocks that players have changed since activation.
### Summoned entities
- Tag summoned entities with persistent data so the plugin can identify them.
- Set a maximum number of summons per player and a fixed lifetime.
- Prevent summoned entities from dropping loot or XP if that could be exploited.
- Remove remaining summons when they expire or when the plugin disables.
### Configuration and balancing
Move values such as damage multipliers, trigger chances, ranges, durations, and cooldowns into `config.yml`. The values in this README are initial suggestions; test them against the server's combat rules and other plugins.
## Recommended development order
1. Implement enchantment IDs, item storage, and compatibility checks.
2. Build shared cooldown and damage utilities.
3. Implement Rogue enchantments and test their event handling.
4. Add Phantom and Spectral combat abilities.
5. Add Abyssal abilities and lethal-damage safeguards.
6. Implement Oblivion last, starting with particle-only terrain effects.
7. Test PvP, PvE, protected regions, reconnects, deaths, and server restarts.
## Target compatibility
This design is intended for a Paper/Purpur-style Java server. Exact event handling and attribute APIs depend on the Minecraft and Paper versions targeted by the plugin. Confirm the target version before implementation.
---
I’ll build Ovion with five uniquely tagged tier tokens, uniform tier-specific enchantment books, anvil application with persistent IDs, and admin commands. I’ll also add the listed enchantments and implement their event-based effects where practical.
Created Ovion as a Paper plugin with five configurable, uniquely tagged tier tokens. Right-clicking a token awards a uniformly selected enchantment book from that tier; full inventories safely drop the reward, and token consumption is configurable.
Added all 34 enchantments to a central registry, with persistent IDs and tier data, compatibility checks, and anvil application. The plugin also includes event-based effects and /ovion give, /ovion list, and /ovion reload commands.
Some complex effects use lightweight approximations—for example, Phantom Army deals spectral area strikes rather than summoning entities, and Quickdraw boosts arrow velocity.
- Custom Enchants are added to weapons, tools and armor by clicking and dragging the Enchantment book on top of the item.
- Custom Enchantment Book name should be just the enchantment name Eg: "Quickdraw" and not "Quickdraw Enchantment Book" and book name color should represent their firework star color
- Right clicking on air should also open the Firework star item
- Enchantment description should also say where all the enchantment is applicable.
- Sub commands like give, list, reload are not autofilling. Available commands should be listed below each other.
/ovion listshould open a chest-like gui with glass panes of colors representing the firework star and clicking on them should show the custom enchants (enchanted books). The glass panes and enchanted books should be aligned neatly in the middle part. remaining slots of the chest gui should be filled with black stained glass pane.
Add drag-and-drop enchantment application.
Update enchantment book names and colors.
Open the Firework Star menu on right-click in air.
Show applicable item types in enchantment descriptions.
Fix subcommand completion and list available commands vertically.
Build the centered
/ovion listcategory/enchantment GUI with black-pane fillers.
Enchantment application now works by clicking or dragging a tagged book onto eligible gear; it consumes one book only when the enchant succeeds.
Next: align book names/colors with their firework-star tier colors.
Right-clicking a tier Firework Star in the air is already handled for the main hand. I’m adding each enchant’s compatible gear types to its description.
Book application: Clicking or dragging a tagged enchantment book onto compatible gear applies the enchant and consumes one book only on success.
Book names and colors: Books display only the enchantment name, colored to match their tier’s configured firework-star color.
Right-click in air: Tier stars already support this for the main hand; no change was needed.
Descriptions: Enchantment descriptions now include the compatible gear types.
Commands: Added filtered tab completion for subcommands, players, and tiers; help commands now appear on separate lines.
/ovion listGUI: Opens a centered tier selector; clicking a tier shows its enchantment books, with black stained-glass panes filling unused slots./ovion list <tier>opens that tier directly.
- Change Abyssal Enchantment color to Purple (Firework star, Enchantment book name, glass pane)
- Right clicking firestar at air doesn't work (it needs to be right clicked on a block)
- Align the Enchantment tier list glass panes on /ovion list perfectly centered (2nd row starting from 3rd column and ending on 7th column). The Rogue tier glass pane is white now. Change it to light gray.
- Dropping a custom enchant onto an item duplicates it. It should not be that way and adding a second custom enchant should stack on the item.
- Maximum custom enchants that an item should have set to 5
- Enchantment description "Applies to:" should be in a new line below. Also remove the feature to add custom enchant using anvil and also replace the "Apply in an anvil with compatible gear" with "Drop the enchantment onto the compatible item to apply"
- After adding the enchantment on an item It should not show the tier name next to the enchantment name
Change Abyssal’s star, book, and GUI color to purple.
Make tier stars open on air right-click; center the tier row and change Rogue to light gray.
Fix enchant-book duplication and allow multiple enchants, capped at five per item.
Remove anvil application and update the description layout/instructions.
Hide tier names from applied enchantment names.
Abyssal color: Changed the star and book color to purple; its tier pane now matches.
Tier menu and star use: Air right-click now works even when Bukkit marks the interaction cancelled. Centered the tier panes in row 2, columns 3–7, and set Rogue to light gray.
Applying books: Drag-and-drop now consumes the book reliably. Items can hold multiple custom enchants, up to five.
Descriptions and anvil: Added “Applies to:” on its own line, updated the application instruction, and removed anvil application.
Applied enchant names: Removed the tier name shown beside enchantments on gear.
- Abyssal enchantment color still not changed. Change Abyssal Enchantment's Firework star, Enchanted book name, Ovion list glass pane color from black to Purple.
- Add "Applies to:" in description of the enchanted book but in a new line.
- replace "Apply in an anvil with compatible gear" to "Drop onto compatible item to apply"
- In the /ovion list gui, Reorder the enchantments inside each tier in order from first slot. (not centered) but keep the "enchantment tiers' glass panes centered (like it is now)
- Keep the enchantment name color (light gray, white, red, purple, yellow) even after applying on an item
Fix Abyssal’s purple color across its star, book, and tier pane.
Put “Applies to:” on a separate book-lore line and update the application instruction.
List enchantment books from the first slot in each tier GUI while keeping tier panes centered.
Preserve each enchantment’s color on applied gear.
Set Abyssal’s configured color to vivid purple (
#AA00AA) for its firework star, book name, and tier pane.Kept “Applies to:” on its own book-lore line and changed the instruction to “Drop onto compatible item to apply”.
Enchantment books now start in the first GUI slot and fill in order; the tier selector panes remain centered.
Applied enchantment names now retain their tier color on the item.
Make these custom enchants functional according to their description.
📄
README2.md
md
186 lines
▶
## Tier I: Rogue Enchantments
Rogue enchantments offer useful, relatively modest benefits. They should be straightforward to understand and implement.
| Enchantment | Applies to | Effect |
|---|---|---|
| Scavenger | Sword | Has a small chance to grant extra eligible mob drops. |
| Gale Step | Boots | Slightly increases movement speed while sprinting. |
| Deep Pockets | Leggings | Increases the pickup range for nearby experience orbs. |
| Steadfast | Chestplate | Slightly reduces knockback received. |
| Headseeker | Bow | Deals a small damage bonus against targets at long range. |
| Lumberjack | Axe | Has a chance to drop an extra log when breaking natural logs. |
| Miner's Instinct | Pickaxe | Has a chance to grant bonus experience when mining eligible ores. |
| Rejuvenation | Helmet | Reduces hunger depletion slightly, or occasionally restores a small amount of exhaustion. |
| Last Stand | Any armor | When the wearer drops below 25% health, briefly grants minor damage resistance. Has a cooldown. |
| Quickdraw | Bow | Reduces the time needed to fully draw a bow. |
**Implementation notes**
- Use event listeners for combat, mining, and damage effects.
- Apply cooldowns to effects that can trigger repeatedly.
- Make sure Scavenger and Miner's Instinct do not duplicate rewards from protected or otherwise ineligible sources.
- Quickdraw may require a custom implementation; test the chosen approach against the target Paper version.
---
## Tier II: Phantom Enchantments
Phantom enchantments provide noticeable tactical advantages. They introduce active abilities, debuffs, and effects that reward timing.
| Enchantment | Applies to | Effect |
|---|---|---|
| Bloodlust | Sword | Consecutive hits build a temporary damage bonus. The stack resets after a short gap between hits. |
| Blink | Boots | Sneak-right-click to teleport a short distance forward, if the destination is safe. |
| Soul Siphon | Sword | Restores a small amount of health based on damage dealt. |
| Hexshot | Bow | Arrows have a chance to briefly apply Weakness to the target. |
| Titan Grip | Axe | Charged attacks deal bonus damage and additional knockback. |
| Second Wind | Chestplate | Taking heavy damage briefly grants regeneration or damage resistance. Has a cooldown. |
| Frostbite | Sword | Hits have a chance to briefly apply Slowness. |
| Veil | Helmet | Taking damage briefly grants Invisibility. Has a cooldown. |
| Greed | Pickaxe | Has a chance to multiply eligible ore drops. |
| Aftershock | Boots | Landing after a sufficiently high fall damages and knocks back nearby enemies. The wearer should be protected from their own ability's damage. |
**Implementation notes**
- Validate teleport destinations before moving the player.
- Define whether effects work in PvP, PvE, or both.
- Avoid stacking multiple copies of the same potion effect.
- Ensure Aftershock does not trigger from every tiny jump.
---
## Tier III: Spectral Enchantments
Spectral enchantments introduce powerful abilities that can change the outcome of combat. They should have clear triggers and meaningful cooldowns.
| Enchantment | Applies to | Effect |
|---|---|---|
| Riftblade | Sword | Every few successful hits releases a short-range rift strike that damages nearby enemies. |
| Soulbound | Chestplate | Once per cooldown, lethal damage leaves the wearer at 1 health instead of killing them. |
| Tempest | Boots | Sprinting charges a forward dash that knocks enemies aside. |
| Doomshot | Bow | Fully charged arrows create a small explosive impact that damages nearby enemies. |
| Phantom Army | Sword | Defeating an enemy briefly summons spectral copies to attack nearby hostile targets. |
| Arcane Overload | Helmet | Periodically empowers the wearer's next attack with bonus damage. |
**Implementation notes**
- Track hit counts per player and enchantment for Riftblade.
- Make Soulbound's lethal-hit handling robust so it cannot trigger multiple times from the same damage sequence.
- Use a bounded dash distance and check collision and safe destinations.
- For Doomshot, use a controlled damage radius. Avoid terrain damage by default.
- For Phantom Army, limit the number and duration of summons, prevent farming drops and XP, and remove the summons when their lifetime ends.
- Arcane Overload should consume its empowered state on the next valid attack.
---
## Tier IV: Abyssal Enchantments
Abyssal enchantments are rare and powerful. Each has a distinct role without requiring huge visual effects.
| Enchantment | Applies to | Effect |
|---|---|---|
| Worldbreaker | Axe | A charged strike damages and knocks back nearby enemies in a small radius. It may create a short-lived ground-crack effect. |
| Death's Embrace | Chestplate | Once per long cooldown, lethal damage leaves the wearer at 1 health and grants brief damage resistance. |
| Voidwalker | Boots | Sneak-right-click to teleport a short distance, briefly avoiding incoming attacks if the destination is safe. |
| Soul Devourer | Sword | Killing a player grants a short damage buff and a small heal. |
**Implementation notes**
- Decide whether Worldbreaker changes actual blocks or uses particles only. Particle-only cracks are safer and simpler.
- Prevent Death's Embrace from stacking with Soulbound or Second Life in a way that causes repeated lethal-hit loops.
- Respect region protections, teleport restrictions, and PvP settings.
---
## Tier V: Oblivion Enchantments
Oblivion is the highest tier. These enchantments should feel dramatic and powerful through terrain effects, summoned allies, and impactful combat abilities, while remaining feasible to implement and safe for a multiplayer server.
### 1. Cataclysm
- **Applies to:** Weapon
- **Activation:** Sneak-right-click.
- **Effect:** Slams the ground, damaging and launching enemies within a limited radius.
- **Visuals:** A shockwave with dust, block-crack, and impact particles. Actual block changes are optional.
- **Suggested cooldown:** 35 seconds.
**Implementation notes:** Use a bounded radius and apply damage/knockback to eligible nearby enemies. Prefer particles or temporary block displays for the cracked-ground look. If blocks are changed, record their original states and restore them safely. Respect WorldGuard and other protection plugins.
### 2. Soul Reaper
- **Applies to:** Sword or other designated weapon.
- **Trigger:** Every fifth successful hit, subject to cooldown.
- **Effect:** Releases a soul wave that damages nearby enemies and heals the wielder for 25% of the total damage dealt by the wave.
- **Range:** Approximately 4 blocks.
- **Suggested cooldown:** 12 seconds.
**Implementation notes:** Track valid hits per player. Apply damage once per eligible target and calculate healing from the actual damage dealt, with a sensible healing cap. Do not count cancelled hits or allow the wave to repeatedly trigger itself.
### 3. Earthshatter
- **Applies to:** Axe or other designated weapon.
- **Activation:** Charged or sneak-right-click attack.
- **Effect:** Sends a line-shaped ground fracture toward enemies, dealing damage and briefly slowing targets caught in its path.
- **Range:** Approximately 6 blocks.
- **Suggested cooldown:** 25 seconds.
**Visuals:** Use block-crack particles, dust, and stone particles along the line.
**Implementation notes:** The simplest safe version uses particles and damage checks without changing real terrain. If temporary blocks are added later, restore original block states and never overwrite player changes, containers, protected blocks, or blocks inside protected regions.
### 4. Armageddon
- **Applies to:** Chestplate.
- **Trigger:** When the wearer would receive lethal damage.
- **Effect:** Once per cooldown, prevents that death by leaving the wearer at 1 health, releases a fiery shockwave that damages nearby enemies, grants brief Resistance, and restores a small amount of health only if this does not conflict with the 1-health survival behavior.
- **Suggested cooldown:** 120 seconds.
**Implementation notes:** Handle lethal damage carefully to avoid repeated activation from the same damage event. Use a per-player cooldown and a short-lived activation guard. Apply the area damage only once, exclude the wearer, and respect PvP and region protection rules.
---
## Shared implementation guidelines
### Enchantment identification
- Give every custom enchantment a stable internal ID, separate from its display name.
- Store IDs and levels using item persistent data or another version-appropriate mechanism.
- Avoid identifying enchantments only by lore text, because players can rename items or lore may change.
- Validate enchantment compatibility and maximum levels centrally.
### Cooldowns and state
- Centralize cooldown management rather than writing separate timer logic for every enchantment.
- Track hit counters, active effects, and cooldowns by player UUID and enchantment ID.
- Clean up temporary state when players quit, die, or the plugin disables.
### Damage and protection
- Respect cancelled events and avoid applying an effect twice to the same attack.
- Decide which enchantments work in PvP, PvE, or both.
- Integrate with WorldGuard or the server's region-protection system before changing blocks, teleporting players, or damaging entities.
- Prevent duplicate drops, XP farming, friendly fire, and unintended self-damage.
### Terrain changes
- Prefer particles for visual cracks unless actual terrain destruction is a core feature.
- If temporarily replacing blocks, store original block data and restore it only if the block is still the plugin's temporary block.
- Never modify containers, protected blocks, or blocks that players have changed since activation.
### Summoned entities
- Tag summoned entities with persistent data so the plugin can identify them.
- Set a maximum number of summons per player and a fixed lifetime.
- Prevent summoned entities from dropping loot or XP if that could be exploited.
- Remove remaining summons when they expire or when the plugin disables.
### Configuration and balancing
Move values such as damage multipliers, trigger chances, ranges, durations, and cooldowns into `config.yml`. The values in this README are initial suggestions; test them against the server's combat rules and other plugins.
## Recommended development order
1. Implement enchantment IDs, item storage, and compatibility checks.
2. Build shared cooldown and damage utilities.
3. Implement Rogue enchantments and test their event handling.
4. Add Phantom and Spectral combat abilities.
5. Add Abyssal abilities and lethal-damage safeguards.
6. Implement Oblivion last, starting with particle-only terrain effects.
7. Test PvP, PvE, protected regions, reconnects, deaths, and server restarts.
## Target compatibility
This design is intended for a Paper/Purpur-style Java server. Exact event handling and attribute APIs depend on the Minecraft and Paper versions targeted by the plugin. Confirm the target version before implementation.
Map the existing enchantment IDs, item metadata, and event handling.
Implement the described enchant effects using the plugin’s existing structure and safe cooldown/state handling.
Verify the referenced APIs and wire any required listeners or cleanup.
Implemented the missing and mismatched effects: Deep Pockets draws nearby XP orbs toward the player; fully charged Doomshot arrows cause a small, terrain-safe blast on impact; Phantom Army summons short-lived Vex allies, capped at four per player, with drops and XP disabled; and Soul Reaper heals for 25% of damage actually dealt by its wave. Titan Grip now requires a charged axe hit.
Also added an Aftershock cooldown, made Blink and Voidwalker require the enchanted boots and only start cooldown after a successful teleport, prevented Lumberjack from bonus-dropping logs placed during the current server session, and added impact visuals and summon cleanup.
Limitations: Quickdraw still increases arrow velocity; standard Paper events don’t expose a way to shorten the client’s bow-draw time. Region-protection integration was not added.
Reduce cooldown of the enchants
Reduce every enchant cooldown consistently by 50%.
Apply the adjustment in the shared cooldown check so individual cooldowns retain their relative balance.
Reduced all enchant cooldowns by 50% through the shared cooldown check, preserving their relative durations.
Add more visual effects to the Custom enchants
Add distinct particle feedback to enchant procs and activations.
Reuse shared particle helpers for impact bursts and shockwaves.
Keep all damage, cooldown, and proc behavior unchanged.
Added richer particle effects to custom enchant procs and activations, including teleport trails, shockwave rings, and distinct hit, healing, defense, mining, and summon bursts. Enchant behavior and cooldowns are unchanged.
- Soul Devourer gives basic blindness effect on hit. Duration of 8 seconds
- Cataclysm right clicking makes explosion sound and cooldown reduced to 10 seconds
- Soul Reaper has more visual effects to visualise the shockwave. also 20% chance to give Warden blindness to the hit player.
- Earthshatter cooldown reduced to 12 seconds
- Armageddon cooldown 120 seconds. Saves from any kind of damage
- Voidwalker cooldown 30 seconds
- Add 3 more enchants to both Oblivion and
- Order the enchantment tier in Rogue, Phantom, Spectral, Abyssal, Oblivion in the sub command section of /ovion give player command
- New enchantments. New readme file uploaded
📄
README_PvP_Weapon_Armor.md
md
475 lines
▶
## Plugin Feature Requirements: Tier Enchantment Stars
This section describes how players obtain custom enchantments in-game.
### Overview
Add five custom tier items. Each item is visually based on a Firework Star, but **must be distinguishable from a normal vanilla Firework Star**. Right-clicking a tier item awards the player one random custom enchantment from that tier.
The tier order, from lowest to highest, is:
| Tier | Tier name | Number of enchantments | Item color |
|---:|---|---:|---|
| I | Rogue Enchantments | 10 | Light gray |
| II | Phantom Enchantments | 10 | White |
| III | Spectral Enchantments | 16 | Red |
| IV | Abyssal Enchantments | 14 | Black |
| V | Oblivion Enchantments | 14 | Yellow |
### Tier item names and appearance
Each tier item should use a Firework Star-style appearance with the following display name:
| Item color | Display name |
|---|---|
| Light gray | `Rogue Enchantments` |
| White | `Phantom Enchantments` |
| Red | `Spectral Enchantments` |
| Black | `Abyssal Enchantments` |
| Yellow | `Oblivion Enchantments` |
Use a distinct custom item identity, not just the item's name or color. For example, assign a plugin-specific identifier through the item's `PersistentDataContainer`. This prevents ordinary Firework Stars from accidentally activating the custom-enchantment feature.
**Important:** The tier item is a custom token inspired by a Firework Star. It is not intended to replace, consume, or alter the behavior of ordinary vanilla Firework Stars. Normal Firework Stars must continue to work as usual.
### Right-click behavior
When a player right-clicks with a valid tier item:
1. Identify the custom tier token using its persistent custom ID.
2. Determine which tier it represents.
3. Select one enchantment uniformly at random from that tier's configured enchantment pool.
4. Give the player the corresponding custom enchantment reward.
5. Consume exactly one tier token after a successful reward, unless the configuration explicitly disables consumption.
6. Send a message identifying the enchantment received and its tier.
7. Play a short sound or show a small particle effect if desired. These effects should be configurable and lightweight.
If the player's inventory is full, do not delete the reward. Drop it safely at the player's location or leave the token unconsumed and notify the player. Choose one consistent behavior and document it in the plugin configuration.
### What does the player receive?
The reward should be an **enchantment book or another clearly defined custom-enchantment item** that can later be applied to compatible gear. The reward must preserve the enchantment's internal ID and tier when moved, renamed, stored, or traded.
Do not give the player a vanilla enchantment by mistake. Each reward should contain the custom enchantment's own identifier and, where applicable, its level. Display lore can show the enchantment name, tier, description, and application instructions.
### Random selection rules
- Rogue tokens select only from the 10 Rogue enchantments.
- Phantom tokens select only from the 10 Phantom enchantments.
- Spectral tokens select only from the 16 Spectral enchantments.
- Abyssal tokens select only from the 14 Abyssal enchantments.
- Oblivion tokens select only from the 14 Oblivion enchantments.
- Each eligible enchantment in a tier has an equal chance unless per-enchantment weights are explicitly added later.
- A token must never award an enchantment from another tier.
- Keep the tier pools in one central registry so the random-reward logic does not rely on display names.
### Interaction and item-consumption safeguards
- Handle both main-hand and off-hand interactions carefully so one click cannot award two enchantments.
- Cancel the relevant interaction only for a recognized custom tier token, preventing the token from also triggering unrelated item behavior.
- Do not intercept ordinary Firework Stars.
- Validate that the token is a recognized custom item before consuming it.
- Ensure a reward is successfully created or delivered before consuming the token.
- Add permission or administrative commands for obtaining tier tokens, if desired.
- Make the item names, colors, sounds, and token-consumption behavior configurable where practical.
### Suggested administrative commands
The following commands are optional but useful for testing and server administration:
| Command | Purpose |
|---|---|
| `/customenchants give [amount]` | Give a player one or more tier tokens. |
| `/customenchants reload` | Reload supported configuration values. |
| `/customenchants list [tier]` | List all registered custom enchantments, optionally filtered by tier. |
Restrict administrative commands with a dedicated permission such as `customenchants.admin`.
### Configuration example
A possible `config.yml` structure:
```yaml
tier-tokens:
rogue:
display-name: "&7Rogue Enchantments"
firework-star-color: "LIGHT_GRAY"
consume-on-use: true
phantom:
display-name: "&fPhantom Enchantments"
firework-star-color: "WHITE"
consume-on-use: true
spectral:
display-name: "&cSpectral Enchantments"
firework-star-color: "RED"
consume-on-use: true
abyssal:
display-name: "&8Abyssal Enchantments"
firework-star-color: "BLACK"
consume-on-use: true
oblivion:
display-name: "&eOblivion Enchantments"
firework-star-color: "YELLOW"
consume-on-use: true
rewards:
random-selection: "uniform"
reward-item: "ENCHANTED_BOOK"
show-message: true
play-sound: true
```
This is an illustrative configuration. The exact implementation should match the target Minecraft/Paper version and the plugin's custom-enchantment storage system. For Firework Star appearance, use the appropriate firework-effect metadata API for the target server version.
### Acceptance checklist
- [ ] Five distinct tier tokens can be obtained.
- [ ] Each token has the correct color and tier display name.
- [ ] Each token has a persistent custom ID that ordinary Firework Stars do not have.
- [ ] Right-clicking a token grants exactly one random enchantment from the correct tier.
- [ ] All 64 enchantments are registered in their correct tier pools.
- [ ] A single click cannot trigger twice due to off-hand interaction.
- [ ] Normal vanilla Firework Stars still behave normally.
- [ ] Tokens are only consumed according to the configured behavior.
- [ ] Full inventories do not cause rewards to be lost.
- [ ] Reward items retain their custom enchantment ID after being moved, stored, renamed, or traded.
- [ ] The feature respects permissions and server protection rules.
# Custom Enchantments
A custom enchantment design plan for a Paper/Purpur Minecraft server.
This document describes the planned enchantments, their intended effects, and implementation notes. Numerical values are starting points for testing, not final balance guarantees.
## Tier overview
| Tier | Enchantment count | Intended power |
|---|---:|---|
| Rogue | 10 | Simple bonuses and quality-of-life effects |
| Phantom | 10 | Tactical combat and utility abilities |
| Spectral | 16 | Strong abilities and distinct weapon/armor PvP effects |
| Abyssal | 14 | Rare, punishing weapon/armor PvP control |
| Oblivion | 14 | Endgame weapon/armor crowd control and dramatic combat effects |
**Total: 64 enchantments.**
---
## Tier I: Rogue Enchantments
Rogue enchantments offer useful, relatively modest benefits. They should be straightforward to understand and implement.
| Enchantment | Applies to | Effect |
|---|---|---|
| Scavenger | Sword | Has a small chance to grant extra eligible mob drops. |
| Gale Step | Boots | Slightly increases movement speed while sprinting. |
| Deep Pockets | Leggings | Increases the pickup range for nearby experience orbs. |
| Steadfast | Chestplate | Slightly reduces knockback received. |
| Headseeker | Bow | Deals a small damage bonus against targets at long range. |
| Lumberjack | Axe | Has a chance to drop an extra log when breaking natural logs. |
| Miner's Instinct | Pickaxe | Has a chance to grant bonus experience when mining eligible ores. |
| Rejuvenation | Helmet | Reduces hunger depletion slightly, or occasionally restores a small amount of exhaustion. |
| Last Stand | Any armor | When the wearer drops below 25% health, briefly grants minor damage resistance. Has a cooldown. |
| Quickdraw | Bow | Reduces the time needed to fully draw a bow. |
**Implementation notes**
- Use event listeners for combat, mining, and damage effects.
- Apply cooldowns to effects that can trigger repeatedly.
- Make sure Scavenger and Miner's Instinct do not duplicate rewards from protected or otherwise ineligible sources.
- Quickdraw may require a custom implementation; test the chosen approach against the target Paper version.
---
## Tier II: Phantom Enchantments
Phantom enchantments provide noticeable tactical advantages. They introduce active abilities, debuffs, and effects that reward timing.
| Enchantment | Applies to | Effect |
|---|---|---|
| Bloodlust | Sword | Consecutive hits build a temporary damage bonus. The stack resets after a short gap between hits. |
| Blink | Boots | Sneak-right-click to teleport a short distance forward, if the destination is safe. |
| Soul Siphon | Sword | Restores a small amount of health based on damage dealt. |
| Hexshot | Bow | Arrows have a chance to briefly apply Weakness to the target. |
| Titan Grip | Axe | Charged attacks deal bonus damage and additional knockback. |
| Second Wind | Chestplate | Taking heavy damage briefly grants regeneration or damage resistance. Has a cooldown. |
| Frostbite | Sword | Hits have a chance to briefly apply Slowness. |
| Veil | Helmet | Taking damage briefly grants Invisibility. Has a cooldown. |
| Greed | Pickaxe | Has a chance to multiply eligible ore drops. |
| Aftershock | Boots | Landing after a sufficiently high fall damages and knocks back nearby enemies. The wearer should be protected from their own ability's damage. |
**Implementation notes**
- Validate teleport destinations before moving the player.
- Define whether effects work in PvP, PvE, or both.
- Avoid stacking multiple copies of the same potion effect.
- Ensure Aftershock does not trigger from every tiny jump.
---
## Tier III: Spectral Enchantments
Spectral enchantments introduce powerful abilities that can change the outcome of combat. They should have clear triggers and meaningful cooldowns.
| Enchantment | Applies to | Effect |
|---|---|---|
| Riftblade | Sword | Every few successful hits releases a short-range rift strike that damages nearby enemies. |
| Soulbound | Chestplate | Once per cooldown, lethal damage leaves the wearer at 1 health instead of killing them. |
| Tempest | Boots | Sprinting charges a forward dash that knocks enemies aside. |
| Doomshot | Bow | Fully charged arrows create a small explosive impact that damages nearby enemies. |
| Phantom Army | Sword | Defeating an enemy briefly summons spectral copies to attack nearby hostile targets. |
| Arcane Overload | Helmet | Periodically empowers the wearer's next attack with bonus damage. |
| Dreadveil | Sword | Chance to inflict brief Nausea on a successful hit. |
| Crippling Hex | Sword | Chance to apply short Slowness, with a per-target cooldown. |
| Wraithmark | Bow | Arrows briefly reveal opponents with Glowing and weaken their attacks. |
| Spellbreaker | Axe | Chance to inflict Mining Fatigue, disrupting opponents who try to escape through blocks. |
| Frostbite | Sword | Chance to apply Slowness with a brief chilling particle effect. |
| Veilguard | Helmet | When hit, briefly inflicts Darkness on the attacker. Cooldown applies. |
| Hexskin | Chestplate | Chance to apply Weakness to a melee attacker. |
| Phantom Grip | Leggings | When struck, has a chance to briefly slow the attacker. |
| Mistwalk | Boots | Taking damage briefly boosts movement speed to help the wearer reposition. |
| Second Sight | Any armor | After taking damage, briefly grants Glowing to the attacker so they are easier to track. |
**Implementation notes**
- Track hit counts per player and enchantment for Riftblade.
- Make Soulbound's lethal-hit handling robust so it cannot trigger multiple times from the same damage sequence.
- Use a bounded dash distance and check collision and safe destinations.
- For Doomshot, use a controlled damage radius. Avoid terrain damage by default.
- For Phantom Army, limit the number and duration of summons, prevent farming drops and XP, and remove the summons when their lifetime ends.
- Arcane Overload should consume its empowered state on the next valid attack.
---
## Tier IV: Abyssal Enchantments
Abyssal enchantments are rare and powerful. Each has a distinct role without requiring huge visual effects.
| Enchantment | Applies to | Effect |
|---|---|---|
| Worldbreaker | Axe | A charged strike damages and knocks back nearby enemies in a small radius. It may create a short-lived ground-crack effect. |
| Death's Embrace | Chestplate | Once per long cooldown, lethal damage leaves the wearer at 1 health and grants brief damage resistance. |
| Voidwalker | Boots | Sneak-right-click to teleport a short distance, briefly avoiding incoming attacks if the destination is safe. |
| Soul Devourer | Sword | Killing a player grants a short damage buff and a small heal. |
| Mindrot | Sword | Chance to inflict Nausea and Weakness together. |
| Withering Brand | Sword | Every few successful hits apply a short Wither effect, subject to a per-target cooldown. |
| Plague Arrow | Bow | Arrows can inflict Poison and briefly reduce the target's damage. |
| Abyssal Grasp | Axe | Charged hits apply Slowness and Weakness, making escape difficult. |
| Soul Fracture | Sword | A successful combo briefly reduces the target's damage and, where supported, healing effectiveness. |
| Null Field | Helmet | Chance to inflict Blindness on a nearby melee attacker. |
| Torment | Chestplate | Melee attackers have a chance to receive a short Wither effect. |
| Crippling Ruin | Leggings | Being hit can briefly inflict Slowness on the attacker. |
| Soul Anchor | Boots | Reduces incoming knockback and briefly slows nearby attackers after a heavy hit. |
| Malice Ward | Any armor | After taking several hits, releases a short pulse of Weakness around the wearer. |
**Implementation notes**
- Decide whether Worldbreaker changes actual blocks or uses particles only. Particle-only cracks are safer and simpler.
- Prevent Death's Embrace from stacking with Soulbound or Second Life in a way that causes repeated lethal-hit loops.
- Respect region protections, teleport restrictions, and PvP settings.
---
## Tier V: Oblivion Enchantments
Oblivion is the highest tier. These enchantments should feel dramatic and powerful through terrain effects, summoned allies, and impactful combat abilities, while remaining feasible to implement and safe for a multiplayer server.
The added PvP enchantments are split into distinct weapon and armor abilities. Weapon effects trigger on successful attacks; armor effects trigger when the wearer is attacked or crosses a defined defensive threshold. Keep durations short, use cooldowns, and make trigger chances configurable to prevent stun-locking.
### 1. Cataclysm
- **Applies to:** Weapon
- **Activation:** Sneak-right-click.
- **Effect:** Slams the ground, damaging and launching enemies within a limited radius.
- **Visuals:** A shockwave with dust, block-crack, and impact particles. Actual block changes are optional.
- **Suggested cooldown:** 35 seconds.
**Implementation notes:** Use a bounded radius and apply damage/knockback to eligible nearby enemies. Prefer particles or temporary block displays for the cracked-ground look. If blocks are changed, record their original states and restore them safely. Respect WorldGuard and other protection plugins.
### 2. Soul Reaper
- **Applies to:** Sword or other designated weapon.
- **Trigger:** Every fifth successful hit, subject to cooldown.
- **Effect:** Releases a soul wave that damages nearby enemies and heals the wielder for 25% of the total damage dealt by the wave.
- **Range:** Approximately 4 blocks.
- **Suggested cooldown:** 12 seconds.
**Implementation notes:** Track valid hits per player. Apply damage once per eligible target and calculate healing from the actual damage dealt, with a sensible healing cap. Do not count cancelled hits or allow the wave to repeatedly trigger itself.
### 3. Earthshatter
- **Applies to:** Axe or other designated weapon.
- **Activation:** Charged or sneak-right-click attack.
- **Effect:** Sends a line-shaped ground fracture toward enemies, dealing damage and briefly slowing targets caught in its path.
- **Range:** Approximately 6 blocks.
- **Suggested cooldown:** 25 seconds.
**Visuals:** Use block-crack particles, dust, and stone particles along the line.
**Implementation notes:** The simplest safe version uses particles and damage checks without changing real terrain. If temporary blocks are added later, restore original block states and never overwrite player changes, containers, protected blocks, or blocks inside protected regions.
### 4. Armageddon
- **Applies to:** Chestplate.
- **Trigger:** When the wearer would receive lethal damage.
- **Effect:** Once per cooldown, prevents that death by leaving the wearer at 1 health, releases a fiery shockwave that damages nearby enemies, grants brief Resistance, and restores a small amount of health only if this does not conflict with the 1-health survival behavior.
- **Suggested cooldown:** 120 seconds.
**Implementation notes:** Handle lethal damage carefully to avoid repeated activation from the same damage event. Use a per-player cooldown and a short-lived activation guard. Apply the area damage only once, exclude the wearer, and respect PvP and region protection rules.
### 5. Blackout
- **Category:** Weapon enchantment.
- **Applies to:** Sword.
- **Trigger:** Chance-based on a successful hit, with a per-target cooldown.
- **Effect:** Briefly applies Darkness and a very short Blindness effect.
- **Suggested cooldown:** 18 seconds per target.
**Implementation notes:** Keep the visual-disruption window short so the effect feels powerful without making PvP unplayable. Check server-version support for Blindness behavior.
### 6. Pandemonium
- **Category:** Weapon enchantment.
- **Applies to:** Sword.
- **Trigger:** Every fourth successful hit, subject to cooldown.
- **Effect:** Applies a short burst of Nausea, Slowness, and Weakness.
- **Suggested cooldown:** 22 seconds.
**Implementation notes:** Count only valid, non-cancelled hits. Apply effects once per activation and prevent the enchantment from retriggering from secondary damage.
### 7. Time Rupture
- **Category:** Weapon enchantment.
- **Applies to:** Axe.
- **Trigger:** Charged hit.
- **Effect:** Briefly applies strong Slowness and releases a small visual shockwave.
- **Suggested cooldown:** 28 seconds.
**Implementation notes:** Keep the duration short, validate range, and avoid applying the effect through walls.
### 8. Doom Plague
- **Category:** Weapon enchantment.
- **Applies to:** Bow.
- **Trigger:** Fully charged arrow hit, chance-based with a cooldown.
- **Effect:** Can inflict Poison, Wither, or Weakness, with a cooldown preventing constant activation.
- **Suggested cooldown:** 24 seconds.
**Implementation notes:** Ensure each arrow triggers the effect only once. Respect friendly-fire and region rules.
### 9. King's Bane
- **Category:** Weapon enchantment.
- **Applies to:** Sword.
- **Trigger:** Consecutive successful hits build a mark that triggers a final strike.
- **Effect:** A powerful final strike deals bonus damage and briefly applies Slowness.
- **Suggested cooldown:** 25 seconds.
**Implementation notes:** Reset the hit counter after a long gap, on target changes if configured, and after the empowered strike.
### 10. King's Decree
- **Category:** Armor enchantment.
- **Applies to:** Chestplate.
- **Trigger:** Chance-based when hit by a melee attack.
- **Effect:** Briefly applies Slowness and Weakness to the attacker.
- **Suggested cooldown:** 30 seconds.
**Implementation notes:** Exclude the wearer from the effect, use the actual attacker as the target, and respect PvP and region protection rules.
### 11. Abyssal Reversal
- **Category:** Armor enchantment.
- **Applies to:** Helmet.
- **Trigger:** Once per cooldown after taking a heavy hit.
- **Effect:** Briefly inflicts Blindness and Nausea on the attacker.
- **Suggested cooldown:** 35 seconds.
**Implementation notes:** Use a short duration and a damage threshold so minor hits do not trigger it constantly.
### 12. Cataclysmic Guard
- **Category:** Armor enchantment.
- **Applies to:** Chestplate.
- **Trigger:** Taking a heavy hit.
- **Effect:** Releases a shockwave that damages and knocks back nearby enemies.
- **Suggested cooldown:** 40 seconds.
**Implementation notes:** Apply damage only once per eligible target, exclude the wearer, and respect protection plugins.
### 13. Void Shackles
- **Category:** Armor enchantment.
- **Applies to:** Leggings.
- **Trigger:** Chance-based when struck by a melee attack.
- **Effect:** Applies strong Slowness to the attacker for a short duration.
- **Suggested cooldown:** 25 seconds.
**Implementation notes:** Add per-attacker cooldown tracking to prevent rapid multi-hit attacks from repeatedly refreshing the effect.
### 14. Armageddon
- **Category:** Armor enchantment.
- **Applies to:** Any armor.
- **Trigger:** When the wearer would receive lethal damage.
- **Effect:** Once per long cooldown, prevents that death by leaving the wearer at 1 health, releases a fiery shockwave that damages nearby enemies, and grants brief Resistance.
- **Suggested cooldown:** 120 seconds.
**Implementation notes:** Handle lethal damage carefully to avoid repeated activation from the same damage event. Use a per-player cooldown and a short-lived activation guard. Apply the area damage only once, exclude the wearer, and respect PvP and region protection rules.
---
## PvP weapon and armor enchantment rules
- Weapon enchantments trigger on valid outgoing attacks or their explicitly documented activation.
- Armor enchantments trigger on incoming damage, attacker retaliation, or a defined defensive threshold.
- Each new PvP enchantment is a distinct entry with its own item category; weapon and armor effects are not shared across an entire tier.
- Use per-player and, where needed, per-target cooldowns. Prevent duplicate triggers from main-hand/off-hand processing or multiple armor pieces.
- Make chance, effect duration, cooldown, and eligible damage source configurable.
- Respect PvP settings, team/friendly-fire rules, WorldGuard, and other protection plugins.
## Shared implementation guidelines
### Enchantment identification
- Give every custom enchantment a stable internal ID, separate from its display name.
- Store IDs and levels using item persistent data or another version-appropriate mechanism.
- Avoid identifying enchantments only by lore text, because players can rename items or lore may change.
- Validate enchantment compatibility and maximum levels centrally.
### Cooldowns and state
- Centralize cooldown management rather than writing separate timer logic for every enchantment.
- Track hit counters, active effects, and cooldowns by player UUID and enchantment ID.
- Clean up temporary state when players quit, die, or the plugin disables.
### Damage and protection
- Respect cancelled events and avoid applying an effect twice to the same attack.
- Decide which enchantments work in PvP, PvE, or both.
- Integrate with WorldGuard or the server's region-protection system before changing blocks, teleporting players, or damaging entities.
- Prevent duplicate drops, XP farming, friendly fire, and unintended self-damage.
### Terrain changes
- Prefer particles for visual cracks unless actual terrain destruction is a core feature.
- If temporarily replacing blocks, store original block data and restore it only if the block is still the plugin's temporary block.
- Never modify containers, protected blocks, or blocks that players have changed since activation.
### Summoned entities
- Tag summoned entities with persistent data so the plugin can identify them.
- Set a maximum number of summons per player and a fixed lifetime.
- Prevent summoned entities from dropping loot or XP if that could be exploited.
- Remove remaining summons when they expire or when the plugin disables.
### Configuration and balancing
Move values such as damage multipliers, trigger chances, ranges, durations, and cooldowns into `config.yml`. The values in this README are initial suggestions; test them against the server's combat rules and other plugins.
## Recommended development order
1. Implement enchantment IDs, item storage, and compatibility checks.
2. Build shared cooldown and damage utilities.
3. Implement Rogue enchantments and test their event handling.
4. Add Phantom and Spectral combat abilities.
5. Add Abyssal abilities and lethal-damage safeguards.
6. Implement Oblivion last, starting with particle-only terrain effects.
7. Test PvP, PvE, protected regions, reconnects, deaths, and server restarts.
## Target compatibility
This design is intended for a Paper/Purpur-style Java server. Exact event handling and attribute APIs depend on the Minecraft and Paper versions targeted by the plugin. Confirm the target version before implementation.
---
Adjust the six named enchantments’ effects and cooldowns.
Add the requested enchantments from the uploaded design; clarify which second tier you meant by “Oblivion and”.
Update
/ovion give playertier ordering and implement the tier-token rewards described in the README.
Updated the named enchantments: Soul Devourer blinds hit players for 8 seconds; Cataclysm plays an explosion sound and has a 10-second cooldown; Soul Reaper has stronger shockwave visuals and a 20% chance to apply Darkness; Earthshatter is 12 seconds; Armageddon is 120 seconds; Voidwalker is 30 seconds. Armageddon’s lethal-hit save applies across damage types.
Your “both Oblivion and …” request ends before naming the second tier. Which tier did you mean? Also, should I implement the full 64-enchantment roster in the README, or add only three enchantments to each of the two tiers you specify?
📄
time.md
md
218 lines
▶
## Tier III: Spectral Enchantments
Spectral enchantments introduce powerful abilities that can change the outcome of combat. They should have clear triggers and meaningful cooldowns.
| Enchantment | Applies to | Effect |
|---|---|---|
| Riftblade | Sword | Every few successful hits releases a short-range rift strike that damages nearby enemies. |
| Soulbound | Chestplate | Once per cooldown, lethal damage leaves the wearer at 1 health instead of killing them. |
| Tempest | Boots | Sprinting charges a forward dash that knocks enemies aside. |
| Doomshot | Bow | Fully charged arrows create a small explosive impact that damages nearby enemies. |
| Phantom Army | Sword | Defeating an enemy briefly summons spectral copies to attack nearby hostile targets. |
| Arcane Overload | Helmet | Periodically empowers the wearer's next attack with bonus damage. |
| Dreadveil | Sword | Chance to inflict brief Nausea on a successful hit. |
| Crippling Hex | Sword | Chance to apply short Slowness, with a per-target cooldown. |
| Wraithmark | Bow | Arrows briefly reveal opponents with Glowing and weaken their attacks. |
| Spellbreaker | Axe | Chance to inflict Mining Fatigue, disrupting opponents who try to escape through blocks. |
| Frostbite | Sword | Chance to apply Slowness with a brief chilling particle effect. |
| Veilguard | Helmet | When hit, briefly inflicts Darkness on the attacker. Cooldown applies. |
| Hexskin | Chestplate | Chance to apply Weakness to a melee attacker. |
| Phantom Grip | Leggings | When struck, has a chance to briefly slow the attacker. |
| Mistwalk | Boots | Taking damage briefly boosts movement speed to help the wearer reposition. |
| Second Sight | Any armor | After taking damage, briefly grants Glowing to the attacker so they are easier to track. |
**Implementation notes**
- Track hit counts per player and enchantment for Riftblade.
- Make Soulbound's lethal-hit handling robust so it cannot trigger multiple times from the same damage sequence.
- Use a bounded dash distance and check collision and safe destinations.
- For Doomshot, use a controlled damage radius. Avoid terrain damage by default.
- For Phantom Army, limit the number and duration of summons, prevent farming drops and XP, and remove the summons when their lifetime ends.
- Arcane Overload should consume its empowered state on the next valid attack.
---
## Tier IV: Abyssal Enchantments
Abyssal enchantments are rare and powerful. Each has a distinct role without requiring huge visual effects.
| Enchantment | Applies to | Effect |
|---|---|---|
| Worldbreaker | Axe | A charged strike damages and knocks back nearby enemies in a small radius. It may create a short-lived ground-crack effect. |
| Death's Embrace | Chestplate | Once per long cooldown, lethal damage leaves the wearer at 1 health and grants brief damage resistance. |
| Voidwalker | Boots | Sneak-right-click to teleport a short distance, briefly avoiding incoming attacks if the destination is safe. |
| Soul Devourer | Sword | Killing a player grants a short damage buff and a small heal. |
| Mindrot | Sword | Chance to inflict Nausea and Weakness together. |
| Withering Brand | Sword | Every few successful hits apply a short Wither effect, subject to a per-target cooldown. |
| Plague Arrow | Bow | Arrows can inflict Poison and briefly reduce the target's damage. |
| Abyssal Grasp | Axe | Charged hits apply Slowness and Weakness, making escape difficult. |
| Soul Fracture | Sword | A successful combo briefly reduces the target's damage and, where supported, healing effectiveness. |
| Null Field | Helmet | Chance to inflict Blindness on a nearby melee attacker. |
| Torment | Chestplate | Melee attackers have a chance to receive a short Wither effect. |
| Crippling Ruin | Leggings | Being hit can briefly inflict Slowness on the attacker. |
| Soul Anchor | Boots | Reduces incoming knockback and briefly slows nearby attackers after a heavy hit. |
| Malice Ward | Any armor | After taking several hits, releases a short pulse of Weakness around the wearer. |
**Implementation notes**
- Decide whether Worldbreaker changes actual blocks or uses particles only. Particle-only cracks are safer and simpler.
- Prevent Death's Embrace from stacking with Soulbound or Second Life in a way that causes repeated lethal-hit loops.
- Respect region protections, teleport restrictions, and PvP settings.
---
## Tier V: Oblivion Enchantments
Oblivion is the highest tier. These enchantments should feel dramatic and powerful through terrain effects, summoned allies, and impactful combat abilities, while remaining feasible to implement and safe for a multiplayer server.
The added PvP enchantments are split into distinct weapon and armor abilities. Weapon effects trigger on successful attacks; armor effects trigger when the wearer is attacked or crosses a defined defensive threshold. Keep durations short, use cooldowns, and make trigger chances configurable to prevent stun-locking.
### 1. Cataclysm
- **Applies to:** Weapon
- **Activation:** Sneak-right-click.
- **Effect:** Slams the ground, damaging and launching enemies within a limited radius.
- **Visuals:** A shockwave with dust, block-crack, and impact particles. Actual block changes are optional.
- **Suggested cooldown:** 35 seconds.
**Implementation notes:** Use a bounded radius and apply damage/knockback to eligible nearby enemies. Prefer particles or temporary block displays for the cracked-ground look. If blocks are changed, record their original states and restore them safely. Respect WorldGuard and other protection plugins.
### 2. Soul Reaper
- **Applies to:** Sword or other designated weapon.
- **Trigger:** Every fifth successful hit, subject to cooldown.
- **Effect:** Releases a soul wave that damages nearby enemies and heals the wielder for 25% of the total damage dealt by the wave.
- **Range:** Approximately 4 blocks.
- **Suggested cooldown:** 12 seconds.
**Implementation notes:** Track valid hits per player. Apply damage once per eligible target and calculate healing from the actual damage dealt, with a sensible healing cap. Do not count cancelled hits or allow the wave to repeatedly trigger itself.
### 3. Earthshatter
- **Applies to:** Axe or other designated weapon.
- **Activation:** Charged or sneak-right-click attack.
- **Effect:** Sends a line-shaped ground fracture toward enemies, dealing damage and briefly slowing targets caught in its path.
- **Range:** Approximately 6 blocks.
- **Suggested cooldown:** 25 seconds.
**Visuals:** Use block-crack particles, dust, and stone particles along the line.
**Implementation notes:** The simplest safe version uses particles and damage checks without changing real terrain. If temporary blocks are added later, restore original block states and never overwrite player changes, containers, protected blocks, or blocks inside protected regions.
### 4. Armageddon
- **Applies to:** Chestplate.
- **Trigger:** When the wearer would receive lethal damage.
- **Effect:** Once per cooldown, prevents that death by leaving the wearer at 1 health, releases a fiery shockwave that damages nearby enemies, grants brief Resistance, and restores a small amount of health only if this does not conflict with the 1-health survival behavior.
- **Suggested cooldown:** 120 seconds.
**Implementation notes:** Handle lethal damage carefully to avoid repeated activation from the same damage event. Use a per-player cooldown and a short-lived activation guard. Apply the area damage only once, exclude the wearer, and respect PvP and region protection rules.
### 5. Blackout
- **Category:** Weapon enchantment.
- **Applies to:** Sword.
- **Trigger:** Chance-based on a successful hit, with a per-target cooldown.
- **Effect:** Briefly applies Darkness and a very short Blindness effect.
- **Suggested cooldown:** 18 seconds per target.
**Implementation notes:** Keep the visual-disruption window short so the effect feels powerful without making PvP unplayable. Check server-version support for Blindness behavior.
### 6. Pandemonium
- **Category:** Weapon enchantment.
- **Applies to:** Sword.
- **Trigger:** Every fourth successful hit, subject to cooldown.
- **Effect:** Applies a short burst of Nausea, Slowness, and Weakness.
- **Suggested cooldown:** 22 seconds.
**Implementation notes:** Count only valid, non-cancelled hits. Apply effects once per activation and prevent the enchantment from retriggering from secondary damage.
### 7. Time Rupture
- **Category:** Weapon enchantment.
- **Applies to:** Axe.
- **Trigger:** Charged hit.
- **Effect:** Briefly applies strong Slowness and releases a small visual shockwave.
- **Suggested cooldown:** 28 seconds.
**Implementation notes:** Keep the duration short, validate range, and avoid applying the effect through walls.
### 8. Doom Plague
- **Category:** Weapon enchantment.
- **Applies to:** Bow.
- **Trigger:** Fully charged arrow hit, chance-based with a cooldown.
- **Effect:** Can inflict Poison, Wither, or Weakness, with a cooldown preventing constant activation.
- **Suggested cooldown:** 24 seconds.
**Implementation notes:** Ensure each arrow triggers the effect only once. Respect friendly-fire and region rules.
### 9. King's Bane
- **Category:** Weapon enchantment.
- **Applies to:** Sword.
- **Trigger:** Consecutive successful hits build a mark that triggers a final strike.
- **Effect:** A powerful final strike deals bonus damage and briefly applies Slowness.
- **Suggested cooldown:** 25 seconds.
**Implementation notes:** Reset the hit counter after a long gap, on target changes if configured, and after the empowered strike.
### 10. King's Decree
- **Category:** Armor enchantment.
- **Applies to:** Chestplate.
- **Trigger:** Chance-based when hit by a melee attack.
- **Effect:** Briefly applies Slowness and Weakness to the attacker.
- **Suggested cooldown:** 30 seconds.
**Implementation notes:** Exclude the wearer from the effect, use the actual attacker as the target, and respect PvP and region protection rules.
### 11. Abyssal Reversal
- **Category:** Armor enchantment.
- **Applies to:** Helmet.
- **Trigger:** Once per cooldown after taking a heavy hit.
- **Effect:** Briefly inflicts Blindness and Nausea on the attacker.
- **Suggested cooldown:** 35 seconds.
**Implementation notes:** Use a short duration and a damage threshold so minor hits do not trigger it constantly.
### 12. Cataclysmic Guard
- **Category:** Armor enchantment.
- **Applies to:** Chestplate.
- **Trigger:** Taking a heavy hit.
- **Effect:** Releases a shockwave that damages and knocks back nearby enemies.
- **Suggested cooldown:** 40 seconds.
**Implementation notes:** Apply damage only once per eligible target, exclude the wearer, and respect protection plugins.
### 13. Void Shackles
- **Category:** Armor enchantment.
- **Applies to:** Leggings.
- **Trigger:** Chance-based when struck by a melee attack.
- **Effect:** Applies strong Slowness to the attacker for a short duration.
- **Suggested cooldown:** 25 seconds.
**Implementation notes:** Add per-attacker cooldown tracking to prevent rapid multi-hit attacks from repeatedly refreshing the effect.
### 14. Armageddon
- **Category:** Armor enchantment.
- **Applies to:** Any armor.
- **Trigger:** When the wearer would receive lethal damage.
- **Effect:** Once per long cooldown, prevents that death by leaving the wearer at 1 health, releases a fiery shockwave that damages nearby enemies, and grants brief Resistance.
- **Suggested cooldown:** 120 seconds.
**Implementation notes:** Handle lethal damage carefully to avoid repeated activation from the same damage event. Use a per-player cooldown and a short-lived activation guard. Apply the area damage only once, exclude the wearer, and respect PvP and region protection rules.
---
## PvP weapon and armor enchantment rules
- Weapon enchantments trigger on valid outgoing attacks or their explicitly documented activation.
- Armor enchantments trigger on incoming damage, attacker retaliation, or a defined defensive threshold.
- Each new PvP enchantment is a distinct entry with its own item category; weapon and armor effects are not shared across an entire tier.
- Use per-player and, where needed, per-target cooldowns. Prevent duplicate triggers from main-hand/off-hand processing or multiple armor pieces.
- Make chance, effect duration, cooldown, and eligible damage source configurable.
- Respect PvP settings, team/friendly-fire rules, WorldGuard, and other protection plugins.
What would you like me to do with time.md—implement all Tier III–V enchantments, add a specific tier, or review the design?
tier 3 is spectral and tier 4 is abyssal tier 5 is oblivion
Understood: Tier III = Spectral, Tier IV = Abyssal, and Tier V = Oblivion.
Add the enchantments like said in the time.md file
Add the Tier III Spectral enchantments.
Add Tier IV Abyssal enchantments.
Add Tier V Oblivion enchantments and their combat safeguards.
Implemented the enchantments from time.md across Spectral (Tier III), Abyssal (Tier IV), and Oblivion (Tier V). Added their item categories, combat effects, cooldowns, and configurable chances, durations, thresholds, and damage sources.
Also moved Frostbite from Phantom to Spectral, added both chestplate and any-armor Armageddon variants with a shared cooldown, and added safeguards for once-per-arrow effects, secondary-damage retriggers, PvP-disabled worlds, and scoreboard teams with friendly fire disabled.
Add a new tier named Core with enchantments:
Unbreaking 5 (83.3% chance to ignore durabilty loss) Fortune 5: Adds 6x drops to the pool (Average multiplier: ~3.14x drops).
Looting 5: would raise the skull drop chance to 7.5%, nearly tripling your farming speed.
Protection 5: Placed on all 4 armor pieces (4 pieces × 5 levels = 20 total levels), it hits a perfect 20 × 4% = 80% damage reduction Power 5: Multiplies a fully charged arrow's base damage by 150%. A critical hit from a Power 5 bow deals roughly 23 to 25 points of damage (11.5 to 12.5 hearts).
Add Core tier and its five enchantments to the existing enchant definitions.
Implement durability, drops, skull chance, armor protection, and bow damage effects.
Update configuration and confirm registration uses the new tier.
Added the Core tier with Unbreaking V, Fortune V, Looting V, Protection V, and Power V.
Unbreaking V: 5/6 chance to prevent durability loss.
Fortune V: Multiplies eligible block drops by 1–6, averaging 3.14×.
Looting V: Sets wither skeleton skull drop chance to 7.5%.
Protection V: Reduces incoming damage by 20% per enchanted armor piece.
Power V: Fully charged bow arrows deal 2.5× damage.
Added Core to the tier tokens, enchantment list, and invalid-tier message.
package com.ovion;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public final class OvionPlugin extends JavaPlugin {
private EnchantmentItems enchantmentItems;
private EnchantmentListener enchantmentListener;
@Override
public void onEnable() {
saveDefaultConfig();
enchantmentItems = new EnchantmentItems(this);
enchantmentListener = new EnchantmentListener(this, enchantmentItems);
enchantmentListener.cleanupSummons();
Bukkit.getPluginManager().registerEvents(enchantmentListener, this);
EnchantmentListGUI listGUI = new EnchantmentListGUI(enchantmentItems);
Bukkit.getPluginManager().registerEvents(listGUI, this);
OvionCommand command = new OvionCommand(this, enchantmentItems, listGUI);
getCommand("ovion").setExecutor(command);
getCommand("ovion").setTabCompleter(command);
}
@Override
public void onDisable() {
if (enchantmentListener != null) enchantmentListener.cleanupSummons();
}
public EnchantmentItems enchantmentItems() {
return enchantmentItems;
}
}