jkbluemask_18461

make it a paper 1.21.11+ plugin

πŸ“Ž 3 files 26,259 chars
πŸ“„
pasted-code-1783622120211.txt
txt 530 lines
β–Ά
Plant Origins Plugin Specification (Part 1)
Overview

Create a PaperMC 1.21+ plugin called Plant Origins.

The plugin should be written using modern Paper API practices and designed for multiplayer survival servers. It should be modular, optimized, configurable, and capable of supporting 100+ concurrent players.

Each player possesses exactly one Plant Ability that defines their unique powers.

Abilities can evolve, become stronger, and unlock a second ability.

All player data, recipes, and settings must persist through server restarts.

First Join

When a player joins the server for the first time:

Randomly assign one unevolved Plant Ability.
The player cannot choose their ability.
Every ability has an equal chance of being selected.
Save the player's assigned ability permanently.
/plant

Players can use:

/plant

Displays:

Plant Ability

Ability:
Torchflower

Evolution:
Unevolved

Primary Ability:
Ancient Flame

Secondary Ability:
Locked

Biome Modifier:
Normal
Controls
Primary Ability

Activated by:

Swap Offhand Key (Default: F)

The plugin should intercept the offhand swap and prevent actual item swapping if the player has a Plant Ability.

Evolution Ability

Activated by:

Sneak + Swap Offhand

If the player has not evolved:

You haven't evolved your Plant yet.
Cooldowns

Every ability has its own cooldown.

Cooldowns should appear in the Action Bar.

Example:

Ancient Flame
Cooldown: 12.3s

If an ability is ready:

Ancient Flame Ready!
Cold Biome Weakness

Plants dislike freezing environments.

Affected biomes:

Snowy Plains
Snowy Taiga
Ice Spikes
Frozen River
Frozen Ocean
Deep Frozen Ocean
Frozen Peaks
Jagged Peaks
Grove
Stony Peaks (while snowing)

Inside these biomes:

Damage Γ—0.75
Healing Γ—0.75
Radius Γ—0.80
Duration Γ—0.80
Movement Γ—0.85
Cooldowns Γ—1.15

Every few seconds display:

❄ Cold Climate

Your Plant powers are weakened.
Evolution

Players evolve by consuming:

Bucket of Evolution

Using it:

Consumes the item
Evolves the player's Plant Ability
Unlocks Secondary Ability
Plays Totem animation
Plays green particles
Plays deep bass sound

Broadcast:

 has evolved their Plant Ability!

Cannot evolve twice.

/bucketcraft

Permission:

plantorigins.admin

Opening command:

/bucketcraft

Opens a crafting table INVENTORY GUI.

The operator creates a recipe.

Closing the INVENTORY GUI automatically saves the recipe.

Players can immediately craft the Bucket using the new recipe.

Recipe persists after restart.

Seeds of Life

Whenever a player kills another player they receive:

Item:

Material:
Wheat Seeds

Name:
Β§aSeeds of Life

Lore:
Life harvested from another soul.

Message:

+1 Seed of Life
Sapling of Life

A reroll item.

Using it:

Consumes the item
Randomly gives another Plant Ability
Never rerolls into the same ability
Removes evolution

Message:

Your life has taken root elsewhere...
/saplingcraft

Permission:

plantorigins.admin

Opens an editable Crafting Table INVENTORY GUI.

Closing automatically saves the recipe.

Recipe persists after restart.

Ability Statistics

Every Plant Ability should define:

Cooldown
Radius
Damage
Healing
Potion Effects
Duration
Knockback
Speed
Projectile Speed
Lifesteal
Trap Health
Trap Duration
Maximum Range
Evolution Buff
Evolution Ability

Every one of these values must be configurable inside config.yml.

Potion Balance

Increase every amplifier by one level.

Examples:

Speed I β†’ Speed II
Strength II β†’ Strength III
Poison II β†’ Poison III
Wither II β†’ Wither III
Resistance I β†’ Resistance II
Weakness I β†’ Weakness II
Slowness II β†’ Slowness III

Effects without amplifier levels remain unchanged.

FLOWERS
🌹 Wither Rose
Primary Ability β€” Wither Aura

Activation: Offhand Key

Cooldown: 18 seconds

Creates a dark aura around the player.

Radius:

6 blocks

Every enemy inside the radius receives:

Wither III
Duration: 6 seconds

The aura deals roughly 6 hearts over its duration.

Enemies affected also receive 50% reduced healing while Withered.

Particles:

Black rose petals mixed with dark smoke.

Sound:

Wither ambient.

Evolution Buff

Radius increases to:

10 blocks

Effects:

Wither IV
Duration: 9 seconds
Healing reduction remains active.
Secondary Ability β€” Death Bloom

Activation:

Sneak + Offhand

Cooldown:

60 seconds

Creates a violent explosion of black roses.

Radius:

8 blocks

Deals:

5 hearts

Applies:

Wither III
Duration: 6 seconds

Large thorn spikes briefly erupt from the ground.

🌼 Oxeye Daisy
Primary Ability β€” Cleansing Bloom

Cooldown:

20 seconds

Instantly removes all negative potion effects from allies within:

8 blocks

Heals:

4 hearts

Grants:

Resistance II
Duration: 5 seconds

Green flower particles surround allies.

Evolution Buff

Healing increases to:

7 hearts

Resistance becomes:

Resistance III

Duration:

6 seconds

Secondary Ability β€” Sanctuary Field

Cooldown:

75 seconds

Creates a glowing flower circle.

Radius:

10 blocks

Duration:

10 seconds

Every second:

Heal 1 heart

Grants:

Resistance II

Enemies receive no effects.

🌺 Blue Orchid
Primary Ability β€” Water Blessing

Cooldown:

18 seconds

Heals nearby allies:

6 hearts

Radius:

8 blocks

Grants:

Speed III
Duration: 10 seconds

Also grants:

