Added config option for mobs ignoring player during the grace period.

This commit is contained in:
2021-09-29 01:56:28 +01:00
parent cb04fd8e9b
commit b0805b708e
2 changed files with 9 additions and 2 deletions

View File

@ -8,6 +8,7 @@ public class Config {
public static ForgeConfigSpec SERVER_CONFIG;
public static ForgeConfigSpec.BooleanValue POST_GRACE_ENABLED;
public static ForgeConfigSpec.BooleanValue POST_GRACE_IGNORE_PLAYER_ENABLED;
public static ForgeConfigSpec.IntValue POST_GRACE_DURATION;
public static ForgeConfigSpec.BooleanValue POST_DROWN_ENABLED;
public static ForgeConfigSpec.BooleanValue POST_WATER_ENABLED;
@ -42,6 +43,9 @@ public class Config {
POST_GRACE_DURATION = builder
.comment("Grace period duration in seconds.")
.defineInRange("graceDuration", 10, 1, Integer.MAX_VALUE/40);
POST_GRACE_IGNORE_PLAYER_ENABLED = builder
.comment("Whether mobs will ignore a player during their grace period.")
.define("graceIgnorePlayerEnabled", true);
builder.pop();
builder.push("water_protection");
POST_DROWN_ENABLED = builder