mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 15:03:07 +00:00
By default enderminies will no longer spawn in lit areas.
This commit is contained in:
1 parent
8d7def45c7
commit
3aea5f05a2
2 files changed
+4
-3
No files matched your search
@@ -354,9 +354,8 @@ public final class Config {
|
||||
public static int enderminyHealth = 20;
|
||||
public static boolean enderminyGroupAgro = true;
|
||||
public static int enderminyMaxGroupSize = 3;
|
||||
public static boolean enderminySpawnInLitAreas = false;
|
||||
|
||||
|
||||
|
||||
|
||||
public static void load(FMLPreInitializationEvent event) {
|
||||
|
||||
@@ -943,6 +942,8 @@ public final class Config {
|
||||
"When true attacking one Enderminy will cause other Enderminies who witness the attack to attack the player as well");
|
||||
enderminyMaxGroupSize= config.get(sectionMobConfig.name, "enderminyMaxGroupSize", enderminyMaxGroupSize,
|
||||
"Maximum number of Enderminies that will spawn in a single group").getInt(enderminyMaxGroupSize);
|
||||
enderminySpawnInLitAreas= config.getBoolean("enderminySpawnInLitAreas", sectionMobConfig.name, enderminySpawnInLitAreas,
|
||||
"When true enderminies will spawn in well lit areas, when false they will only spawn in dark areas.");
|
||||
}
|
||||
|
||||
private Config() {
|
||||
|
||||
@@ -82,7 +82,7 @@ public class EntityEnderminy extends EntityMob {
|
||||
|
||||
@Override
|
||||
protected boolean isValidLightLevel() {
|
||||
return true;
|
||||
return Config.enderminySpawnInLitAreas ? true : super.isValidLightLevel();
|
||||
}
|
||||
|
||||
protected void applyEntityAttributes() {
|
||||
|
||||
Reference in new issue
Block a user