Water Breathing

Duration:

15 seconds

Blue water particles spiral outward.

Evolution Buff

Healing increases further.

Movement becomes faster.

Radius increases to:

10 blocks.

Secondary Ability β€” Tidal Bloom

Cooldown:

60 seconds

Summons a circular wave of water.

Wave radius:

8 blocks

Enemies are pushed away.

Enemies take:

3 hearts

Nearby allies heal:

4 hearts

🌸 Allium
Primary Ability β€” Toxic Aura

Cooldown:

20 seconds

Creates a poisonous purple aura.

Radius:

6 blocks

Enemies receive:

Poison III
Weakness II

Duration:

7 seconds

Purple spores constantly spread around the player.

Evolution Buff

Radius:

9 blocks

Effects:

Poison IV

Weakness III

Duration:

9 seconds

Secondary Ability β€” Toxic Garden

Cooldown:

70 seconds

Creates poisonous flowers over a large area.

Radius:

10 blocks

Duration:

12 seconds

Enemies inside receive:

Poison III
Blindness

The flowers continuously emit spores until disappearing.

🌼 Cornflower
Primary Ability β€” Precision Focus

Cooldown:

25 seconds

Grants:

Strength II
Speed II

Duration:

10 seconds

Critical attacks deal:

100% additional damage.

Evolution Buff

Strength becomes:

Strength III

Critical hits become even stronger and always apply bonus damage while active.

Secondary Ability β€” Sharpshooter's Blessing

Cooldown:

60 seconds

Every successful critical hit marks an enemy.

Marked enemies take:

30% increased damage

Duration:

10 seconds
πŸ“„
pasted-code-1783622162781.txt
txt 1048 lines
β–Ά
Plant Origins Plugin Specification (Part 2)

Continue from Part 1.

🌺 Remaining Plant Abilities

All abilities below follow the same standards as the previous ones:

Primary Ability activated with Offhand (F).
Secondary Ability activated with Sneak + Offhand (requires evolution).
Every value (damage, cooldown, duration, radius, potion effects, etc.) must be configurable in config.yml.
Potion effects are already increased by one amplifier level compared to the original design.
πŸ”₯ Torchflower
Primary Ability β€” Ancient Flame

Cooldown: 18 seconds

Launches an Ancient Flame projectile.

Maximum Range: 25 blocks
Projectile Speed: 1.8 blocks/tick
Direct Damage: 8 hearts
Sets enemies on fire for 12 seconds
Fire ignores Fire Resistance effects (unless the target has full fire immunity through game mechanics).
Small explosion on impact.
Explosion Radius: 2 blocks
Explosion Damage: 2 hearts

Particles

Blue Soul Fire
Flame
Smoke

Sound

Blaze Shoot
Fire Charge Use
Evolution Buff
Projectile travels 30 blocks
Direct damage becomes 10 hearts
Fire lasts 15 seconds
Explosion radius increases to 3 blocks
Explosion damage becomes 3 hearts
Secondary Ability β€” Eternal Inferno

Cooldown: 75 seconds

Summons 5 Ancient Flame Spirits.

Each spirit:

Automatically seeks the nearest enemy within 20 blocks
Deals 3 hearts
Burns target for 6 seconds
Disappears after hitting one enemy or after 12 seconds

If no enemies exist, spirits orbit the player until one appears.

πŸ‘ Eyeblossom
Primary Ability β€” True Vision

Cooldown: 30 seconds

Reveals hidden enemies.

Effects:

Glowing for 12 seconds
Detect invisible players
Reveal players through walls

Detection Radius:

35 blocks

Also highlights hidden traps and invisible entities.

Particles:

White glowing petals.

Evolution Buff

Radius becomes:

50 blocks

Glowing lasts:

16 seconds

Secondary Ability β€” Perfect Sight

Cooldown: 70 seconds

For 12 seconds:

Night Vision
Detect all nearby players
Display enemy health above their heads
Reveal traps and hidden mobs
Increase melee reach by 1 block (if supported by Paper attribute system)
🌻 Sunflower

Passive Ability

Every 20 seconds while standing in daylight:

Gain 1 Solar Charge

Maximum:

5 Charges

Charges are lost when the player dies.

Primary Ability β€” Solar Empowerment

Consumes 1 Solar Charge

Cooldown:

None (requires available charge)

Duration:

10 seconds

Grants:

Strength III
Speed III
Regeneration III

Golden particles surround the player.

Evolution Buff

Maximum charges:

7

Passive charge generation speed:

One charge every 15 seconds.

Secondary Ability β€” Solar Overdrive

Cooldown:

90 seconds

Consumes all Solar Charges

Each charge grants:

+20% damage
+15% movement speed
+1 heart/sec regeneration

Duration:

15 seconds

Example:

Using 5 charges:

+100% damage
+75% speed
5 hearts regenerated every second
🌸 Peony
Primary Ability β€” Thorn Shield

Cooldown:

22 seconds

Summons orbiting razor petals.

Duration:

10 seconds

Petals damage nearby enemies.

Radius:

3 blocks

Damage:

3 hearts every second

Projectiles that hit the petals are reflected back.

Evolution Buff

Petals rotate faster.

Radius:

4 blocks

Damage:

4 hearts/sec

Reflects arrows, tridents, snowballs, eggs and other projectiles.

Secondary Ability β€” Thorn Tempest

Cooldown:

70 seconds

Creates a moving tornado of petals.

Radius:

7 blocks

Duration:

10 seconds

Damage:

3 hearts/sec

Applies Bleeding for:

5 seconds

🌹 Rose Bush
Primary Ability β€” Thorn Vines

Cooldown:

22 seconds

Creates thorn vines around nearby enemies.

Radius:

5 blocks

Damage:

5 hearts

Bleeding:

5 seconds

Roots enemy for:

2 seconds

Evolution Buff

Radius:

8 blocks

Roots for:

4 seconds

