favasur

I need Enderman's behavior overhaul, following these rules:

Intelligent Stalking, Not Instant Aggression: On the surface, White-eyed Endermen would appear very rarely and only at night. Instead of immediately screaming and rushing the player, an angered Enderman would teleport into the distance, hidden among trees or fog, just watching. It would follow the player across the map over several in-game days, appearing closer each night.

While underground, White-eyed Endermen would also overwatch the player from the dark, but since caves would be their true domain, they would be more aggressive there at some occasions. Thrre would be chance of them attacking the player if player looks at them purposefully, just like usual Endermen.

True Structural Sabotage:

When the player isn't looking or isn't even around, White-eyed Endermen would deliberately try to dismantle player-made structures, step by step. Imagine coming back to your base to find the torches removed, windows broken, or blocks placed inside your house to block your escape routes.

They would also leave different eerie structures around and/or inside player's base or even throughout the world map, like in many other horror mods. Most of them would be Herobrine-like, some of them would be direct references to Herobrine's structures. Some of them would imply distinct intuitional messages to player, while other would not make any sense to them.

Bypassing the 2-Block Safe Zone: To break the player's sense of absolute security, Endermen should be able to crouch, crawl, or even temporarily "phase" through solid blocks if they are tracking a player who looked at them.

Kodari AI
KodariJul 2 at 9:59 pm 52
WhiteEyedEnderman
A horror-themed Fabric mod overhauling Enderman behavior. Rare White-Eyed Endermen stalk players across in-game days, teleporting to hidden distant vantage points at night and creeping closer each night instead of attacking outright. Underground they occasionally strike without warning. When no one watches, they dismantle player structures block by block and leave eerie Herobrine-style constructions and cryptic signs around the world. Once provoked by a stare, they can phase through walls to bypass the classic 2-block safe zone, breaking the sense of security vanilla Endermen never could.

Core files created:

  • Entity WhiteEyedEndermanEntity extends vanilla EndermanEntity (reuses vanilla rendering/texture and existing stare-aggro logic), adding persisted stalking state.

  • StalkPlayerGoal — teleports to hidden vantage points at night, distance shrinking each new in-game day (nightsStalked).

  • CaveAggressionGoal — underground chance-based hostility, boosted when the player is staring, direct melee attack loop.

  • PhaseThroughBlocksGoal — once angered by a stare, teleports through obstructions toward the player when pathing stalls, bypassing the 2-block safe zone.

  • StructureSabotageGoal — breaks nearby torches/lanterns and occasionally blocks doorways when unwatched.

  • EerieStructureGoal + EerieStructures — randomly places Herobrine-style pillars, obsidian platforms, or cryptic signs when unobserved.

  • Rare surface-night / more common cave spawning via SpawnRestriction + BiomeModifications.

No third-party libraries used, so no manifest.kod is needed.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
15 756
src/client/java/com/example/whiteeyedenderman/client/WhiteEyedEndermanClient.java
package com.example.whiteeyedenderman.client;

import com.example.whiteeyedenderman.entity.ModEntities;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;
import net.minecraft.client.render.entity.EndermanEntityRenderer;

public class WhiteEyedEndermanClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        EntityRendererRegistry.register(ModEntities.WHITE_EYED_ENDERMAN, EndermanEntityRenderer::new);
    }
}