NoEndermanInBrightArea
Stops enderman from spawning in bright area
Quick challenge
How far can you run before the mobs catch you?
Rotate your phone
Dino Mine is ready when your screen is landscape.
Minecraft check
Confirm your run
Complete the quick check to get your code.
Your code
Expires in 5 hours
NoEndermanInBrightArea
This plugin stops enderman from spawning in bright area by just cancel the spawn event if the block light level is not zero.
```java @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); } ```