Damage becomes:

7 hearts

Secondary Ability β€” Thorn Fortress

Cooldown:

75 seconds

Creates a circular wall of thorn bushes.

Radius:

6 blocks

Duration:

15 seconds

Touching wall:

3 hearts/sec
Knockback
Bleeding

Arrows are reflected.

🌿 Vines
Primary Ability β€” Vine Prison

Cooldown:

18 seconds

Summons:

5 vines

Each vine has:

6 Health

Duration:

8 seconds

Enemy remains trapped until:

Time expires
All vines destroyed

Destroyed vines regrow once after evolution.

Evolution Buff

Vines regenerate once.

Each regenerated vine returns with:

6 Health

Secondary Ability β€” Living Prison

Cooldown:

70 seconds

Creates a giant vine cage.

Health:

40

Duration:

10 seconds

Blocks movement completely.

🌱 Weeping Vines
Primary Ability β€” Crushing Pull

Cooldown:

20 seconds

Continuously drags enemies downward.

Pull Speed:

4 blocks/sec

Applies:

Slowness III

Duration:

6 seconds

Evolution Buff

Pull becomes stronger.

Radius:

8 blocks

Secondary Ability β€” Gravity Roots

Cooldown:

70 seconds

Creates gravity field.

Radius:

10 blocks

Duration:

8 seconds

Every enemy is constantly dragged toward the center.

🌿 Twisting Vines
Primary Ability β€” Vine Leap

Cooldown:

8 seconds

Leap Distance:

18 blocks

No fall damage.

Evolution Buff

Allows:

3 consecutive leaps

Recharge after cooldown.

Secondary Ability β€” Sky Swing

Cooldown:

25 seconds

Creates swinging vine.

Maximum travel:

40 blocks

Player can rapidly swing through forests and caves.

πŸ‡ Glow Berries
Primary Ability β€” Nature's Healing

Cooldown:

20 seconds

Regenerates:

6 hearts

Duration:

8 seconds

Also removes:

All negative potion effects.

Lights dark caves.

Evolution Buff

Healing becomes:

10 hearts

Duration:

10 seconds

Secondary Ability β€” Radiant Harvest

Cooldown:

60 seconds

Creates glowing berry bushes.

Duration:

30 seconds

Right-click bush:

Instantly heals:

4 hearts

Each bush has:

5 uses

🌿 Cave Vines
Primary Ability β€” Hanging Trap

Cooldown:

18 seconds

Summons hanging vines.

Trap Duration:

8 seconds

Damage:

2 hearts/sec

Enemy cannot sprint while trapped.

Evolution Buff

Damage:

3 hearts/sec

Trap Health:

20

Secondary Ability β€” Hanging Labyrinth

Cooldown:

70 seconds

Creates massive network of vines.

Radius:

12 blocks

Duration:

10 seconds

Multiple enemies may be trapped simultaneously.

❀️ Crimson Roots
Primary Ability β€” Blood Roots

Cooldown:

20 seconds

Duration:

12 seconds

Grants:

Strength III
35% Lifesteal

Every melee hit heals the attacker.

Evolution Buff

Strength IV

Lifesteal:

50%

Kills grant:

Resistance III

5 seconds

Secondary Ability β€” Blood Bloom

Cooldown:

75 seconds

Overhealing converts into temporary absorption hearts.

Nearby enemies suffer Bleeding.

Duration:

12 seconds

πŸ’™ Warped Roots
Primary Ability β€” Rift Step

Cooldown:

10 seconds

Teleport Distance:

15 blocks

Leaves illusion behind for:

5 seconds

Evolution Buff

Teleport:

20 blocks

Illusion lasts:

8 seconds

Secondary Ability β€” Dimensional Dash

Cooldown:

45 seconds

Perform:

3 instant teleports

Become untargetable while teleporting.

🌱 Nether Sprouts
Primary Ability β€” Infernal Sprint

Cooldown:

20 seconds

Grants:

Speed III
Fire Resistance

Duration:

12 seconds

Leaves burning trail.

Trail Damage:

2 hearts/sec

Evolution Buff

Trail lasts:

15 seconds

Damage:

3 hearts/sec

Secondary Ability β€” Hellfire Path

Cooldown:

60 seconds

Creates lava-like burning path.

Length:

20 blocks

Duration:

15 seconds

Enemies walking through:

Take 3 hearts/sec

πŸ„ Crimson Fungus
Primary Ability β€” Berserk

Cooldown:

45 seconds

Duration:

12 seconds

Grants:

Strength IV
Speed II
Knockback Immunity
Evolution Buff

Every successful hit:

+5% Attack Speed

Stacks until Berserk ends.

Secondary Ability β€” Frenzied Evolution

Cooldown:

90 seconds

Duration:

15 seconds

Every hit:

Increases Attack Speed
Increases Damage
Restores Β½ heart

Maximum:

20 stacks

πŸ’‘ Shroomlight
Primary Ability β€” Blinding Flash

Cooldown:

25 seconds

Flash Radius:

8 blocks

Effects:

Blindness

Weakness III

Duration:

6 seconds

Evolution Buff

Radius:

12 blocks

Duration:

8 seconds

Secondary Ability β€” Solar Flare

Cooldown:

75 seconds

Massive explosion of light.

Radius:

15 blocks

Effects:

Blindness
Weakness
Removes Invisibility
Stuns enemies for 2 seconds
πŸ“ Sweet Berry Bush
Primary Ability β€” Thorn Trap

Cooldown:

18 seconds

Places berry trap.

Duration:

30 seconds

Damage:

3 hearts

Applies Bleeding.

Evolution Buff

Trap spreads into nearby bushes.

Maximum:

10 connected bushes.

Secondary Ability β€” Thorn Minefield

Cooldown:

70 seconds

Creates 20 berry traps.

Area Radius:

12 blocks

Duration:

30 seconds

