1

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.

Kodari AI
KodariSep 8 at 12:48 pm 2
AuraCustomizer
Develops a Minecraft 1.21.11 Fabric plugin enabling players to apply customizable particle auras via `/aura &lt;playername&gt; &lt;style&gt;`. Supports rainbow and moon effects, dust and potion particle types, and a GUI via `/auragui` for style, color, and duration customization. Includes role-based permissions and a config file for defaults.
  1. Set up the Fabric 1.21.11 project and shared aura model/config.

  2. Add /aura and /auragui commands with permission-aware server behavior.

  3. Implement aura particle rendering, client GUI, networking, and resources.

  1. 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.

  2. Added /aura <player> <style>, /aura clear <player>, and /auragui commands with configurable permission levels.

  3. Implemented rainbow, moon, and sparkle aura styles with Dust and Potion particle modes.

  4. Added a client GUI for style, particle mode, hex color, and duration customization.

  5. Added server-authoritative CustomPayload networking and continuous aura rendering.

  6. Added config/aura.json generation with defaults, maximum duration, permission levels, and feature toggles.

  7. Added English localization resources and split common/client source sets.

1

Compilation Error Missing required files for Fabric mod

Kodari AI
KodariSep 8 at 12:54 pm 1
  1. Create the Fabric 1.21.11 build and mod metadata.

  2. Add server-side aura models, JSON configuration, permissions, commands, ticking, and particles.

  3. Add validated CustomPayload networking and the /auragui client customization screen.

  4. 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.json with 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.json generation 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.

1

The compilation failed with this error:

code
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.

Kodari AI
KodariSep 8 at 12:56 pm 2

Fixed the Fabric 1.21.11 compilation errors:

  • Replaced removed EntityEffectParticleEffect with ColorParticleEffect.

  • Replaced hasPermissionLevel(int) with getPermissionLevel() >= requiredLevel.

  • Replaced ServerPlayerEntity.getServer() with context.player().getEntityWorld().getServer().

Updated files:

  • src/main/java/com/kodari/aura/AuraManager.java

  • src/main/java/com/kodari/aura/AuraPermissions.java

  • src/main/java/com/kodari/aura/AuraMod.java

1

The compilation failed with this error:

code
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.

Kodari AI
KodariSep 8 at 12:59 pm 2

Fixed the 1.21.11 compilation errors.

Changes made:

  • Replaced the nonexistent ColorParticleEffect with the correct TintedParticleEffect.

  • Created potion-style particles using:

    Java
    TintedParticleEffect.create(ParticleTypes.ENTITY_EFFECT, color)
    
  • Replaced the removed ServerCommandSource#getPermissionLevel() API with:

    Java
    source.getPermissions().hasPermission(
        PermissionLevel.fromLevel(requiredLevel)
    )
    

Updated files:

  • src/main/java/com/kodari/aura/AuraManager.java

  • src/main/java/com/kodari/aura/AuraPermissions.java

1

The compilation failed with this error:

code
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.

Kodari AI
KodariSep 8 at 1:00 pm 1

Fixed AuraPermissions.java by wrapping each PermissionLevel in the required Permission.Level permission type:

Java
new Permission.Level(PermissionLevel.fromLevel(requiredLevel))

This resolves the PermissionLevel cannot be converted to Permission compilation errors.

1

hwen i do /auragui it crashes

Kodari AI
KodariSep 8 at 1:05 pm 2

/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:

Plain Text
Caused by:

Also include the few lines containing:

Plain Text
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.

1

Make it so you can do /aura QDEO stop so it sotps the aura

Kodari AI
KodariSep 8 at 1:06 pm 1
  1. Update the /aura command to accept QDEO stop.

  2. 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.

1

add 20 more style's

Kodari AI
KodariSep 8 at 1:07 pm 1
  1. Inspect the existing aura style model and its registration/serialization paths.

  2. Add 20 styles using the established naming, colors, and particle behavior.

  3. 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>

  • /auragui

  • Command suggestions

  • Network configuration and saved settings

Also updated the invalid-style message.

1

The compilation failed with this error:

code
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.

Kodari AI
KodariSep 8 at 1:10 pm 1

Fixed the syntax error in AuraCommands.java by adding the missing closing parenthesis to the /aura <player> <style> command registration.

1

Make another thing with the mod /aura usernamehere motion-trail of their skin player model being the motion trail for a second fading away

Kodari AI
KodariSep 8 at 1:57 pm 7
  1. Add a motion-trail aura mode to the /aura <player> ... command.

  2. Sync the selected player’s skin appearance to nearby clients and render fading player-model afterimages for one second.

  3. 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:

Plain Text
/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:

Plain Text
/aura <username> stop

Added/updated:

  • MotionTrailPayload.java

  • MotionTrailRenderer.java

  • AuraCommands.java

  • AuraManager.java

  • AuraMod.java

  • AuraClient.java

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
20 881
src/main/java/com/kodari/aura/AuraMod.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;
        }
    }
}