Home›Java›Mods›NoEndermanInBrightArea
NoEndermanInBrightArea
ModsJava

NoEndermanInBrightArea

Java mod listed for Minecraft 1.21. Downloads from the MC Java Mods app on Android.

by Hueeey · on Modrinth

⬇ Download on Modrinth

This plugin stops enderman from spawning in bright area by just cancel the spawn event if the block light level is not zero.

@EventHandler
public void onCreatureSpawn(CreatureSpawnEvent event) {
  if (event.getEntityType() != EntityType.ENDERMAN) return;
  if (event.getLocation().getWorld().getBlockAt(event.getLocation()).getLightFromBlocks() == 0) return;
  
  event.setCancelled(true);
}
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more