πŸƒ Dripleaf
Primary Ability β€” Leaf Slam

Cooldown:

15 seconds

Leap:

15 blocks

Landing Damage:

8 hearts

Shockwave Radius:

5 blocks

Knocks enemies upward.

Evolution Buff

Leap:

20 blocks

Shockwave Radius:

8 blocks

Damage:

10 hearts

Secondary Ability β€” Earthsplitter

Cooldown:

60 seconds

Ground cracks.

Length:

20 blocks

Enemies touching cracks:

Take:

3 hearts/sec

Duration:

8 seconds

🌸 Spore Blossom
Primary Ability β€” Spore Cloud

Cooldown:

20 seconds

Creates pollen cloud.

Radius:

8 blocks

Duration:

10 seconds

Enemies receive:

Poison III

Weakness III

Evolution Buff

Radius:

12 blocks

Duration:

15 seconds

Secondary Ability β€” Blooming Plague

Cooldown:

70 seconds

Defeated enemies release infectious spores.

Nearby enemies become poisoned automatically.

🌿 Hanging Roots
Primary Ability β€” Root Grapple

Cooldown:

10 seconds

Maximum Range:

20 blocks

Can:

Pull player to ceiling
Pull enemies toward player
Evolution Buff

Grab:

3 enemies simultaneously

Secondary Ability β€” Root Swing

Cooldown:

45 seconds

Grab enemy.

Swing them around.

Throw them.

Collision Damage:

6 hearts

🌱 Moss Block
Primary Ability β€” Nature's Protection

Cooldown:

20 seconds

Reduces:

95% Fall Damage

Grants:

Regeneration III

Duration:

8 seconds

Evolution Buff

Standing on natural blocks:

Heal:

1 heart/sec

Secondary Ability β€” Verdant Armor

Cooldown:

70 seconds

Duration:

15 seconds

Living moss covers the player.

Effects:

Resistance III
Regeneration III

Armor repairs itself while standing on natural terrain.

πŸͺΈ Sea Pickle
Primary Ability β€” Electric Burst

Cooldown:

20 seconds

Underwater Radius:

8 blocks

Damage:

6 hearts

Chains between:

5 enemies

Applies:

2-second stun

Evolution Buff

Radius:

12 blocks

Chains:

8 enemies

Damage:

8 hearts

Secondary Ability β€” Ocean's Wrath

Cooldown:

90 seconds

Creates massive underwater lightning storm.

Duration:

12 seconds

Lightning strikes every second.

Strike Damage:

5 hearts

Entire surrounding water becomes electrified.

Enemies touching water:

Take:

2 hearts/sec
πŸ“„
pasted-code-1783622179732.txt
txt 387 lines
β–Ά
Plant Origins Plugin Specification (Part 3)

Continue from Part 2.

Trust System

Players can choose to make specific players immune to their own Plant Abilities.

The trust system only affects Plant Ability interactions.

It does not disable normal PvP damage.

Example:

Alice trusts Bob.
Bob cannot be harmed by Alice's Plant Abilities.
Alice can still be harmed by Bob unless Bob also trusts Alice.

Trust is one-way, not mutual.

Trust data must persist after server restarts.

/trust Command

Usage

/trust 

Permission

Everyone.

Behavior

Adds the specified player to your trusted list.

If successful:

You now trust .
They are immune to your Plant Abilities.

If already trusted:

You already trust this player.

If attempting to trust yourself:

You cannot trust yourself.

If player does not exist or is offline:

Player not found.
/untrust Command

Usage

/untrust 

Permission

Everyone.

Behavior

Removes the specified player from your trusted list.

Message:

You no longer trust .

If they were not trusted:

That player isn't trusted.
Trusted Player Handling

Whenever a Plant Ability attempts to affect another player, the plugin must first check whether that target is trusted by the caster.

If trusted:

Cancel:

Damage
Knockback
Fire
Poison
Wither
Weakness
Slowness
Blindness
Pulling
Launching
Roots
Vines
Thorn damage
Berry traps
Electric damage
Burning trails
Stuns
Bleeding
Every other harmful custom mechanic

Positive abilities should still affect trusted players.

Examples:

Healing βœ”
Regeneration βœ”
Cleansing βœ”
Speed βœ”
Resistance βœ”
Commands
Command	Permission	Description
/plant	Everyone	Shows your Plant Ability
/trust 	Everyone	Makes a player immune to your Plant Abilities
/untrust 	Everyone	Removes immunity
/bucketcraft	plantorigins.admin	Edit Bucket of Evolution recipe
/saplingcraft	plantorigins.admin	Edit Sapling of Life recipe
Permissions
plantorigins.admin

Allows:

/bucketcraft
/saplingcraft

Regular players receive:

/plant
/trust
/untrust
Bucket Craft INVENTORY GUI

When an operator executes:

/bucketcraft

A Crafting Table INVENTORY GUI opens.

Behavior:

Any item can be placed.
Result slot is locked.
Closing the INVENTORY GUI automatically saves the recipe.
Previous recipe is overwritten.
New recipe immediately works in normal crafting tables.
Recipe survives restart.

Message:

Bucket of Evolution recipe updated.
Sapling Craft INVENTORY GUI

Exactly identical to Bucket INVENTORY GUI.

Command:

/saplingcraft

Closing the inventory saves the recipe.

Message:

Sapling of Life recipe updated.
Configuration

Everything must be configurable inside

config.yml

Including:

General
Messages
Prefix
Sounds
Particles
Action Bar messages
Ability Values

For every ability:

Cooldown
Damage
Healing
Radius
Duration
Knockback
Lifesteal
Speed
Jump Height
Projectile Speed
Projectile Gravity
Projectile Lifetime
Trap Health
Trap Duration
Maximum Range
Potion Levels
Potion Durations
Evolution Buffs
Cold Biome Modifier

Configurable multipliers:

