shemolhaywood30-dotcom

make a mod that whenevr i kill someone or something mobs or players they pop into feathers that lasts for 4 seconds before vanishing

it must be custom feathers thats float for 1 second then slowly falls to the ground during the next 3

Kodari AI
KodariOct 20 at 9:28 pm 21
FeatherBurst
A Minecraft Fabric mod that transforms defeated entities into a spectacular feather explosion. When any mob or player dies, they burst into a shower of custom feathers that float gracefully for one second before slowly descending to the ground over the next three seconds. Each feather is a unique custom item with distinct visual appearance, creating a dramatic and satisfying death effect. The feathers are purely cosmetic, disappearing completely after their four-second lifespan without leaving any residue or clutter. The mod enhances combat encounters with a visually striking reward system, making every kill feel more impactful and memorable. Works seamlessly with all vanilla entities and player deaths, adding a touch of elegance to the game's combat mechanics.
  • Player kills will trigger a burst of custom feather particles.

  • Each feather will hover for 1 second, then drift downward for 3 seconds before vanishing.

  • Nearby players with the mod installed will see the effect too.

Created Featherfall Kills for Fabric 1.21.11.

  • Killed mobs and players burst into custom white-and-blue feathers.

  • Feathers hover for 1 second, then gently fall for 3 seconds before disappearing.

  • Feathers collide with the ground and stay until their timer ends.

  • Normal loot and XP are unchanged.

Survival: kill any mob or player—no crafting required. For multiplayer, install the mod on the server and clients.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
11 319
src/client/java/com/kodari/featherfallkills/FeatherfallKillsClient.java
package com.kodari.featherfallkills;

import java.util.Collections;
import java.util.Set;
import java.util.WeakHashMap;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;
import net.fabricmc.fabric.api.client.particle.v1.ParticleFactoryRegistry;
import net.minecraft.client.world.ClientWorld;
import net.minecraft.entity.Entity;
import net.minecraft.sound.SoundCategory;
import net.minecraft.sound.SoundEvents;

public final class FeatherfallKillsClient implements ClientModInitializer {
    private static final Set<Entity> FEATHERED_VICTIMS = Collections.newSetFromMap(new WeakHashMap<>());

    @Override
    public void onInitializeClient() {
        ParticleFactoryRegistry.getInstance().register(FeatherfallKills.FEATHER, sprites ->
                (effect, world, x, y, z, velocityX, velocityY, velocityZ, random) ->
                        new FeatherParticle(world, x, y, z, velocityX, velocityZ, sprites.getSprite(random))
        );

        ClientPlayNetworking.registerGlobalReceiver(FeatherBurstPayload.ID, (payload, context) -> {
            ClientWorld world = context.client().world;
            if (world == null) {
                return;
            }

            Entity victim = world.getEntityById(payload.entityId());
            if (victim != null) {
                FEATHERED_VICTIMS.add(victim);
            }

            int count = Math.min(100, 48 + (int) (payload.width() * payload.height() * 12.0F));
            for (int i = 0; i < count; i++) {
                double angle = world.random.nextDouble() * Math.PI * 2.0;
                double speed = 0.035 + world.random.nextDouble() * 0.055;
                double x = payload.x() + (world.random.nextDouble() - 0.5) * payload.width() * 1.2;
                double y = payload.y() + 0.1 + world.random.nextDouble() * payload.height() * 0.85;
                double z = payload.z() + (world.random.nextDouble() - 0.5) * payload.width() * 1.2;
                world.addParticleClient(FeatherfallKills.FEATHER, true, true,
                        x, y, z, Math.cos(angle) * speed, 0.0, Math.sin(angle) * speed);
            }

            world.playSoundClient(payload.x(), payload.y(), payload.z(),
                    SoundEvents.ENTITY_CHICKEN_EGG, SoundCategory.PLAYERS, 0.6F, 1.15F, true);
        });
    }

    public static boolean shouldHide(Entity entity) {
        return !entity.isAlive() && FEATHERED_VICTIMS.contains(entity);
    }
}