realnumerouss

create a plugin with all of the lifesteal custom enchants Enchant Scrolls (E-Scrolls) Can be found in Trial Regular And Rare Vaults (Paper Item) (Right click to open to roll one of the many mythics)

📎 1 file 6,052 chars
📄
pasted-code-1793484121962.txt
txt 67 lines
▶
Custom enchantments
Enchantment	Item	Rarity	Description
Adrenaline	Sword	Rare	After a kill, grants Strength II, Speed II, and Regeneration I for 5 minutes.
Artemis	Bow	Legendary	A fully drawn bow shot grants Speed II for 50 seconds.
Ascent	Mace	Legendary	Hitting an opponent launches them into the air. 6-second cooldown.
Athletic	Leggings	Rare	Continuously sprinting increases Speed every 3 seconds, up to Speed III.
Autoloading Holster	Crossbow	Rare	Automatically reloads the crossbow 5 seconds after shooting, using inventory ammunition.
Autosmelt	Pickaxe	Common	Automatically smelts mined ores.
Berserk	Helmet	Legendary	After being hit, grants Strength III for 10 seconds, followed by Strength II for 1 minute. 2-minute cooldown.
Bolt	Trident	Common	Hitting an enemy strikes them with lightning and deals 15 hearts of damage. 30-second cooldown.
Bounceback	Shield	Removed	Gives a 100% chance to knock back an attacker who hits the shield.
Bulwark	Shield	Common	Grants Resistance II for 5 seconds when the shield is disabled. 30-second cooldown.
Clapback	Chestplate	Rare	Returns the damage received to the attacker and applies Slowness II for 5 seconds. 60-second cooldown.
Cleaving	Axe	Rare	Deals 5 hearts of damage when disabling an enemy's shield.
Compound	Bow	Common	Charging a bow for 5 seconds increases its damage, up to 4 hearts of additional true damage.
Concuss	Mace	Rare	Disables opponents' custom enchantments for 15 seconds. 60-second cooldown, with a 5-second activation requirement.
Counter	Shield	Legendary	Has a 30% chance to disable the shield of someone who disables yours.
Critical	Sword	Rare	Has a 10% chance for a critical hit to deal double damage.
Deflector	Chestplate	Common	Deflects arrows that hit the player.
Delusional Strength	Sword	Rare	Grants permanent Strength IV.
Demolitionist	Leggings	Rare	Reduces explosion damage by 35%.
Drunken	Helmet	Removed	Grants permanent Strength IV but increases incoming damage by 50%.
Endurance	Leggings	Common	Grants permanent Speed I and allows sprinting without hunger.
Extinguish	Leggings	Rare	Grants permanent Fire Resistance.
Firefly	Sword	Legendary	Hitting a player 5 times consecutively triggers an explosion that damages nearby players. 30-second cooldown.
First Strike	Sword	Legendary	Deals 75% additional damage if you haven't hit the target in 15 seconds.
Fling	Sword	Common	Has a 15% chance to launch a hit player 10 blocks upward.
Frost	Crossbow	Common	Applies Slowness and Mining Fatigue for 15 seconds. 10-second cooldown.
Hardhat	Helmet	Rare	Reduces mace and falling dripstone damage by 75%.
Harmonic	Helmet	Rare	Has a 20% chance to share received potion effects with nearby teammates.
Headless	Sword/Axe	Common	Kills have a 100% chance to drop the player's head.
Heavenly	Helmet	Legendary	Prevents death by activating a totem-like effect, consuming 30% durability. 5-minute cooldown.
Homing	Bow	Rare	Has a 40% chance to shoot an arrow that homes toward a player.
Hook	Fishing Rod	Legendary	Hooking a player applies Slowness II for 5 seconds.
Immunity	Boots	Rare	Grants immunity to Poison, Wither, Weakness, and Slow Falling.
Impale	Spear	Common	Deals 4 times additional armor durability damage when hitting a player.
Infernal	Crossbow	Legendary	Adds a flame effect to crossbow shots. 45-second cooldown.
Lifebloom	Leggings	Legendary	Grants nearby teammates permanent Regeneration I within 9 blocks.
Lifesteal	Sword	Common	Has a 20% chance to grant Regeneration II for 3 seconds when damaging another player.
Low Ground	Axe	Legendary	Deals 35% additional damage when attacking someone at least 0.25 blocks above you.
Necromancer	Leggings	Common	Mobs do not target you unless you attack them first.
Ninja	Boots	Common	Grants invisibility while sneaking. Removed when combat-tagged and provides immunity to Glowing.
Patient Swing	Axe	Common	Holding an axe for 3 seconds charges the next hit for 30% additional damage.
Planter	Hoe	Common	Automatically plants a seed from your inventory when tilling dirt.
Pull	Fishing Rod	Common	Greatly increases fishing-rod pulling distance.
Quarry	Pickaxe/Shovel	Legendary	Mines a 3×2×2 area when breaking a block.
Rally	Shield	Rare	Grants Regeneration II while blocking with a shield.
Reaper	Axe	Legendary	Critical hits have a 50% chance to remove 10 seconds from positive potion effects on the target.
Reinforce	Any item	Common	Reduces durability damage taken by 50%.
Replant	Hoe	Rare	Automatically replants crops after harvesting. 25-second cooldown per farmland block.
Sand Paper	Axe	Common	Deals 50% additional armor durability damage. 2-second cooldown.
Shock	Chestplate	Rare	Negates one incoming hit. Refreshes every 30 seconds.
Slash	Sword	Rare	Damages all players within 1.5 blocks of the target.
Slayer	Sword	Rare	Has a 5% chance to kill 25 mobs in a stack.
Soulbound	Weapons/Tools/Armor	Removed	Keeps an enchanted item after death, but consumes the enchantment.
Sustenance	Helmet	Common	After 30 seconds without taking damage, regenerates 1 saturation every 3 seconds.
Tank	Chestplate	Common	Grants Resistance I when below 35% health and hit by 2+ players; Resistance II when hit by 4+.
Telekinesis	Various	Removed	Automatically puts mined or collected items into your inventory.
Timber	Axe	Common	Automatically breaks connected logs when mining one log.
Trickster	Sword	Rare	Has a 1% chance to scramble an opponent's hotbar.
Unbroken Chain	Sword	Legendary	Each consecutive hit without receiving damage adds 5% damage, up to 50%.
Underdog	Sword	Rare	Below 6 hearts, grants Strength III for 3 seconds, followed by Strength II for 1 minute.
Unstable	Helmet	Rare	Automatically teleports you using a chorus-fruit effect below 40% health. 30-second cooldown.
Vein Miner	Pickaxe	Common	Automatically breaks all connected ores in a vein.
Volley	Bow	Common	Has a 20% chance to fire 2 arrows consecutively.
Vortex	Trident	Legendary	Pulls nearby players toward a landed trident within 7 blocks. 10-second cooldown.
Weightless	Boots	Rare	Completely removes fall damage.
Kodari AI
KodariOct 31 at 10:11 pm 2
LifestealEnchantScrolls
Creates a lifesteal-themed custom enchantment system with Enchant Scrolls (E-Scrolls) obtainable from Trial, Regular, and Rare Vaults. E-Scrolls are Paper items that players right-click to open, rolling one of 60+ unique mythic enchantments. Enchantments apply to specific item types (swords, bows, armor, tools) with rarities from Common to Legendary, each providing unique combat, utility, or survival effects. Includes a GUI-based vault opening system, enchantment application mechanics, and comprehensive effect handlers for all custom enchantments.
  1. Add the complete enchant catalog and compatible-item rules, excluding removed enchants from rolls.

  2. Add paper vaults and E-Scrolls that roll rarity-based enchant tomes, plus a command to issue them.

  3. Add the plugin setup and event handling for enchant application and supported combat/passive effects.