damage: 0.75
healing: 0.75
radius: 0.80
duration: 0.80
speed: 0.85
cooldown: 1.15

Biome list must also be configurable.

Items

Configurable:

Bucket Name
Bucket Lore
Sapling Name
Sapling Lore
Seeds of Life Name
Seeds of Life Lore
Materials
Broadcasts

Configurable:

Evolution message
Kill message
Ability unlocked
Trust message
Untrust message
Data Storage

Use YAML files.

Suggested layout:

plugins/
└── PlantOrigins/
    β”œβ”€β”€ config.yml
    β”œβ”€β”€ recipes.yml
    β”œβ”€β”€ players.yml
    └── trusts.yml
players.yml

Stores

UUID
Ability
Evolution
Cooldowns (optional)
Solar Charges (if applicable)

Example

players:
  uuid:
    ability: TORCHFLOWER
    evolved: true
trusts.yml
players:
  uuid:
    trusted:
      - uuid
      - uuid
recipes.yml

Stores

Bucket Recipe
Sapling Recipe

Recipe should serialize automatically.

Cooldown System

Every ability has an independent cooldown.

Requirements:

Efficient.
No repeating task per player.
Store timestamps instead of countdown timers whenever possible.
Action Bar updates only while cooldown is active.
Performance Requirements

Plugin must support:

100+ players
Hundreds of active projectiles
Many active abilities simultaneously

Requirements:

Async YAML saving.
No memory leaks.
No unnecessary repeating tasks.
Avoid expensive entity searches.
Cache configuration values.
Reuse particle objects where possible.
Cancel scheduled tasks when players disconnect.
Use Paper API optimizations.
Developer Requirements

Code should be cleanly separated into packages.

Suggested structure:

abilities/
commands/
cooldowns/
crafting/
data/
events/
INVENTORY GUI/
items/
listeners/
managers/
particles/
players/
recipes/
trust/
utils/
Ability Architecture

Each Plant Ability should be its own class implementing a shared interface or abstract base class, for example:

activatePrimary(Player)
activateSecondary(Player)
isEvolved(Player)
getCooldown()
applyBiomeModifiers()

Avoid hard-coding abilities into one large listener so future abilities can be added easily.

Events

The plugin should listen for and appropriately handle:

Player Join
Player Quit
Player Death
Player Respawn
Entity Damage
Player Interact
Swap Hand Items
Inventory Close
Inventory Click
Craft Item
Player Move (only when necessary)
Potion Effects
Projectile Hit
Entity Combust
Block Break (if required for abilities)
Player Sneak Toggle
Visual & Audio Polish

Each ability should have a unique visual identity using Minecraft particles and sounds. For example:

Wither Rose: Black particles, smoke, wither sounds.
Torchflower: Soul fire flames and blaze sounds.
Sunflower: Golden dust, glow particles, beacon sounds.
Blue Orchid: Water splashes and bubble sounds.
Spore Blossom: Purple spores and soft ambient sounds.
Sea Pickle: Electric sparks, bubbles, and lightning sounds.

Abilities should feel visually distinct while avoiding excessive particle spam.

Gameplay Balance
Every ability should feel powerful but have meaningful cooldowns.
Evolution should noticeably improve an ability without making it impossible to counter.
Secondary abilities should be impactful "ultimate"-style abilities with longer cooldowns.
Cold biome penalties should encourage players to adapt without making abilities unusable.
Trust should only affect Plant Ability interactions and never interfere with standard PvP mechanics.
Plugin Goal

The completed Plant Origins plugin should deliver a polished RPG-inspired progression system where:

Every player receives a unique plant-themed ability on first join.
Each ability has a powerful primary skill and an unlockable evolution skill.
Players evolve using the Bucket of Evolution.
PvP kills reward Seeds of Life, which are used to craft the Sapling of Life for rerolling abilities.
Server operators can modify the crafting recipes for both items entirely in-game through editable crafting-table GUIs.
Plant powers are weakened in cold biomes.
Players can protect friends from their own abilities using /trust and /untrust.
All systems are highly configurable, optimized, persistent, and designed for long-term multiplayer gameplay with clean, maintainable code.
Kodari AI
KodariJul 9 at 6:58 pm 199

I’ll build a comprehensive Paper 1.21+ plugin implementing the full Plant Origins system: 26 plant abilities with primary/secondary/evolution mechanics, persistence, trust system, cold biome modifiers, evolution items, editable crafting GUIs, and seeds-of-life PvP rewards.

PlantOrigins
A PaperMC 1.21+ plugin where every player is randomly assigned one of 26 unique Plant Abilities on first join. Abilities have primary (offhand-key) and secondary (sneak+offhand, unlockable) skills, each fully configurable. Players evolve via the Bucket of Evolution, reroll via the Sapling of Life, and earn Seeds of Life from PvP kills. Includes a trust system for ability immunity, cold-biome power penalties, admin-editable crafting-table GUIs for both special items, and full YAML persistence for players, trusts, and recipes.

Now the core ability engine implementing all 26 abilities:

A PaperMC 1.21+ RPG plugin where every player is randomly assigned one of 26 unique Plant Abilities on first join. Each ability has a primary skill (offhand swap) and an unlockable secondary skill (sneak+swap) gained via the Bucket of Evolution. PvP kills grant Seeds of Life, craftable into a Sapling of Life to reroll abilities. Plants weaken in cold biomes. Players can /trust others to make them immune to their abilities. Admins edit the Bucket/Sapling crafting recipes through in-game GUIs. All stats are configurable and data persists through restarts.

Now the ability engine, commands, and listeners:

I need to actually create the files now β€” let me write the complete project.

A PaperMC 1.21+ RPG plugin where every player is randomly assigned one of 26 unique Plant Abilities on first join. Abilities have primary (offhand key) and secondary (sneak+offhand) skills, unlockable via the Bucket of Evolution. PvP kills grant Seeds of Life, used to craft the Sapling of Life for rerolling abilities. Cold biomes weaken plant powers. Players can /trust others to grant immunity from their abilities. Admins edit crafting recipes for evolution items via in-game GUIs. Fully configurable stats, persistent YAML storage, and optimized for 100+ player servers.

