Make a 1.21.11 paper plugin which is based on vision Make it be named emberleaf and it works like this When you spawn in you have 0 vision and if you die to anything you get -1 vision Which gives u darkness 1 infinite And if you die again u get darkness 2 infinite BUT IF U DIE THREE TIMES You get blindness 1 for infinite until u die and u cant drink milk if you die at level 3 you dont get it worse you just stay there BUT HERES THE THING if you kill someone you gain a vision so lets say if ur at -3 and kill someone u go to -2 and well u can get above 0 And if u get 1 after killing someone on your screen in big letters it says DURABILITY or WORLDKNOWER And it like goes back and forth and then lands on a random one So these abilities world like this 1 = Durability (50 second cooldown) 2= WORLDKNOWER (60 second cooldown)
- Durability is activated by /ab and Shows what armor durability the player closest to u is when u do /ab
- Worldknower is activated by /ab and Tells what world a random player is when u do /ab and it says in chat and what the players name is
And also make sure everything is controlled by /emberleaf commands Like to activate abilities you have to do /ab and its for everyone even none admins But for admins theres stuff like /emberleaf ability (user) (ability name) For example /emberleaf ability (user) worldknower if they get a ability name wrong like it dosent exist then show every single ability.
Also make it so theres a /emberleaf upgrader (user) which gives a popped chorus fruit but that chorus fruit when right click changes ur ability But make sure that its only abilities from ur tier So if ur +1 vision then its only abilities from there For example lets say you have Durability and u use it then u get one of +2 things like za warudo or shielded Here's the things btw Anyways here is the rest of the tiers make sure they have same rules as others
+2 = 1 = ZA WARUDO (45 second cooldown) 2 = SHIELDED (50 second cooldown) Za warudo is activated by /ab and freezes the closest player around u for 5 seconds The player cannot attack, they can eat but they cant move or do anything at all. When this starts theres a yellow particle circle around the player who did it and they should have like powdered snow freeze texture on screen
Shielded is activated by /ab and makes a really cool yellow shield all around u it's purpose is that you cant hit anyone if they have it on and make sure theres a super obvious way to tell u have it on and also if you touch the shield you get flung a bit back +3 Vision= 1 = Parry (70 second cooldown) 2 = Allout (60 second cooldown) Parry is activated by /ab makes it so when you activate it Nobody will know expect the player who activated it but like when they get damaged after 5 seconds all of the damage they got gets reverted to the other players who attacked them and then its like a yellow particle stab like it shoots a yellow particle to every person affected and the original person gets no damage.
Allout is activated by /ab and makes it so when activated theres no way to tell but then all damage you do in next 5 seconds to a player does no damage to them but then after the 5 seconds are done it does all of the damage at once and the damage is increased by 0.25% of what it was originally supposed to do
And make a /emberleaf start command which when done it pulls all players up while counting in big letters on screen 3.. 2... 1... And then it says Emberleaf Season 2 has started and then the world border starts expanding to 10000 with bassically running the command /worldborder set 10000 12500 and like then it makes all theyre vision +0 and yeah and any person who joins after it dosent experience the messages or world expanding just it happens and also Also make one more thing make a /emberleaf switcher (user) which is a echo shard and when right clicked it checks ur tier first and then it changes ur ability and removes old one then it guranteed changes it to the other one in ur tier.
For example lets say you have Parry and u use it Then you get allout guranteed.
And make sure that every single tier has the rolling effect.
The max vision is +3 and the least is -3.
Thank you!
I’ll create a vision-based progression plugin with abilities and tier systems.
Now I need to add listeners for ability mechanics (frozen players, shielded players, parry, allout):
Now I need to register the new listeners in the main class:
Plugin complete! EmberleafVision features:
Vision System: -3 to +3 vision with darkness/blindness effects on death, gaining vision on kills 6 Abilities across 3 tiers: Durability, WorldKnower, ZaWarudo, Shielded, Parry, Allout with cooldowns Ability rolling: Animated selection when reaching positive vision levels Items: Upgrader (popped chorus fruit) and Switcher (echo shard) for ability management Season start: Countdown animation with worldborder expansion All mechanics: Frozen players, shield knockback, damage reflection, delayed damage with 25% bonus, milk bucket prevention at -3 vision
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 1 error(s):
ERROR in src/main/java/com/emberleaf/managers/AbilityManager.java at line 96: bad operand type short for unary operator '!'
if (item == null || !item.getType().getMaxDurability() > 0) {
^
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/emberleaf/managers/AbilityManager.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
I need to read the file to see the exact issue and fix it.
Issue Analysis
The error is on line 96 in AbilityManager.java:
The expression
!item.getType().getMaxDurability() > 0is trying to apply the!operator to ashortvalueThe correct logic should check if max durability is NOT greater than 0, which is
<= 0
Fix
Fixed the operator precedence issue on line 96 by changing !item.getType().getMaxDurability() > 0 to item.getType().getMaxDurability() <= 0.
Add a passive where when u have +1 any players within 10 blocks of u get glowing but its only visible for u and for +2 its the same but 15 blocks and for +3 its 20 blocks also i get the negative effects in minus tiers when im dead so upon respawn i dont have them anymore also to use upgrader i need to be positive it should be usable in negative then it just gives u a better level for example if ur -2. then u go -1 with upgrader
I’ll implement these features. Let me first read the relevant files to understand the current implementation.
Now I’ll implement the requested features:
Plan:
Add glowing passive for +1/+2/+3 tiers (10/15/20 block radius)
Remove negative effects on respawn
Allow upgrader to work in negative tiers (improve by 1 level)
All features implemented:
Glowing passive: Players with +1/+2/+3 vision now make nearby players glow at 10/15/20 block radius
Respawn fix: Negative effects (darkness/blindness) are removed when you respawn
Upgrader in negative tiers: Upgrader now improves negative tiers (-2→-1, -1→0), and rerolls abilities only in positive tiers
Add a thing where for players with positive vision they have a command which is /nv on/off which when they do on they get night vision and off they lose it Also make the world border time at 1000 default, Also theres still a big bug When you die and your in the death screen you get the effect which isnt bad but when you respawn u dont have the effect anymore because respawning clears effects make sure to give the effects after theyre done respawning
I’ll fix the respawn effect bug, add the night vision toggle command, and update the world border default time. Let me read the relevant files first.
I’ll fix the respawn bug, add the night vision toggle command, and update the world border time.
Done! I’ve implemented all three features:
Night Vision Toggle: Players with positive vision can now use
/nv onor/nv offto toggle night visionWorld Border Time: Changed default from 12500 to 1000 seconds in config.yml
Respawn Bug Fixed: Effects now properly reapply 1 tick after respawn, preventing the bug where effects were cleared and never restored
cant use upgrader when at 0 vision, note to self allow to use at 0 but dont allow to upgrade to 2 or to 3 za warudo uses particles on player who activated not the player closest to him when u use shielded u cant hit any other players parry works but the player whos hitting can not hit the player, note to self remember to make it so the player can hit the player but when its done the other player gets healed to original health and other gets parried upgrader dosent upgrade levels when at a positive level it just switches ur item to other
I need to read the files to understand the current implementation and fix these bugs.
Looking at the bugs, I need to fix:
Upgrader at 0 vision - Allow use at 0, upgrade to 1 only
Za Warudo particles - Should spawn on frozen target, not activator
Shielded blocking attacks - Remove check preventing shielded player from attacking
Parry mechanics - Let hit through, store health, heal victim, reflect damage
Upgrader not upgrading - Should increase vision level and grant next tier ability
All bugs fixed:
Upgrader now works at 0 vision and upgrades to level 1
Za Warudo particles now spawn on frozen target instead of activator
Removed shielded attacker check - shielded players can now attack others
Parry now lets damage through, heals victim to original health, then reflects damage to attacker
Upgrader now properly increases vision level instead of just rerolling same tier
fix a bug where it is like when u die and u already have a ability and die you still keep the abillity even though ur at a lower tier and shouldnt have it Add more effects stuff like allout or parry have almost no effects the only two i like are za warudo and shielded but even za warudo is blue and cyan not yellow or white Change effects from blue or whatever they are to either yellow or white for example za warudo should change add a /tier command which tells u ur vision and ability shortly explaining it and also a cooldown
I’ll analyze and fix the bugs, add better effects, change colors to yellow/white, and add the /tier command.
I’ll fix the death bug, add better effects with yellow/white colors, and create the /tier command.
Plan:
Fix ability not being removed when tier drops on death
Add particle effects to PARRY and ALLOUT
Change ZA_WARUDO particles from blue/cyan to yellow/white
Create /tier command with vision, ability info, and cooldown
Changes made:
Bug Fix: Added logic in
VisionManager.applyVisionEffects()to remove abilities when tier drops below ability requirementZA_WARUDO Effects: Changed from blue GLOW particles to yellow/white FIREWORKS_SPARK + FLAME + END_ROD rings
PARRY Effects: Added yellow flame spiral on activation and throughout duration, flame beams when reflecting damage
ALLOUT Effects: Added massive orange/yellow burst on activation, flame aura during duration, lava explosion on victims when damage triggers
SHIELDED Enhancement: Added FIREWORKS_SPARK particles to existing END_ROD sphere
New /tier Command: Shows vision level, ability name, description, cooldown time, and remaining cooldown if active
Ability Descriptions: Added short descriptions to all abilities
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 4 error(s):
ERROR in src/main/java/com/emberleaf/managers/AbilityManager.java at line 147: cannot find symbol
loc.getWorld().spawnParticle(Particle.FIREWORKS_SPARK,
^
symbol: variable FIREWORKS_SPARK
location: class Particle
ERROR in src/main/java/com/emberleaf/managers/AbilityManager.java at line 200: cannot find symbol
loc.getWorld().spawnParticle(Particle.FIREWORKS_SPARK,
^
symbol: variable FIREWORKS_SPARK
location: class Particle
ERROR in src/main/java/com/emberleaf/managers/AbilityManager.java at line 256: cannot find symbol
playerLoc.getWorld().spawnParticle(Particle.FIREWORKS_SPARK,
^
symbol: variable FIREWORKS_SPARK
location: class Particle
ERROR in src/main/java/com/emberleaf/managers/AbilityManager.java at line 288: cannot find symbol
drawParticleLine(from, to, Particle.FIREWORKS_SPARK);
^
symbol: variable FIREWORKS_SPARK
location: class Particle
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/emberleaf/managers/AbilityManager.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
I need to read AbilityManager.java to fix the particle enumeration issue.
The compilation failed with this error:
Validation failed for compilation: Compilation failed with 4 error(s):
ERROR in src/main/java/com/emberleaf/managers/AbilityManager.java at line 147: cannot find symbol
loc.getWorld().spawnParticle(Particle.FIREWORKS_SPARK,
^
symbol: variable FIREWORKS_SPARK
location: class Particle
ERROR in src/main/java/com/emberleaf/managers/AbilityManager.java at line 200: cannot find symbol
loc.getWorld().spawnParticle(Particle.FIREWORKS_SPARK,
^
symbol: variable FIREWORKS_SPARK
location: class Particle
ERROR in src/main/java/com/emberleaf/managers/AbilityManager.java at line 256: cannot find symbol
playerLoc.getWorld().spawnParticle(Particle.FIREWORKS_SPARK,
^
symbol: variable FIREWORKS_SPARK
location: class Particle
ERROR in src/main/java/com/emberleaf/managers/AbilityManager.java at line 288: cannot find symbol
drawParticleLine(from, to, Particle.FIREWORKS_SPARK);
^
symbol: variable FIREWORKS_SPARK
location: class Particle
=== COMPILATION ERROR ANALYSIS ===
FILES TO INVESTIGATE:
- src/main/java/com/emberleaf/managers/AbilityManager.java
exceeds maximum
Please fix this error by creating a new artifact with the corrected code.
I need to read the AbilityManager.java file to see the exact usage and fix the cross-version compatibility issue with particles.
Analysis
The issue is that Particle.FIREWORKS_SPARK is being used directly, which breaks cross-version compatibility. According to the XSeries rules, I must use XParticle for all particle references.
Error on lines 147, 200, 256, 288:
Particle.FIREWORKS_SPARKdoesn’t existAll direct Particle enum usage must be replaced with XParticle
The correct XSeries name is “FIREWORK_SPARK” (singular)
Fixed all particle references to use XParticle for cross-version compatibility. All instances of Particle.FIREWORKS_SPARK, Particle.FLAME, Particle.END_ROD, and Particle.LAVA are now properly resolved using XParticle with null-safe checks.
There is so many bugs that completely ruin everything
The generation was stopped before any content could be produced.
There is so many bugs that completely ruin everything For example when you rejoin nothing saves you lose every vision, ability and its terrible and also if you die you just have no ability even if u have +1 or smth make it so when you die and ur still at a tier where u get abilities it also when your at +3 and you kill someone you should not go up or anything but a upgrader should drop and automatically go in ur inventory
guyondndhimself There is so many bugs that completely ruin everything For example when you rejoin nothing saves you lose every vision, ability and its terrible and also if you die you just have no ability even if u have +1 or smth make it so when you die and ur still at a tier where u get abilities it also when your at +3 and you kill someone you should not go up or anything but a upgrader should drop and automatically go in ur inventory
There is so many bugs that completely ruin everything For example when you rejoin nothing saves you lose every vision, ability and its terrible and also if you die you just have no ability even if u have +1 or smth make it so when you die and ur still at a tier where u get abilities it also when your at +3 and you kill someone you should not go up or anything but a upgrader should drop and automatically go in ur inventory
I’ll analyze the code to identify and fix these critical bugs. Let me read the relevant files first.
I’ll read the PlayerItemConsumeListener to see if there’s any upgrader logic, then fix all the bugs.
Now I can see all the bugs. Let me fix them:
Analysis:
No data persistence - PlayerData only stored in memory, lost on rejoin
Death handling doesn’t grant new ability when downgrading tiers (e.g., tier 2→1)
Max tier (+3) kills don’t give upgrader item, just do nothing
All bugs fixed: data now persists across rejoins with data.yml file, death handling grants appropriate tier abilities when downgrading, and max tier kills give an upgrader item that goes directly into inventory.
package com.emberleaf;
import com.emberleaf.commands.AbilityCommand;
import com.emberleaf.commands.EmberleafCommand;
import com.emberleaf.commands.NightVisionCommand;
import com.emberleaf.commands.TierCommand;
import com.emberleaf.listeners.*;
import com.emberleaf.managers.AbilityManager;
import com.emberleaf.managers.StartManager;
import com.emberleaf.managers.VisionManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public class EmberleafVision extends JavaPlugin {
private VisionManager visionManager;
private AbilityManager abilityManager;
private StartManager startManager;
@Override
public void onEnable() {
saveDefaultConfig();
visionManager = new VisionManager(this);
abilityManager = new AbilityManager(this);
startManager = new StartManager(this);
visionManager.startGlowingTask();
registerCommands();
registerListeners();
getLogger().info("EmberleafVision has been enabled!");
}
@Override
public void onDisable() {
if (visionManager != null) {
visionManager.saveAllData();
visionManager.shutdown();
}
if (abilityManager != null) {
abilityManager.shutdown();
}
getLogger().info("EmberleafVision has been disabled!");
}
private void registerCommands() {
getCommand("ab").setExecutor(new AbilityCommand(this));
getCommand("emberleaf").setExecutor(new EmberleafCommand(this));
getCommand("nv").setExecutor(new NightVisionCommand(this));
getCommand("tier").setExecutor(new TierCommand(this));
}
private void registerListeners() {
getServer().getPluginManager().registerEvents(new PlayerDeathListener(this), this);
getServer().getPluginManager().registerEvents(new PlayerJoinListener(this), this);
getServer().getPluginManager().registerEvents(new PlayerQuitListener(this), this);
getServer().getPluginManager().registerEvents(new PlayerInteractListener(this), this);
getServer().getPluginManager().registerEvents(new PlayerItemConsumeListener(this), this);
getServer().getPluginManager().registerEvents(new PlayerMoveListener(this), this);
getServer().getPluginManager().registerEvents(new EntityDamageListener(this), this);
getServer().getPluginManager().registerEvents(new PlayerRespawnListener(this), this);
}
}