mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-11 07:47:41 +00:00
Remove zombie chance config options (#9950)
This commit is contained in:
1 parent
115eb5e4c8
commit
0467d71466
2 files changed
-34
No files matched your search
@@ -73,21 +73,3 @@
|
||||
if (!this.isSilent()) {
|
||||
p_219160_.levelEvent(null, 1026, this.blockPosition(), 0);
|
||||
}
|
||||
@@ -487,7 +_,7 @@
|
||||
}
|
||||
|
||||
public static boolean getSpawnAsBabyOdds(RandomSource p_219163_) {
|
||||
- return p_219163_.nextFloat() < 0.05F;
|
||||
+ return p_219163_.nextFloat() < net.minecraftforge.common.ForgeConfig.SERVER.zombieBabyChance.get();
|
||||
}
|
||||
|
||||
protected void handleAttributes(float p_34340_) {
|
||||
@@ -510,7 +_,7 @@
|
||||
}
|
||||
|
||||
protected void randomizeReinforcementsChance() {
|
||||
- this.getAttribute(Attributes.SPAWN_REINFORCEMENTS_CHANCE).setBaseValue(this.random.nextDouble() * 0.1F);
|
||||
+ this.getAttribute(Attributes.SPAWN_REINFORCEMENTS_CHANCE).setBaseValue(this.random.nextDouble() * net.minecraftforge.common.ForgeConfig.SERVER.zombieBaseSummonChance.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -12,7 +12,6 @@ import org.apache.commons.lang3.tuple.Pair;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
|
||||
import net.minecraftforge.common.ForgeConfigSpec.BooleanValue;
|
||||
import net.minecraftforge.common.ForgeConfigSpec.DoubleValue;
|
||||
import net.minecraftforge.common.ForgeConfigSpec.ConfigValue;
|
||||
|
||||
public class ForgeConfig {
|
||||
@@ -23,9 +22,6 @@ public class ForgeConfig {
|
||||
|
||||
public final BooleanValue fullBoundingBoxLadders;
|
||||
|
||||
public final DoubleValue zombieBaseSummonChance;
|
||||
public final DoubleValue zombieBabyChance;
|
||||
|
||||
public final ConfigValue<String> permissionHandler;
|
||||
|
||||
public final BooleanValue advertiseDedicatedServerToLan;
|
||||
@@ -52,18 +48,6 @@ public class ForgeConfig {
|
||||
.worldRestart()
|
||||
.define("fullBoundingBoxLadders", false);
|
||||
|
||||
zombieBaseSummonChance = builder
|
||||
.comment("Base zombie summoning spawn chance. Allows changing the bonus zombie summoning mechanic.")
|
||||
.translation("forge.configgui.zombieBaseSummonChance")
|
||||
.worldRestart()
|
||||
.defineInRange("zombieBaseSummonChance", 0.1D, 0.0D, 1.0D);
|
||||
|
||||
zombieBabyChance = builder
|
||||
.comment("Chance that a zombie (or subclass) is a baby. Allows changing the zombie spawning mechanic.")
|
||||
.translation("forge.configgui.zombieBabyChance")
|
||||
.worldRestart()
|
||||
.defineInRange("zombieBabyChance", 0.05D, 0.0D, 1.0D);
|
||||
|
||||
permissionHandler = builder
|
||||
.comment("The permission handler used by the server. Defaults to forge:default_handler if no such handler with that name is registered.")
|
||||
.translation("forge.configgui.permissionHandler")
|
||||
|
||||
Reference in new issue
Block a user