Now the ability engine β€” the core of all 26 plant abilities:

A Paper 1.21+ RPG plugin where every player is randomly assigned one of 26 unique plant-themed abilities on first join. Each has a primary ability (offhand swap) and an unlockable secondary ability (sneak+swap) gained via the Bucket of Evolution. Features PvP-earned Seeds of Life, Sapling of Life rerolling, admin-editable crafting recipes via in-game GUIs, a one-way /trust system protecting allies from harmful ability effects, cold-biome power dampening, and fully config-driven stats with async YAML persistence for 100+ player servers.

Now the ability engine β€” the core of all 26 abilities:I’ll now create the full project.

A PaperMC 1.21+ RPG plugin where every player is randomly assigned one of 26 plant-themed abilities on first join. Abilities have primary (offhand swap) and secondary (sneak+swap) skills, unlockable via the Bucket of Evolution. PvP kills grant Seeds of Life, used to craft the reroll Sapling of Life. Features a one-way /trust system protecting allies from harmful ability effects, cold-biome power penalties, admin-editable crafting-table GUIs for recipes, action-bar cooldowns, and full YAML persistence for player data, trusts and recipes. Highly configurable via config.yml.

Now the commands:

A PaperMC 1.21+ RPG plugin where every player is randomly assigned one of 26 unique Plant Abilities on first join. Abilities have primary (offhand key) and secondary (sneak+offhand, unlockable via evolution) skills with configurable cooldowns, damage, healing, radius and potion effects. Players evolve using a craftable Bucket of Evolution, earn Seeds of Life from PvP kills, and reroll abilities with a Sapling of Life. Admins edit crafting recipes live via in-game GUIs. Cold biomes weaken plant powers. A one-way /trust system protects chosen players from a caster's harmful ability effects while leaving normal PvP intact. All data persists via YAML.

Built the complete plugin covering: 26 Plant Abilities (primary/secondary/evolution via AbilityEngine), random first-join assignment, offhand-key/sneak activation with swap cancellation, YAML persistence for players/trusts/recipes, cold-biome multiplier system, /plant, /trust, /untrust, evolution via Bucket of Evolution (totem+particles+broadcast), Sapling of Life reroll, Seeds of Life on PvP kill, and live in-game crafting-table-style GUIs (/bucketcraft, /saplingcraft) that persist recipes across restarts.

jkbluemask_18461
πŸ“Ž 1 file 6,436 chars
πŸ“„
pasted-code-1786042662399.txt
txt 382 lines
β–Ά
Plant Origins Update – Balance Changes & Bug Fixes
🌹 Wither Rose
Balance Changes
Primary ability duration reduced by 3–4 seconds.
Primary ability cooldown increased to 90–120 seconds.
After evolution, Wither damage dealt by the ability is reduced by 50%.
New Passive Effects
The Wither now drops 2 Nether Stars instead of 1.
Wither Skeleton Skull drop chance increased by 30%.
🌼 Oxeye Daisy
Balance Changes
Primary ability cooldown increased to 75 seconds.
Secondary ability cooldown increased to 110 seconds.
New Passives
Eating a Golden Apple grants Regeneration III.
Eating Suspicious Stew (Saturation) grants:
Saturation
Regeneration IV for 2 seconds.
🌺 Blue Orchid
Balance Changes
Healing reduced:
Unevolved: 3 Hearts
Evolved: 4 Hearts
Ability now knocks nearby players back 4 blocks.
Cooldown increased by 60 seconds.
New Passive
While standing in water:
Gain Haste III.
(Mark as experimental/test feature.)
🌼 Cornflower
Balance Changes
Ability cooldown increased by 60 seconds.
New Evolution Effect
After evolution:
Achieving a 5-hit combo grants guaranteed critical hits for 10 seconds.
New Passive
Every 10 Golden Apples eaten
Gain Strength II
Duration: 3 seconds.
πŸ”₯ Torchflower
Balance Changes

Primary Ability

Unevolved:

Damage: 4 Hearts
Fire: 4 seconds

Evolved:

Damage: 6 Hearts
Fire: 6 seconds

Fire ignores Fire Resistance.

Cooldowns:

Primary cooldown increased by 60 seconds.
Secondary cooldown increased by 15 seconds.
New Passives
Permanent Fire Resistance.
While standing in lava or burning:
Deal 20% increased damage.
After evolution:
Blazes drop double Blaze Rods.
πŸ‘ Eyeblossom
Balance Changes

Primary cooldown increased by 70 seconds.

Secondary cooldown increased by 50 seconds.

Secondary ability range increased by 2 blocks.

Ability Improvements

Primary ability now highlights:

Pistons
Sticky Pistons
Slime Blocks
Honey Blocks
Signs
Every Banner type
Bug Fixes
Fixed health display.
Fixed both abilities applying Glowing incorrectly.
New Passives

At night:

Gain Resistance I.
Golden Apples grant Regeneration III.
🌻 Sunflower
Balance Changes

Primary ability now consumes:

3 Solar Charges

Primary cooldown increased by 60 seconds.

Secondary ability:

No longer grants regeneration.
Instead grants +1 permanent temporary heart for each Solar Charge consumed during the ability.

Solar Charge generation:

Unevolved:

One charge every 90 seconds.

Evolved:

One charge every 60 seconds.
New Passive

During daytime:

Gain Resistance I.
Bug Fixes
Fixed Solar Charge generation.
Solar Charges are only generated:
During daytime.
Above Y=30.
🌸 Peony
Balance Changes

Primary:

Cooldown increased by 60 seconds.
Duration reduced to 5 seconds.
Damage:
Unevolved: 2 Hearts/sec
Evolved: 3 Hearts/sec

