Develop a Minecraft 1.21.11 plugin that allows players to use the command /aura <playername> <style> to apply customizable particle auras such as rainbow or moon effects around them. Include functionality to switch between dust and potion effect particles, along with a user-friendly GUI activated by /auragui for easy customization of aura styles, colors, and durations. Ensure proper permission support for different player roles and provide a configuration file for default settings.
Set up the Fabric 1.21.11 project and shared aura model/config.
Add
/auraand/auraguicommands with permission-aware server behavior.Implement aura particle rendering, client GUI, networking, and resources.
Created a Fabric 1.21.11 project using Yarn mappings, Fabric Loader 0.19.2, Fabric API 0.141.4, Loom 1.14, and Java 21.
Added
/aura <player> <style>,/aura clear <player>, and/auraguicommands with configurable permission levels.Implemented rainbow, moon, and sparkle aura styles with Dust and Potion particle modes.
Added a client GUI for style, particle mode, hex color, and duration customization.
Added server-authoritative CustomPayload networking and continuous aura rendering.
Added
config/aura.jsongeneration with defaults, maximum duration, permission levels, and feature toggles.Added English localization resources and split common/client source sets.
Compilation Error Missing required files for Fabric mod
Create the Fabric 1.21.11 build and mod metadata.
Add server-side aura models, JSON configuration, permissions, commands, ticking, and particles.
Add validated CustomPayload networking and the
/auraguiclient customization screen.Add localization and required project resources.
Implemented the new Fabric 1.21.11 Aura project from scratch.
Added complete Gradle/Loom project setup for Minecraft 1.21.11, Yarn mappings, Fabric Loader, Fabric API, and Java 21.
Added required
fabric.mod.jsonwith common and client entrypoints.Added
/aura <player> <style>,/aura clear <player>, and/auragui.Added rainbow, moon, and sparkle aura styles.
Added Dust and Potion/Entity Effect particle modes.
Added configurable colors, durations, particle density, and default settings.
Added
config/aura.jsongeneration and persistence.Added configurable permission levels for commands and GUI configuration.
Added server-authoritative CustomPayload networking.
Added client customization GUI with style, particle mode, hex color, and duration controls.
Added English localization resources.
The compilation failed with this error:
Compilation failed with 12 error(s):
ERROR in src/main/java/com/kodari/aura/AuraManager.java at line 4: cannot find symbol
import net.minecraft.particle.EntityEffectParticleEffect;
^
symbol: class EntityEffectParticleEffect
location: package net.minecraft.particle
ERROR in src/main/java/com/kodari/aura/AuraManager.java at line 62: cannot find symbol
: EntityEffectParticleEffect.create(ParticleTypes.ENTITY_EFFECT, color);
^
symbol: variable EntityEffectParticleEffect
location: class AuraManager
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 10: cannot find symbol
return source.hasPermissionLevel(AuraMod.CONFIG.auraCommandPermissionLevel);
^
symbol: method hasPermissionLevel(int)
location: variable source of type ServerCommandSource
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 14: cannot find symbol
return source.hasPermissionLevel(AuraMod.CONFIG.guiCommandPermissionLevel);
^
symbol: method hasPermissionLevel(int)
location: variable source of type ServerCommandSource
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 18: cannot find symbol
return source.hasPermissionLevel(AuraMod.CONFIG.configurePermissionLevel);
^
symbol: method hasPermissionLevel(int)
location: variable source of type ServerCommandSource
ERROR in src/main/java/com/kodari/aura/AuraMod.java at line 39: cannot find symbol
context.player().getServer().getTicks());
^
symbol: method getServer()
location: class ServerPlayerEntity
ERROR in src/main/java/com/kodari/aura/AuraManager.java at line 4: cannot find symbol
import net.minecraft.particle.EntityEffectParticleEffect;
^
symbol: class EntityEffectParticleEffect
location: package net.minecraft.particle
ERROR in src/main/java/com/kodari/aura/AuraManager.java at line 62: cannot find symbol
: EntityEffectParticleEffect.create(ParticleTypes.ENTITY_EFFECT, color);
^
symbol: variable EntityEffectParticleEffect
location: class AuraManager
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 10: cannot find symbol
return source.hasPermissionLevel(AuraMod.CONFIG.auraCommandPermissionLevel);
^
symbol: method hasPermissionLevel(int)
location: variable source of type ServerCommandSource
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 14: cannot find symbol
return source.hasPermissionLevel(AuraMod.CONFIG.guiCommandPermissionLevel);
^
symbol: method hasPermissionLevel(int)
location: variable source of type ServerCommandSource
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 18: cannot find symbol
return source.hasPermissionLevel(AuraMod.CONFIG.configurePermissionLevel);
^
symbol: method hasPermissionLevel(int)
location: variable source of type ServerCommandSource
ERROR in src/main/java/com/kodari/aura/AuraMod.java at line 39: cannot find symbol
context.player().getServer().getTicks());
^
symbol: method getServer()
location: class ServerPlayerEntity
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- EntityEffectParticleEffect
ACTION: Create these classes or check imports
MISSING METHODS:
- hasPermissionLevel(int)
- getServer()
ACTION: Check method names and signatures
FILES TO INVESTIGATE:
- src/main/java/com/kodari/aura/AuraManager.java
- src/main/java/com/kodari/aura/AuraPermissions.java
- src/main/java/com/kodari/aura/AuraMod.java
- src/main/java/com/kodari/aura/AuraManager.java
- src/main/java/com/kodari/aura/AuraPermissions.java
- src/main/java/com/kodari/aura/AuraMod.java
Please fix this error by creating a new artifact with the corrected code.
Fixed the Fabric 1.21.11 compilation errors:
Replaced removed
EntityEffectParticleEffectwithColorParticleEffect.Replaced
hasPermissionLevel(int)withgetPermissionLevel() >= requiredLevel.Replaced
ServerPlayerEntity.getServer()withcontext.player().getEntityWorld().getServer().
Updated files:
src/main/java/com/kodari/aura/AuraManager.javasrc/main/java/com/kodari/aura/AuraPermissions.javasrc/main/java/com/kodari/aura/AuraMod.java
The compilation failed with this error:
Compilation failed with 10 error(s):
ERROR in src/main/java/com/kodari/aura/AuraManager.java at line 4: cannot find symbol
import net.minecraft.particle.ColorParticleEffect;
^
symbol: class ColorParticleEffect
location: package net.minecraft.particle
ERROR in src/main/java/com/kodari/aura/AuraManager.java at line 62: cannot find symbol
: new ColorParticleEffect(color);
^
symbol: class ColorParticleEffect
location: class AuraManager
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 10: cannot find symbol
return source.getPermissionLevel() >= AuraMod.CONFIG.auraCommandPermissionLevel;
^
symbol: method getPermissionLevel()
location: variable source of type ServerCommandSource
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 14: cannot find symbol
return source.getPermissionLevel() >= AuraMod.CONFIG.guiCommandPermissionLevel;
^
symbol: method getPermissionLevel()
location: variable source of type ServerCommandSource
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 18: cannot find symbol
return source.getPermissionLevel() >= AuraMod.CONFIG.configurePermissionLevel;
^
symbol: method getPermissionLevel()
location: variable source of type ServerCommandSource
ERROR in src/main/java/com/kodari/aura/AuraManager.java at line 4: cannot find symbol
import net.minecraft.particle.ColorParticleEffect;
^
symbol: class ColorParticleEffect
location: package net.minecraft.particle
ERROR in src/main/java/com/kodari/aura/AuraManager.java at line 62: cannot find symbol
: new ColorParticleEffect(color);
^
symbol: class ColorParticleEffect
location: class AuraManager
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 10: cannot find symbol
return source.getPermissionLevel() >= AuraMod.CONFIG.auraCommandPermissionLevel;
^
symbol: method getPermissionLevel()
location: variable source of type ServerCommandSource
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 14: cannot find symbol
return source.getPermissionLevel() >= AuraMod.CONFIG.guiCommandPermissionLevel;
^
symbol: method getPermissionLevel()
location: variable source of type ServerCommandSource
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 18: cannot find symbol
return source.getPermissionLevel() >= AuraMod.CONFIG.configurePermissionLevel;
^
symbol: method getPermissionLevel()
location: variable source of type ServerCommandSource
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- ColorParticleEffect
ACTION: Create these classes or check imports
MISSING METHODS:
- getPermissionLevel()
ACTION: Check method names and signatures
FILES TO INVESTIGATE:
- src/main/java/com/kodari/aura/AuraManager.java
- src/main/java/com/kodari/aura/AuraPermissions.java
- src/main/java/com/kodari/aura/AuraManager.java
- src/main/java/com/kodari/aura/AuraPermissions.java
Please fix this error by creating a new artifact with the corrected code.
Fixed the 1.21.11 compilation errors.
Changes made:
Replaced the nonexistent
ColorParticleEffectwith the correctTintedParticleEffect.Created potion-style particles using:
JavaTintedParticleEffect.create(ParticleTypes.ENTITY_EFFECT, color)Replaced the removed
ServerCommandSource#getPermissionLevel()API with:Javasource.getPermissions().hasPermission( PermissionLevel.fromLevel(requiredLevel) )
Updated files:
src/main/java/com/kodari/aura/AuraManager.javasrc/main/java/com/kodari/aura/AuraPermissions.java
The compilation failed with this error:
Compilation failed with 6 error(s):
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 12: incompatible types: PermissionLevel cannot be converted to Permission
PermissionLevel.fromLevel(AuraMod.CONFIG.auraCommandPermissionLevel));
^
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 17: incompatible types: PermissionLevel cannot be converted to Permission
PermissionLevel.fromLevel(AuraMod.CONFIG.guiCommandPermissionLevel));
^
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 22: incompatible types: PermissionLevel cannot be converted to Permission
PermissionLevel.fromLevel(AuraMod.CONFIG.configurePermissionLevel));
^
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 12: incompatible types: PermissionLevel cannot be converted to Permission
PermissionLevel.fromLevel(AuraMod.CONFIG.auraCommandPermissionLevel));
^
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 17: incompatible types: PermissionLevel cannot be converted to Permission
PermissionLevel.fromLevel(AuraMod.CONFIG.guiCommandPermissionLevel));
^
ERROR in src/main/java/com/kodari/aura/AuraPermissions.java at line 22: incompatible types: PermissionLevel cannot be converted to Permission
PermissionLevel.fromLevel(AuraMod.CONFIG.configurePermissionLevel));
^
=== COMPILATION ERROR ANALYSIS ===
TYPE MISMATCHES:
- incompatible types: PermissionLevel cannot be converted to Permission
- incompatible types: PermissionLevel cannot be converted to Permission
- incompatible types: PermissionLevel cannot be converted to Permission
- incompatible types: PermissionLevel cannot be converted to Permission
- incompatible types: PermissionLevel cannot be converted to Permission
- incompatible types: PermissionLevel cannot be converted to Permission
ACTION: Fix variable types or casting
FILES TO INVESTIGATE:
- src/main/java/com/kodari/aura/AuraPermissions.java
- src/main/java/com/kodari/aura/AuraPermissions.java
Please fix this error by creating a new artifact with the corrected code.
Fixed AuraPermissions.java by wrapping each PermissionLevel in the required Permission.Level permission type:
new Permission.Level(PermissionLevel.fromLevel(requiredLevel))
This resolves the PermissionLevel cannot be converted to Permission compilation errors.
hwen i do /auragui it crashes
/auragui successfully reaches the client before the crash, so the missing detail is the client crash stack trace. Please paste the latest crash report or at least the section beginning with:
Caused by:
Also include the few lines containing:
at com.kodari.aura
The command only sends OpenAuraScreenPayload; the likely failure is inside AuraScreen initialization or rendering, and the exact stack trace is required to patch the correct API call rather than guess.
Make it so you can do /aura QDEO stop so it sotps the aura
Update the
/auracommand to acceptQDEO stop.Route the stop action through the existing aura manager and preserve current command behavior.
Added /aura QDEO stop.
It now clears QDEO’s active aura using the existing aura cleanup logic. The existing /aura QDEO clear command continues to work as well.
add 20 more style's
Inspect the existing aura style model and its registration/serialization paths.
Add 20 styles using the established naming, colors, and particle behavior.
Update any user-facing labels or configuration data required for the new styles.
Added 20 new aura styles:
sunset, ocean, forest, fire, ice, lavender, rose, gold, emerald, sapphire, ruby, amethyst, citrus, mint, sky, twilight, plasma, ember, aurora, and void.
They are automatically available in:
/aura <player> <style>/auraguiCommand suggestions
Network configuration and saved settings
Also updated the invalid-style message.
The compilation failed with this error:
Compilation failed with 2 error(s):
ERROR in src/main/java/com/kodari/aura/AuraCommands.java at line 36: ')' or ',' expected
StringArgumentType.getString(context, "style")))));
^
ERROR in src/main/java/com/kodari/aura/AuraCommands.java at line 36: ')' or ',' expected
StringArgumentType.getString(context, "style")))));
^
=== COMPILATION ERROR ANALYSIS ===
SYNTAX ERRORS:
- Line 36: ')' or ',' expected
- Line 36: ')' or ',' expected
ACTION: Check for missing semicolons or brackets
FILES TO INVESTIGATE:
- src/main/java/com/kodari/aura/AuraCommands.java
- src/main/java/com/kodari/aura/AuraCommands.java
Please fix this error by creating a new artifact with the corrected code.
Fixed the syntax error in AuraCommands.java by adding the missing closing parenthesis to the /aura <player> <style> command registration.
Make another thing with the mod /aura usernamehere motion-trail of their skin player model being the motion trail for a second fading away
Add a
motion-trailaura mode to the/aura <player> ...command.Sync the selected player’s skin appearance to nearby clients and render fading player-model afterimages for one second.
Keep existing aura styles and stop/clear behavior intact.
The implementation will use a server activation packet and client-side skin/model rendering: the server authorizes the target for 20 ticks, while each client records the target’s recent positions and renders translucent afterimages that fade over that second.
Added the new command:
/aura <username> motion-trail
It now:
Uses the target player’s actual skin and model.
Records their movement client-side.
Renders fading translucent player afterimages.
Runs for approximately one second.
Broadcasts the effect to all connected players.
Stops automatically after the trail finishes.
Can be stopped early with:
/aura <username> stop
Added/updated:
MotionTrailPayload.javaMotionTrailRenderer.javaAuraCommands.javaAuraManager.javaAuraMod.javaAuraClient.java
package com.kodari.aura;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry;
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
import net.minecraft.text.Text;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Locale;
public final class AuraMod implements ModInitializer {
public static final String MOD_ID = "aura";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
public static AuraConfig CONFIG;
@Override
public void onInitialize() {
CONFIG = AuraConfigManager.load(LOGGER);
PayloadTypeRegistry.playS2C().register(OpenAuraScreenPayload.ID, OpenAuraScreenPayload.CODEC);
PayloadTypeRegistry.playS2C().register(MotionTrailPayload.ID, MotionTrailPayload.CODEC);
PayloadTypeRegistry.playC2S().register(ConfigureAuraPayload.ID, ConfigureAuraPayload.CODEC);
ServerPlayNetworking.registerGlobalReceiver(ConfigureAuraPayload.ID, (payload, context) -> {
if (!AuraPermissions.canConfigure(context.player().getCommandSource())) {
context.player().sendMessage(Text.translatable("aura.no_permission"), true);
return;
}
AuraStyle style = AuraStyle.fromName(payload.style());
ParticleMode mode = ParticleMode.fromName(payload.particleMode());
Integer color = parseColor(payload.color());
int duration = Math.max(1, Math.min(payload.durationSeconds(), CONFIG.maximumDurationSeconds));
if (style == null || mode == null || color == null) {
context.player().sendMessage(Text.translatable("aura.invalid_settings"), true);
return;
}
AuraManager.apply(context.player(), new AuraSettings(style, mode, color, duration * 20),
context.player().getEntityWorld().getServer().getTicks());
context.player().sendMessage(Text.translatable("aura.saved"), true);
});
AuraCommands.register();
ServerTickEvents.END_SERVER_TICK.register(AuraManager::tick);
LOGGER.info("Aura initialized");
}
private static Integer parseColor(String value) {
if (value == null) {
return null;
}
String normalized = value.trim().replace("#", "");
if (normalized.length() != 6) {
return null;
}
try {
return Integer.parseInt(normalized, 16) & 0xFFFFFF;
} catch (NumberFormatException exception) {
return null;
}
}
}