Added the full enchant catalog, excluding the marked-removed enchants from scroll rolls. Trial, Regular, and Rare Paper vaults grant tiered Enchant Scrolls; right-clicking a scroll rolls a tome, which you apply by holding it opposite a compatible item. Admins can issue items with /lifesteal give <player> <scroll|trial|regular|rare> [tier] [amount].

Scope note: The catalog and item flow are in place, but not every enchant’s listed effect is implemented yet. The vaults are custom items; they are not injected into another plugin’s vault loot tables.

realnumerouss

make sure the version is 1.21.11

Kodari AI
KodariOct 31 at 10:12 pm 1
  • Update the Paper API dependency and plugin api-version to 1.21.11.

Updated the Paper API dependency and plugin.yml API version to 1.21.11.

realnumerouss

make it so I can do /lifesteal give <customitem> (what ever custom item i put. Exg /lifesteal give firststrike

Kodari AI
KodariOct 31 at 10:26 pm 1
  • Accept /lifesteal give <enchant> as a self-give command.

  • Match enchant names case-insensitively, including compact forms like firststrike; keep existing player-and-vault syntax intact.

/lifesteal give firststrike now gives the executing player a First Strike enchant tome. Enchant names are case-insensitive and can be entered with or without separators; removed enchants are rejected. The existing player-targeted vault and scroll commands still work.

realnumerouss

and make a /gui command and make everything look way cleaner and coolor (text wise)

Kodari AI
KodariOct 31 at 10:31 pm 1
  1. Add /lifesteal gui to browse and receive the custom items.

  2. Refresh the plugin’s player-facing text with consistent colors and cleaner formatting.

Added /gui and /lifesteal gui. The paginated menu lists available enchant tomes and Trial, Regular, and Rare vaults and scrolls; clicking an entry gives it to you. Both commands require lifesteal.admin.

Updated item names and lore with clearer rarity and usage details, and gave player messages a consistent colorful prefix.

realnumerouss

and remove the rare, regular, and trial key and instead make it so legendaries are the rarest, rare, then common from a a escroll

Kodari AI
KodariOct 31 at 10:34 pm 1
  1. Remove Trial, Regular, and Rare keys from the GUI and item-giving flow.

  2. Replace them with enchant scrolls categorized Common, Rare, and Legendary, with Legendary as the rarest.

Removed Trial, Regular, and Rare vault/key items. The GUI now offers one Enchant Scroll, which rolls Common (70%), Rare (25%), or Legendary (5%) enchants.

Use /lifesteal give scroll for yourself or /lifesteal give <player> scroll [amount] to give scrolls to someone else.

realnumerouss

Legndary (Orange) Rare (Blue) Common (Green)

Kodari AI
KodariOct 31 at 10:34 pm 1

Updated rarity colors: Legendary orange, Rare blue, and Common green.

realnumerouss

heavenly is not working, also make the gui go from legendary, rare, common in alphabettical order, and make it so only people with op can pick specific ones. Also, make it so the lore on the custom enchants will say what armor piece it goes to. For exmaple , First Strike Apllies To Swords. Heavenly Applies to Helmets. And make it so you can not put multiple custom enchants on one item

Kodari AI
KodariOct 31 at 10:44 pm 1
  1. Fix Heavenly’s behavior.

  2. Order the GUI Legendary, Rare, Common.

  3. Restrict specific-enchant giving to OPs.

  4. Add applicable-gear lore and prevent multiple custom enchants on one item.

  • Heavenly now prevents lethal damage, grants totem-like effects, consumes 30% of the helmet’s durability, and has a 5-minute cooldown.

  • GUI enchant tomes are grouped Legendary → Rare → Common, alphabetically within each group. Only OPs can claim specific enchants from the GUI or /lifesteal give; scrolls remain available.

  • Tome and applied-item lore now shows Applies To (for example, First Strike: Swords; Heavenly: Helmets). Items that already have a custom enchant can’t receive another.

realnumerouss

make berserk give strength 3 when hit and strength 2 when the strenth 3 runs out. Ascent and vortext. does not work. Anytime a ability activates make it say in chat. Firefly does not work. Add a custom sound for all of the enchantments that are not passive.

Quarry does not work. Make sure EVERY SINGLE ENCHANTMENT WORKS. Make delusional srenght only give stregth 3 when the player have no armor.

Kodari AI
KodariOct 31 at 11:31 pm 6
  1. Fix Berserk’s Strength III → Strength II behavior and make Delusional grant Strength III only without armor.

  2. Repair Ascent, Vortex, Firefly, and Quarry.

  3. Add activation chat feedback and custom sounds for every non-passive enchant.

  4. Audit the remaining enchantments and fix any other non-working abilities.

Updated the enchantment system:

  • Berserk now triggers on valid incoming damage, grants Strength III for 10 seconds, then Strength II for 60 seconds. Delusional Strength grants Strength III only while the player wears no armor.

  • Fixed Ascent, Vortex, Firefly, and Quarry, and added behavior for the previously unimplemented non-removed enchants.

  • Successful non-passive activations now send a chat message and play a sound.

  • Tome application still prevents adding more than one custom enchant to an item. The four enchants marked Removed remain unavailable.

Live server behavior hasn’t been tested here.

realnumerouss

instead if right clicking a custom enchant with the item offhanded, make it so if you hover over and click an applicable item with the custom enchant in your mouse in your inventory it aplies to it (like lsn)

Kodari AI
KodariOct 31 at 11:33 pm 1
  1. Replace off-hand tome application with cursor-tome → inventory-item click handling.

  2. Preserve compatibility/duplicate-enchant checks and consume one tome only after a successful application.

  3. Update tome instructions to describe the new interaction.

Tomes now apply by holding the enchant book on your cursor and clicking a compatible item in your inventory. Successful application consumes one tome; incompatible items can still be clicked normally, and items that already have a custom enchant are left unchanged. Updated the tome lore instructions.

realnumerouss

hardhat, concuss, bulwark, slash, immunity, infernal, clapback dos not work. remove slayer, fling headless, lifebloom, and harmoic and make deflector a rare enchant.

Make rally give regen 2. Make Volley 100% instead of 20. Fix cleaiving. Nerf compound by 50% make ninja only give invis while sneaking, and make it so it actually works

Kodari AI
KodariOct 31 at 11:50 pm 3
  1. Repair Hardhat, Concuss, Bulwark, Slash, Immunity, Infernal, and Clapback.

  2. Remove Slayer, Fling, Headless, Lifebloom, and Harmonic; make Deflector rare.

  3. Change Rally and Volley, fix Cleaving, reduce Compound by 50%, and make Ninja invisibility work only while sneaking.

  1. Enchant fixes: Infernal now ignites the hit target; Immunity still blocks its listed effects while the player is concussed; Bulwark and Cleaving now handle axe hits that shields fully block. Concuss’s charge timer now requires holding the enchanted mace, and Slash’s splash damage no longer recursively triggers more Slashes.

  2. Removed enchants: Slayer, Fling, Headless, Lifebloom, and Harmonic are removed from the enchant list and their listeners. Deflector is now Rare.

  3. Balance and Ninja: Volley now always fires a second arrow. Compound’s bonus damage is halved, and Ninja’s invisibility updates immediately on sneak changes and is only granted while sneaking. Rally was already set to Regeneration II while blocking. Hardhat and Clapback already had working damage checks in the code, so I left those unchanged.

Live server behavior hasn’t been tested.

realnumerouss

bolt doesn't work and fix under dog

Kodari AI
KodariOct 31 at 11:53 pm 1
  1. Fix Bolt’s activation/effect logic.

  2. Fix Underdog’s activation/effect logic.

  1. Bolt: Tridents enchanted in either hand are now tracked when thrown; hitting a player triggers the lightning effect and bonus damage.

  2. Underdog: Delayed Strength II until one tick after Strength III expires, so the weaker follow-up effect can apply reliably.

Live server behavior hasn’t been tested.

realnumerouss

make infernal shoot a flame arrow

Kodari AI
KodariOct 31 at 11:54 pm 1
  • Make Infernal crossbow shots visibly trail flame particles.

  • Keep the arrow burning and retain the existing hit ignition and cooldown.

Infernal crossbow arrows now trail visible flames, burn in flight, and still ignite targets on hit. The existing 45-second cooldown remains.

realnumerouss

a

Kodari AI
KodariOct 31 at 11:55 pm 1

What would you like me to change?

realnumerouss

quarry bugs out and makes my server crash

Kodari AI
KodariNov 1 at 12:15 am 1
  • Prevent Quarry’s extra block-break events from recursively activating Quarry again.

  • Keep other block-break listeners’ cancellation/protection checks intact.

Quarry was recursively firing its own extra BlockBreakEvents, which could cause runaway block breaking and crash the server. Added a per-player re-entry guard while retaining protection-plugin checks. Live server behavior hasn’t been tested.

realnumerouss

quarry should mine in a 3 by 3 and ot a 3 by 2

Kodari AI
KodariNov 1 at 12:18 am 1
  • Expand Quarry’s mined face from 3×2 to 3×3.

  • Keep the current orientation logic, extra-break events, and re-entry guard unchanged.

Quarry now mines a 3×3 face instead of 3×2, preserving its orientation handling and protection checks.

realnumerouss

make a little explosion happen during firefly. add custom sound firefly - /playsound minecraft:entity.generic.explode unbroken chain - per chain /playsound minecraft:block.chain.place first strike - /playsound minecraft:item.trident.thunder heavenly - /playsound minecraft:item.totem.use quarry - /playsound minecraft:entity.dragon_fireball.explode beserk - /playsound minecraft:entity.ender_dragon.ambient clapback - /playsound minecraft:block.anvil.destroy deflector - /playsound minecraft:item.shield.block critical - /playsound minecraft:item.armor.equip_netherite cleaving - /playsound minecraft:block.anvil.place concuss - /playsound minecraft:entity.player.levelup

nerf bolt by 50% and make it a legendarry make uchain actiave after 4 consecutive hits, make it say in chat the amount of percentage for example, 5% 10% 15% 20% 25%, etc. After getting hit, make it say "chained disturbed" and playing the sound /playsound minecraft:block.chain.break

Kodari AI
KodariNov 1 at 12:36 am 2
  1. Add a small explosion effect during Firefly.

  2. Add the requested sounds to their enchant activations.

  3. Nerf Bolt by 50% and make it Legendary.

  4. Update Unbroken Chain to activate after four consecutive hits, announce its percentage, and announce/play its disturbance sound when hit.

  • Firefly now creates a smaller explosion.

  • Added the requested activation sounds for First Strike, Heavenly, Quarry, Berserk, Clapback, Deflector, Critical, Cleaving, and Concuss. Firefly already used the explosion sound.

  • Bolt is now Legendary, and its bonus damage is halved from 15 hearts to 7.5.

  • Unbroken Chain starts its 5% damage bonus on the fourth consecutive hit, increases by 5% per hit up to 50%, and shows the current percentage in chat. Taking damage breaks an active chain, sends “chained disturbed,” and plays the chain-break sound.

realnumerouss

a

Kodari AI
KodariNov 1 at 12:37 am 1

What would you like me to change?

realnumerouss

nerf patient swing by 75% it does way too mcuh damage

Kodari AI
KodariNov 1 at 12:49 am 1
  • Reduce Patient Swing’s 30% bonus damage by 75%, leaving a 7.5% bonus.

  • Update its enchant description to match.

Patient Swing’s bonus damage is reduced by 75% (from 30% to 7.5%), and its enchant description now reflects the change.

realnumerouss

make the lore for quarry say 3x3 and not 3x2x2

Kodari AI
KodariNov 1 at 12:50 am 1

Updated Quarry’s lore to say it mines a 3×3 area.

realnumerouss

make infernal sound /playsound minecraft:item.firecharge.use

Kodari AI
KodariNov 1 at 12:51 am 1

Infernal now plays the fire-charge-use sound when activated.

realnumerouss

make everyone be able to do /gui but not be able to take things

Kodari AI
KodariNov 1 at 12:53 am 1
  1. Remove the admin permission requirement from /gui.

  2. Keep the menu fully click-cancelled and remove the click-to-claim behavior.

/gui is now available to everyone. The menu is view-only: clicks and drags cannot take or move items, while page navigation and close still work.

realnumerouss

readd Slayer, Fling, Headless,

Kodari AI
KodariNov 1 at 12:55 am 1

Slayer, Fling, and Headless aren’t in the current code, and there’s no record of their previous effects. What should each enchant do, and which items should they apply to?

realnumerouss

headless, applicable to swords. Killing a player drops their head. Common Fling, applicable to swords. Has a 15% chage to fling a player away - /playsound minecraft:entity.breeze.wind_burst Common Blitz does 25 hearts of dmg if u fall 20 blocks with mace Exotic (New Rarity, Red, 1%) Applicable to maces Lepus, Using a spear launches you 10 blocks into the air, has a 15-second Cooldown, Exotic, Applicable to spears 1% Arachnid, Gives permanent Weaving, so cobwebs slow you down less. Applicable to boots, Exotic 1%

Make the rare enchants light blue instead of dark blue

Kodari AI
KodariNov 1 at 1:12 am 3
  1. Restore Headless and Fling.

  2. Add Blitz and its Exotic rarity.

  3. Add Lepus and its cooldown.

  4. Add Arachnid and change Rare’s color to light blue.

  5. Slayer still needs an effect description; I’ll ask after these changes.

  1. Restored Headless: sword kills drop the victim’s player head. Fling has a 15% chance to launch the target and plays the breeze wind-burst sound.

  2. Added Blitz: a mace hit after falling at least 20 blocks deals 25 hearts of damage. It’s Exotic; Exotic scroll odds are 1% (Common is now 69%).

  3. Added Lepus: using a spear launches you upward, with a 15-second cooldown.

  4. Added Arachnid: boots grant permanent Weaving. Rare enchant text is now light blue.

  5. Slayer still needs a description—what should it do, and what item should it apply to?

realnumerouss

make firefly cause a explosion that breaks blocks. make quarry not break bedrock. When mining a block by obbi, make quarry not mine the obsidian unless obsidian is being mined make underdog legendary forget about slayer. lepus and arachnid are also exotic btw exotic is at the top of the gui

Kodari AI
KodariNov 1 at 1:13 am 1
  1. Make Firefly’s explosion break blocks.

  2. Prevent Quarry from mining bedrock and avoid mining obsidian unless obsidian itself was mined.

  3. Set Underdog to Legendary.

  4. Keep Lepus and Arachnid Exotic, and move Exotic to the top of the GUI.

  • Firefly’s small explosion now breaks blocks.

  • Quarry skips bedrock and won’t mine nearby obsidian unless the mined block is obsidian.

  • Underdog is now Legendary.

  • Lepus and Arachnid are already Exotic, and Exotic enchants are already sorted first in the GUI.

realnumerouss

make it so operators can take things from the gui

Kodari AI
KodariNov 1 at 1:19 am 1
  • Keep /gui open to everyone and cancel interactions by default.

  • Allow operators to take reward items from the display slots, without changing navigation or drag protections.

Operators can now take enchant items from /gui; everyone else remains unable to take items, and GUI navigation and drag protections are unchanged.

realnumerouss

blitz - /playsound minecraft:entity.wither.break_block lepus - /playsound minecraft:entity.breeze.wind_burst weightless - /playsound minecraft:block.honey_block.fall atheltic - minecraft:entity.horse.gallop (every speed level up) make it go up to speed 3 when a player stop moving with atheletic - /playsound minecraft:entity.horse.land

Kodari AI
KodariNov 1 at 1:34 am 1
  1. Set Blitz’s activation sound.

  2. Set Lepus and Weightless sounds.

  3. Update Athletic to speed III, play a sound per level-up, and play its stop-movement sound.

  • Blitz now plays the wither break-block sound; Lepus plays the breeze wind-burst sound; Weightless plays the honey-block fall sound.

  • Athletic plays the horse gallop sound each time it levels up, caps at Speed III, and plays horse land when movement stops while Athletic is equipped.

realnumerouss

make lepus ability on attack (left click)

Kodari AI
KodariNov 1 at 1:34 am 1
  1. Trigger Lepus on main-hand left-click with a spear; leave other right-click enchant abilities unchanged.

Lepus now activates on main-hand left-click with a spear, retaining its 15-second cooldown and leaving other enchant abilities unchanged.

realnumerouss

change atheletic to boots instead of leggings. Make it so when you click something in the gui (if you are operator) it puts it in your inventory so you don't have to drag it.

Kodari AI
KodariNov 1 at 1:41 am 1
  1. Change Athletic’s applicable equipment from leggings to boots.

  2. Let operators click GUI items to add them to their inventory, while preserving non-operator protections.

  • Athletic now applies to boots instead of leggings.

  • Operators can click an enchant or scroll in /gui to receive it directly in their inventory. GUI items remain protected from moving or dragging for everyone else.

realnumerouss

Nice, now make a command (/trialchamber loot rare) allowing me to change the loot table of a ominous vault and adding / removing items, and changing the percentages

Kodari AI
KodariNov 1 at 2:09 am 2
  1. Inspect command registration, vault interaction handling, and existing loot/rarity data.

  2. Add /trialchamber loot rare administration for adding/removing items and adjusting drop percentages.

  3. Persist the edited table and apply it to ominous vaults.

Added /trialchamber loot rare for operators. It edits a persistent rare loot table applied to all ominous vaults:

  • /trialchamber loot rare add <percent> adds the item in your main hand.

  • /trialchamber loot rare add <material> <percent> adds a material.

  • /trialchamber loot rare remove <index|material> removes an entry.

  • /trialchamber loot rare chance <index|material> <percent> changes its chance.

  • /trialchamber loot rare list shows entries and chances.

Configured chances can total up to 100%; any unassigned chance gives no item. With no custom entries, ominous vaults keep their vanilla loot.

realnumerouss

make it open a gui

Kodari AI
KodariNov 1 at 2:18 am 1
  • Open a rare-loot editor GUI from /trialchamber loot rare.

  • Add held items from the GUI, adjust percentages by clicking, and remove entries there.

  • Keep the existing permission checks and save changes to the current config table.

/trialchamber loot rare now opens a loot editor GUI. Hold an item and click Add Held Item to add it at 1%; click a loot entry to adjust its chance by 0.1%, shift-click to adjust by 1%, or press Q/middle-click to remove it. Changes save automatically, and the existing permission check remains in place.

realnumerouss

shift right click to remove items

Kodari AI
KodariNov 1 at 2:18 am 1
  • Update the loot GUI so shift-right-click removes an entry, keeping existing removal gestures unchanged.

Shift-right-click now removes a loot entry. Shift-left-click still increases its chance by 1%, and Q/middle-click removal still works.

realnumerouss

right click to decrease percent (by 1) left click to increase (by 1)

Kodari AI
KodariNov 1 at 2:19 am 1
  • Set regular left-click to increase chance by 1% and right-click to decrease it by 1%, keeping shift-right-click removal.

Loot entries now increase by 1% on left-click and decrease by 1% on right-click. Shift-right-click, middle-click, and Q still remove entries.

realnumerouss

make a rare vault drop 3 items

Kodari AI
KodariNov 1 at 2:29 am 1

[Generation stopped]

realnumerouss

3 rotations

Kodari AI
KodariNov 1 at 2:29 am 1

[Generation stopped]

realnumerouss

make a rare vault go through 3 rotation and not one

Kodari AI
KodariNov 1 at 2:29 am 1
  • Make each rare-vault loot activation roll three separate rewards.

  • Keep each rotation’s chance independent, and skip any roll that lands on unassigned chance.

Rare ominous vaults now make three independent loot rolls per activation, so they can dispense up to three items instead of one. Unassigned chance can still result in fewer.

realnumerouss

counter doesn't work. 30% chance when your shield gets broken so does theirs ninja does not give the invis it is suppose to give immunity does not clear the negative option effects reinforce does not add 100 armor dura beserk does not work (suppose to give strength 3 after getting hit once for 15 seconds) hardhat should be exotic add a mace cool down, mace cap, and spear cooldown gui (/itemgui) pull doesnt work . pull | fishing rod range is normal suppose to be farther patient swing sound - /playsound minecraft:item.axe.strip trickster broken. trickster should scramble the opponet's hotbar ascent does not work. Should launch the player getting mace up with the attacker for a change to gain another mace attack (7 second cooldown) concuss should say "you concuss'd (player)" volly doesnt work. should shoot out 2 arrows only shoot out one autoloading holester doesnt work. should automatically reload

Kodari AI
KodariNov 2 at 12:35 am 5
  1. Fix Counter: 30% chance to break the opponent’s shield when yours breaks.

  2. Fix Ninja invisibility and Immunity’s negative-effect cleanse.

  3. Fix Reinforce durability and Berserk’s Strength III trigger/duration.

  4. Make Hardhat Exotic.

  5. Add mace cooldown/cap and spear cooldown controls to /itemgui.

  6. Extend Pull’s fishing-rod range.

  7. Set Patient’s swing sound.

  8. Fix Trickster hotbar scrambling and Ascent’s launch/re-attack effect with a 7-second cooldown.

  9. Fix Concuss’s message and Volley’s two-arrow behavior.

  10. Fix Autoloading Holster’s automatic reload.

  1. Counter: the shield-break event had zero damage, so the listener returned before Counter ran. Moved its 30% roll to the earlier shield-hit handling.

  2. Next: fix Ninja invisibility and Immunity’s negative-effect cleanse.

  1. Ninja: delayed the invisibility check until after the sneak toggle updates; it now checks the actual sneak state and combat tag. Immunity: actively removes Poison, Wither, Weakness, and Slow Falling during passive refresh.

  2. Next: fix Reinforce’s durability reduction and Berserk’s Strength III trigger/duration.

  1. Berserk now grants Strength III for 15 seconds, then Strength II; its description matches. Reinforce now absorbs 100 durability damage per enchanted armor piece, tracked persistently.

  1. Hardhat is now Exotic.

  2. Next: add mace cooldown/cap and spear cooldown controls to /itemgui.

  1. /itemgui now lets operators adjust Ascent’s mace cooldown, Blitz’s damage cap, and Lepus’s spear cooldown; values persist in config.

  2. Next: extend Pull’s fishing-rod range.

  1. Pull now boosts the hook’s cast velocity and pulls caught entities more forcefully.

  2. Next: play the requested Patient Swing axe-strip sound.

  1. Patient Swing now plays minecraft:item.axe.strip on its charged hit.

  2. Next: make Trickster scramble the opponent’s hotbar and update Ascent to launch both players for a 7-second re-attack window.

  1. Trickster now shuffles the opponent’s hotbar. Ascent launches both players, with a 7-second default cooldown that remains adjustable in /itemgui.

  2. Next: fix Concuss’s message and make Volley fire two extra arrows.

  1. Concuss now names the target in its message. Volley now gives the second arrow a slight spread so the pair is visibly distinct.

  2. Next: fix Autoloading Holster’s reload after firing.

  1. Counter: the 30% shield-disable roll now runs before blocked hits return for dealing zero damage.

  2. Ninja / Immunity: Ninja checks sneak state after the toggle; Immunity clears Poison, Wither, Weakness, and Slow Falling.

  3. Reinforce / Berserk: Reinforce absorbs 100 durability damage per enchanted armor piece; Berserk grants Strength III for 15 seconds, then Strength II.

  4. Hardhat: changed to Exotic rarity.

  5. /itemgui: operators can adjust Ascent’s mace cooldown, Blitz’s damage cap, and Lepus’s spear cooldown. Settings save to config.

  6. Pull: increased hook cast velocity and the force applied to caught entities.

  7. Patient Swing: charged hits play the axe-strip sound.

  8. Trickster / Ascent: Trickster scrambles the opponent’s hotbar; Ascent launches both players with a 7-second default cooldown.

  9. Concuss / Volley: Concuss names the target in its message; Volley’s second arrow now has a slight spread so it’s distinguishable.

  10. Autoloading Holster: automatic reload now checks for an enchanted crossbow in the offhand too.

[Generation stopped]

realnumerouss

/marketgui currency hand does not work. Also make /marketgui a 9 horizontal and 1 width and the first 2 upgrades on slot 3 and 7. After buying the first upgrade the gui closes and after reopening the gui, the 2 new upgrades show. So on and so on

Kodari AI
KodariNov 3 at 9:50 pm 2
  1. Fix /marketgui currency hand behavior.

  2. Update the 9-slot upgrade layout and make purchases advance to the next two upgrades after reopening.

  1. /marketgui currency hand now saves the held item without requiring admin permission; /marketgui edit remains admin-only.

  2. /marketgui now opens a 9-slot, one-row market with upgrades in slots 3 and 7. A successful purchase closes the GUI; reopening shows the next two upgrades.

realnumerouss

i maxed out the heart market and potion duration still doesn't work.

Kodari AI
KodariNov 3 at 9:57 pm 1
  • Track the full pre-drink effect, not just its duration.

  • Apply the bonus when drinking introduces a stronger effect, even if it replaces a longer, weaker one.

Fixed the potion-duration handling in HeartMarket: drinking a stronger potion now gets the market bonus even when it replaces a longer, weaker effect. The bonus applies to potions consumed after unlocking the upgrade; it doesn’t extend effects that were already active.

realnumerouss

it should not apply a bonus strong effect, it should make the potion duration longer

Kodari AI
KodariNov 3 at 9:59 pm 1
  • Handle the bonus on potion-effect application and increase duration only.

  • Keep the potion’s amplifier unchanged; leave stronger existing effects alone.

Updated potion handling to apply the Heart Market bonus to duration only. It preserves the potion’s original strength and won’t replace a stronger active effect.

realnumerouss

When I splash 8 minute stregth, it still only give me 8 minute strength even though I have max heart market

Kodari AI
KodariNov 3 at 10:01 pm 1
  • Include splash-potion effects in the duration-only bonus hook; keep amplifier unchanged.

Splash potion effects now use the Heart Market duration bonus, so an 8-minute Strength splash should last longer at max level. The potion’s strength remains unchanged.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
12 4,495
src/main/java/com/kodari/lifesteal/LifeStealEnchantsPlugin.java
package com.kodari.lifesteal;

import com.cryptomorin.xseries.XMaterial;
import com.cryptomorin.xseries.XEnchantment;
import com.cryptomorin.xseries.XItemFlag;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.NamespacedKey;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.inventory.meta.PotionMeta;
import org.bukkit.persistence.PersistentDataType;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.potion.PotionType;

import java.util.ArrayList;
import java.util.List;

public final class LifeStealEnchantsPlugin extends JavaPlugin {
    private NamespacedKey itemTypeKey;
    private NamespacedKey enchantKey;
    private EnchantListener enchantListener;
    private BloodmoonEvent bloodmoonEvent;
    private HeartMarket heartMarket;

    @Override
    public void onEnable() {
        itemTypeKey = new NamespacedKey(this, "custom_item");
        enchantKey = new NamespacedKey(this, "enchant");
        heartMarket = new HeartMarket(this);
        Bukkit.getPluginManager().registerEvents(heartMarket, this);
        getCommand("market").setExecutor(heartMarket);
        getCommand("marketgui").setExecutor(heartMarket);
        bloodmoonEvent = new BloodmoonEvent(this);
        Bukkit.getPluginManager().registerEvents(bloodmoonEvent, this);
        getCommand("bloodmoon").setExecutor(bloodmoonEvent);
        getCommand("bloodmoongui").setExecutor(bloodmoonEvent);
        enchantListener = new EnchantListener(this);
        Bukkit.getPluginManager().registerEvents(enchantListener, this);
        CustomItemsGui gui = new CustomItemsGui(this);
        Bukkit.getPluginManager().registerEvents(gui, this);
        getCommand("lifesteal").setExecutor(new LifestealCommand(this, gui));
        getCommand("gui").setExecutor(gui);
        ItemLimiter itemLimiter = new ItemLimiter(this);
        Bukkit.getPluginManager().registerEvents(itemLimiter, this);
        getCommand("itemlimiter").setExecutor(itemLimiter);
        getCommand("itemlimitergui").setExecutor(itemLimiter);
        getCommand("netheriteremove").setExecutor(new NetheriteRemoveCommand(this));
        TrialChamberLoot trialChamberLoot = new TrialChamberLoot(this);
        Bukkit.getPluginManager().registerEvents(trialChamberLoot, this);
        getCommand("trialchamber").setExecutor(trialChamberLoot);
        Bukkit.getScheduler().runTaskTimer(this, () -> Bukkit.getOnlinePlayers().forEach(enchantListener::applyPassiveEffects), 20L, 20L);
    }

    @Override
    public void onDisable() {
        if (bloodmoonEvent != null) {
            bloodmoonEvent.end(false);
        }
    }

    public boolean isBloodmoonActive() {
        return bloodmoonEvent != null && bloodmoonEvent.isActive();
    }

    public int getMarketScrollLuckPercent(Player player) {
        return heartMarket == null ? 0 : heartMarket.getScrollLuckPercent(player);
    }

    public boolean hasEnchant(ItemStack item, CustomEnchant enchant) {
        if (item == null || item.getType().name().equals("AIR")) {
            return false;
        }
        ItemMeta meta = item.getItemMeta();
        return meta != null && meta.getPersistentDataContainer().has(enchantKey(enchant), PersistentDataType.BYTE);
    }

    public boolean hasAnyEnchant(ItemStack item) {
        for (CustomEnchant enchant : CustomEnchant.values()) {
            if (hasEnchant(item, enchant)) {
                return true;
            }
        }
        return false;
    }

    public CustomEnchant getTomeEnchant(ItemStack item) {
        if (item == null || !item.hasItemMeta()) {
            return null;
        }
        return CustomEnchant.byKey(item.getItemMeta().getPersistentDataContainer().get(enchantKey, PersistentDataType.STRING));
    }

    public String getCustomItemType(ItemStack item) {
        if (item == null || !item.hasItemMeta()) {
            return null;
        }
        return item.getItemMeta().getPersistentDataContainer().get(itemTypeKey, PersistentDataType.STRING);
    }

    public ItemStack createScroll() {
        ItemStack item = item("BOOK", "&b&l✦ Enchant Scroll", List.of("&8&m--------------------", "&7Reveal a random custom enchant.", "", "&fCommon: &a69% chance", "&bRare: &e25% chance", "&6Legendary: &c5% chance", "&cExotic: &c1% chance", "", "&e➤ Right-click to reveal", "&8&m--------------------"));
        if (item != null) {
            ItemMeta meta = item.getItemMeta();
            XEnchantment.matchXEnchantment("MENDING").ifPresent(enchantment -> meta.addEnchant(enchantment.getEnchant(), 1, true));
            XItemFlag.of("HIDE_ENCHANTS").ifPresent(flag -> flag.set(meta));
            item.setItemMeta(meta);
        }
        tag(item, "scroll", null);
        return item;
    }

    public ItemStack createTome(CustomEnchant enchant) {
        ItemStack item = item("ENCHANTED_BOOK", enchant.getRarity().getColor() + "&l✦ " + enchant.getDisplayName() + " &8| " + enchant.getRarity().getColor() + enchant.getRarity().getDisplayName(), List.of("&8&m--------------------", "&7" + enchant.getDescription(), "&7Applies To: &f" + enchant.getApplicableItems(), "", "&8Rarity: " + enchant.getRarity().getColor() + enchant.getRarity().getDisplayName(), "&e➤ Hold this tome on your cursor,", "&e then click an applicable item", "&ein your inventory to apply.", "&8&m--------------------"));
        tag(item, "tome", enchant.getKey());
        return item;
    }

    public ItemStack createBloodmoonPotion() {
        ItemStack item = item("POTION", "&c&lBlood Moon Potion",
                List.of("&8&m--------------------", "&7Drinking this starts a Bloodmoon.", "", "&e➤ Consume to begin the event.", "&8&m--------------------"));
        if (item != null) {
            PotionMeta meta = (PotionMeta) item.getItemMeta();
            meta.setBasePotionType(PotionType.WATER);
            item.setItemMeta(meta);
        }
        tag(item, "bloodmoon_potion", null);
        return item;
    }

    public void give(Player player, ItemStack item) {
        var leftovers = player.getInventory().addItem(item);
        leftovers.values().forEach(leftover -> player.getWorld().dropItemNaturally(player.getLocation(), leftover));
    }

    public int getMaceCooldownSeconds() {
        return Math.max(0, getConfig().getInt("item-settings.mace-cooldown-seconds", 0));
    }

    public void setMaceCooldownSeconds(int seconds) {
        getConfig().set("item-settings.mace-cooldown-seconds", Math.max(0, seconds));
        saveConfig();
    }

    public int getMaceCapHearts() {
        return Math.max(0, getConfig().getInt("item-settings.mace-cap-hearts", 0));
    }

    public void setMaceCapHearts(int hearts) {
        getConfig().set("item-settings.mace-cap-hearts", Math.max(0, hearts));
        saveConfig();
    }

    public int getTntMinecartDamageCapHearts() {
        return Math.max(0, getConfig().getInt("item-settings.tnt-minecart-damage-cap-hearts", 0));
    }

    public void setTntMinecartDamageCapHearts(int hearts) {
        getConfig().set("item-settings.tnt-minecart-damage-cap-hearts", Math.max(0, hearts));
        saveConfig();
    }

    public int getSpearCooldownSeconds() {
        return Math.max(0, getConfig().getInt("item-settings.spear-cooldown-seconds", 15));
    }

    public void setSpearCooldownSeconds(int seconds) {
        getConfig().set("item-settings.spear-cooldown-seconds", Math.max(0, seconds));
        saveConfig();
    }

    public int getHeavenlyDurabilityDamagePercent() {
        return Math.max(0, Math.min(100, getConfig().getInt("item-settings.heavenly-durability-damage-percent", 30)));
    }

    public void setHeavenlyDurabilityDamagePercent(int percent) {
        getConfig().set("item-settings.heavenly-durability-damage-percent", Math.max(0, Math.min(100, percent)));
        saveConfig();
    }

    public int getHeavenlyCooldownSeconds() {
        return Math.max(0, getConfig().getInt("item-settings.heavenly-cooldown-seconds", 300));
    }

    public void setHeavenlyCooldownSeconds(int seconds) {
        getConfig().set("item-settings.heavenly-cooldown-seconds", Math.max(0, seconds));
        saveConfig();
    }

    public int getWindChargeCooldownSeconds() {
        return Math.max(0, getConfig().getInt("item-settings.wind-charge-cooldown-seconds", 0));
    }

    public void setWindChargeCooldownSeconds(int seconds) {
        getConfig().set("item-settings.wind-charge-cooldown-seconds", Math.max(0, seconds));
        saveConfig();
    }

    public int getWindChargeCobwebBlocks() {