Secondary:

Cooldown increased by 60 seconds.
Duration reduced to 4 seconds.
New Passive

Every 5 hits taken:

Reflect 1 Heart of damage back to the attacker.

🌿 Vines
Balance Changes

Primary

Each vine now has:

0.5 Health

Cooldown increased by 60 seconds.

Instead of Slowness:

The trapped player is constantly teleported back to the block they occupied when the ability was activated.

The player is confined within a 3Γ—3 block area.

Attempting to leave instantly teleports them back.

New Passive

The player can climb every block type except:

Cobwebs
Sweet Berry Bushes
🌿 Twisting Vines
Balance Changes

Cooldown increased by 30 seconds.

New Passive

Permanent:

No Fall Damage.
Bug Fixes
Fixed secondary ability.
❀️ Crimson Roots
Complete Rework

Primary Ability

Deals 3 Hearts.
Instantly heals the user for 3 Hearts.
Grants Lifesteal for 8 seconds.
During Lifesteal:
Heal for 50% of melee damage dealt.

Evolution Bonus

Also grants:

Strength II
Duration: 5 seconds

Cooldown:

100 seconds

Secondary Ability

Cooldown:

150 seconds

Bleeding:

Deals 1 Heart/sec
Lasts 10 seconds

Passive

Every player kill grants:

Resistance III for 5 seconds
Speed III for 10 seconds
Overall Bug Fixes & New Features
Visual Improvements
Increase particle count for every ability.
Increase particle size.
Fix every ability radius so it matches its configured value.
Claimed Seeds of Life System

Seeds of Life now have two forms:

Normal Seed of Life

Dropped from PvP kills.

Claimed Seeds of Life

Permanent progression.

Players start with 1–3 Claimed Seeds of Life chosen randomly.

Maximum:

6

Minimum:

-4

Each Claimed Seed extends the duration of these potion effects by 1 minute:

Fire Resistance
Strength
Speed
Weaving

Example:

3 Claimed Seeds

Strength II (3 minutes)

becomes

Strength II (6 minutes)

Upon death:

Lose 1 Claimed Seed.

Potion durations immediately decrease accordingly.

Crafted Seed of Life

New item.

Operators can edit its recipe using:

/seedcraft

Works exactly like:

/bucketcraft
/saplingcraft

The result is a:

Crafted Seed of Life

Can only be claimed if the player has fewer than 0 Claimed Seeds.

Material:

Enchanted Wheat Seeds.

INVENTORY GUI Improvements

/plant

Now displays:

Current Ability
Evolution Status
Claimed Seeds of Life
Solar Charges (if applicable)
Death Ban System

Players can now have negative Claimed Seeds.

Minimum:

-4

If a player dies to a weapon whose custom name exactly matches that player's username:

They are permanently banned.

Resurrection

New Item

The Resurrector

Crafting recipe editable with:

/resurrectorcraft

Works exactly like every other editable recipe.

Using it revives a permanently banned player.

Item Changes

Bucket of Evolution

Now an Enchanted Water Bucket.

Sapling of Life

Now an Enchanted Oak Sapling.

Seed of Life

Now an Enchanted Wheat Seed.
Custom Dimension

Add a brand-new custom dimension.

Players spawn here by default.

Properties:

Entire dimension is Plains biome.
No Villages.
No Villagers.
No Strongholds.
Diamonds spawn at 50% normal rate.
Gold spawns at 50% normal rate.
Nether Portals do not function.
The only way to leave is by constructing a portal made from Bedrock and igniting it with Flint & Steel.

The portal transports players to the normal Overworld.

Remove (Abilities Not Included in This Update)

The following abilities were not mentioned in your requested changes and should be removed from the plugin unless you intend to rebalance them later:

🌹 Rose Bush
🌿 Weeping Vines
πŸ‡ Glow Berries
🌿 Cave Vines
🌱 Nether Sprouts
πŸ„ Crimson Fungus
πŸ’‘ Shroomlight
πŸ“ Sweet Berry Bush
πŸƒ Dripleaf
🌸 Spore Blossom
🌿 Hanging Roots
🌱 Moss Block
πŸͺΈ Sea Pickle
Kodari AI
KodariAug 6 at 7:31 pm 73
  1. Update Wither Rose abilities and drops.

  2. Update Oxeye Daisy, Blue Orchid, Cornflower, and Torchflower mechanics.

  3. Update Eyeblossom, Sunflower, Peony, Vines, Twisting Vines, and Crimson Roots.

  4. Apply visual/radius fixes and remove the unlisted plant abilities.

  5. Implement Claimed/Crafted Seeds of Life, recipes, /plant display, and death-ban/resurrection logic.

  6. Update evolution item materials and create the custom spawn dimension/Bedrock portal flow.

  1. Wither Rose: primary duration is now 3 seconds (5 evolved), cooldown 90 seconds (120 evolved), and evolved damage is halved.

  2. Wither Rose passive: kills by a Wither Rose player make Withers drop exactly two Nether Stars and grant a 30% Wither Skeleton Skull bonus drop chance.

  1. Oxeye Daisy: set the requested cooldowns and food passives.

  2. Blue Orchid: apply the reduced healing, 60-second cooldown increases, 4-block knockback, and experimental water Haste III.

  3. Cornflower: implement the evolved five-hit critical window and Golden Apple counter passive.

  4. Torchflower: rebalance damage/fire/cooldowns and add its fire, combat, and Blaze-drop passives.

  1. Eyeblossom: rebalance both cooldowns/range and add nighttime Resistance plus Golden Apple regeneration.

  2. Sunflower: consume three charges on primary, replace secondary regeneration with permanent temporary hearts, correct daytime/Y-level charging, and display charges.

  3. Peony, Vines, Twisting Vines, and Crimson Roots: implement their stated combat/passive changes.

  4. Remove the thirteen deferred plant abilities from the enum, mechanics, and configuration.

  1. Eyeblossom’s secondary now uses the configured +2 range, Golden Apple regeneration is added, and Twisting Vines has permanent fall-damage immunity.4. Visual pass: increase particle density globally while preserving each ability’s configured radius; no radius values are hardcoded by the shared particle utility.

  1. Claimed Seeds: add persistent seed counts, random starting values, death loss, crafted seed claiming, editable /seedcraft, and /plant inventory display.

  2. Death-ban/resurrection and custom-dimension work remain queued after the seed system.

  1. Claimed Seeds now persist, start at 1–3, lose one on every death down to βˆ’4, and extend Fire Resistance, Strength, Speed, and Weaving durations by one minute per claimed seed.

  1. Add the Resurrector with editable crafting and permanent-ban revival flow, then create the Plains spawn world with Nether-portal blocking and Bedrock-frame exit portal.

  1. Permanent-death and Resurrector flow: a matching named weapon bans the victim, while using the Resurrector opens a banned-player selection menu and consumes it on revival.

  1. Custom-world foundation: new players and respawns route to the dedicated origin world; ordinary Nether portals are blocked there, and a lit Bedrock frame returns players to the normal Overworld.

  1. Corrected the custom-world portal event type so the Nether-portal block compiles against the Bukkit API.

