fittlerdittler

make me a horror mod, its a virus that spreads through the world, like sculc, it spreads randomly out 1 block from any of the available blocks faces and the block texture is the image i inported and it spreads out as a biome called bloodlandwork and block is called bloodwork, if a player id in the biome for more than 30 seconds than the player dies and a infected corpse player will spawn on the players death with the killed players inventory and the corrupted corpse player will behave as a player and sttack like a player and will use a custom skin and the entity will have a nametag of (hEl4 m3) and it will target the closest player and try to kill the player and the infected

1 image attached
Kodari AI
KodariOct 10 at 5:15 pm 11
BloodworkVirus
A horror mod where a viral block named Bloodwork spreads randomly across block faces, generating a Bloodlandwork biome. Players remaining in the biome for over 30 seconds die, spawning an infected corpse entity with the victim's inventory, a custom skin, and a "(hEl4 m3)" nametag. The corpse behaves like a player, attacks with player mechanics, and hunts the nearest player to spread the infection further.
  1. Create the Fabric 1.21.11 mod scaffold and register the bloodwork block plus the bloodlandwork biome.

  2. Add random face-adjacent infection spread, biome exposure tracking, and the 30-second death trigger.

  3. Spawn a hostile infected corpse with the dead player’s inventory, the requested name, targeting AI, and a custom appearance.

Created the bloodwork Fabric 1.21.11 mod with a spreading Bloodwork block and the bloodlandwork biome. It spreads randomly to adjacent air blocks and marks those areas as infected; players who remain in the biome for 30 seconds die and leave behind a hostile, custom-skinned corpse named hEl4 m3 that carries their inventory and targets nearby players.

Survival recipes: craft Bloodwork from 4 rotten flesh and 1 redstone; craft the corpse spawn egg from 8 rotten flesh, 1 egg, and 1 spider eye. The block and egg also appear in their creative tabs.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
25 557
src/client/java/com/kodari/bloodwork/client/BloodworkClient.java
package com.kodari.bloodwork.client;

import com.kodari.bloodwork.BloodworkMod;
import com.kodari.bloodwork.client.render.InfectedCorpseRenderer;
import com.kodari.bloodwork.BloodworkContent;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.EntityModelLayerRegistry;
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;
import net.minecraft.client.model.Dilation;
import net.minecraft.client.model.TexturedModelData;
import net.minecraft.client.render.entity.model.BipedEntityModel;

public class BloodworkClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        EntityModelLayerRegistry.registerModelLayer(InfectedCorpseRenderer.MODEL_LAYER,
                () -> TexturedModelData.of(BipedEntityModel.getModelData(Dilation.NONE, 0.0F), 64, 64));
        EntityRendererRegistry.register(BloodworkContent.INFECTED_CORPSE, InfectedCorpseRenderer::new);
    }
}