spawnoum

Create a Fabric 1.21.11 server-side mod called 67ohrizz.

When a zombie transforms into a drowned, if the drowned has any armor, tools, weapons or items equipped, instantly drop those items on the ground at the moment of transformation.

Do not wait until the drowned dies.

The mod must work on a dedicated server only. Players should not need the mod installed.

Kodari AI
KodariAug 22 at 7:13 pm 1
DrownedDropOnTransform
Server-side Fabric 1.21.11 mod that intercepts zombie-to-drowned transformation events. When a zombie converts into a drowned, the mod instantly drops all equipped armor, tools, weapons, and held items onto the ground at the transformation moment, rather than waiting for the drowned to die. Works entirely on the dedicated server, requiring no client-side installation.
  1. Create the Fabric 1.21.11 server-side mod scaffold and metadata.

  2. Add a zombie-to-drowned transformation hook that drops all equipped/item slots immediately.

  3. Add the required mixin configuration and resources, with no client entrypoint.

Created the 67ohrizz Fabric 1.21.11 server-only mod.

  • Hooks ZombieEntity#convertTo(ServerWorld, EntityType) at transformation time.

  • Detects conversion specifically to EntityType.DROWNED.

  • Drops every equipped item, including armor, main-hand, off-hand, and other equipment slots.

  • Clears the zombie’s equipment so items are not duplicated onto the drowned.

  • Uses environment: "server" with no client entrypoint, so players do not need the mod installed.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
7 161
src/main/java/com/kodari/sixtyohrizz/SixtySevenOhrizz.java
package com.kodari.sixtyohrizz;

import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class SixtySevenOhrizz implements ModInitializer {
    public static final String MOD_ID = "67ohrizz";
    private static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

    @Override
    public void onInitialize() {
        LOGGER.info("67ohrizz loaded");
    }
}