Implemented the Plant Origins update across abilities, passives, items, crafting, progression, GUI, death-ban/resurrection, and spawn-world routing.

  • Rebalanced all requested retained plants and removed the 13 deferred ability types, configs, and mechanics.

  • Added Wither Rose, Torchflower, Oxeye Daisy, Blue Orchid, Cornflower, Eyeblossom, Sunflower, Peony, Vines, Twisting Vines, and Crimson Roots changes.

  • Added global denser particle visuals.

  • Added Claimed Seeds of Life persistence, randomized starting values, death loss to βˆ’4, duration scaling, crafted-seed claiming, /seedcraft, and /plant GUI details.

  • Added The Resurrector, /resurrectorcraft, permanent named-weapon bans, and a banned-player resurrection GUI.

  • Updated Bucket/Sapling/Seed items to enchanted forms.

  • Added the plant_origins default spawn world, respawn routing, normal Nether-portal blocking there, and Bedrock-frame Flint & Steel exit handling.

The custom world currently uses Bukkit’s normal generator with spawn/portal routing; exact terrain-generation controls such as guaranteed Plains-only terrain, disabled structures/villagers, and reduced ore distribution require a dedicated world generator or datapack layer.

Kodari can make mistakes. Review important code before using.
Files
src
Code
36 2,508
src/main/java/com/plantorigins/PlantOriginsPlugin.java
package com.plantorigins;

import com.plantorigins.abilities.AbilityEngine;
import com.plantorigins.biome.ColdBiomeManager;
import com.plantorigins.commands.BucketCraftCommand;
import com.plantorigins.commands.PlantCommand;
import com.plantorigins.commands.SaplingCraftCommand;
import com.plantorigins.commands.SeedCraftCommand;
import com.plantorigins.commands.ResurrectorCraftCommand;
import com.plantorigins.commands.TrustCommand;
import com.plantorigins.commands.UntrustCommand;
import com.plantorigins.cooldowns.CooldownManager;
import com.plantorigins.crafting.RecipeManager;
import com.plantorigins.data.PlayerDataManager;
import com.plantorigins.gui.CraftGUIListener;
import com.plantorigins.items.ItemFactory;
import com.plantorigins.listeners.CombatListener;
import com.plantorigins.listeners.EvolutionListener;
import com.plantorigins.listeners.JoinListener;
import com.plantorigins.listeners.OffhandListener;
import com.plantorigins.listeners.ResurrectionListener;
import com.plantorigins.world.OriginWorldListener;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class PlantOriginsPlugin extends JavaPlugin {

    private PlayerDataManager playerDataManager;
    private com.plantorigins.trust.TrustManager trustManager;
    private CooldownManager cooldownManager;
    private ColdBiomeManager coldBiomeManager;
    private ItemFactory itemFactory;
    private RecipeManager recipeManager;
    private AbilityEngine abilityEngine;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.playerDataManager = new PlayerDataManager(this);
        this.trustManager = new com.plantorigins.trust.TrustManager(this);
        this.cooldownManager = new CooldownManager();
        this.coldBiomeManager = new ColdBiomeManager(this);
        this.itemFactory = new ItemFactory(this);
        this.recipeManager = new RecipeManager(this, itemFactory);
        this.abilityEngine = new AbilityEngine(this);

        recipeManager.load();

        Bukkit.getPluginManager().registerEvents(new JoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new OffhandListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CombatListener(this), this);
        Bukkit.getPluginManager().registerEvents(new EvolutionListener(this), this);
        Bukkit.getPluginManager().registerEvents(new ResurrectionListener(this), this);
        Bukkit.getPluginManager().registerEvents(new OriginWorldListener(this), this);
        Bukkit.getPluginManager().registerEvents(new CraftGUIListener(this), this);
        Bukkit.getPluginManager().registerEvents(abilityEngine, this);

        getCommand("plant").setExecutor(new PlantCommand(this));
        getCommand("trust").setExecutor(new TrustCommand(this));
        getCommand("untrust").setExecutor(new UntrustCommand(this));
        getCommand("bucketcraft").setExecutor(new BucketCraftCommand(this));
        getCommand("saplingcraft").setExecutor(new SaplingCraftCommand(this));
        getCommand("seedcraft").setExecutor(new SeedCraftCommand(this));
        getCommand("resurrectorcraft").setExecutor(new ResurrectorCraftCommand(this));

        getLogger().info("PlantOrigins enabled.");
    }

    @Override
    public void onDisable() {
        if (playerDataManager != null) playerDataManager.saveSync();
        if (trustManager != null) trustManager.saveSync();
    }
}