mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 10:27:44 +01:00
Move all config stuff to config patch
This commit is contained in:
@@ -474,10 +474,10 @@ index 5d289be8f0ef003abbce992e7662f6ddce4f4a99..5e3d7321a73144c3e4c43c18c5b748b2
|
||||
|
||||
@Override
|
||||
diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200f40d07ff 100644
|
||||
index dd93c5252cf0b53b23fca410e856852bbfda3d39..8b4656abb11787573bcadb79e2f7070e7e8938ae 100644
|
||||
--- a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
+++ b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
||||
@@ -463,9 +463,11 @@ public class PurpurWorldConfig {
|
||||
@@ -467,9 +467,11 @@ public class PurpurWorldConfig {
|
||||
|
||||
public boolean axolotlRidable = false;
|
||||
public double axolotlMaxHealth = 14.0D;
|
||||
@@ -489,7 +489,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean batRidable = false;
|
||||
@@ -495,6 +497,7 @@ public class PurpurWorldConfig {
|
||||
@@ -499,6 +501,7 @@ public class PurpurWorldConfig {
|
||||
public boolean beeRidableInWater = false;
|
||||
public double beeMaxY = 256D;
|
||||
public double beeMaxHealth = 10.0D;
|
||||
@@ -497,7 +497,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void beeSettings() {
|
||||
beeRidable = getBoolean("mobs.bee.ridable", beeRidable);
|
||||
beeRidableInWater = getBoolean("mobs.bee.ridable-in-water", beeRidableInWater);
|
||||
@@ -505,6 +508,7 @@ public class PurpurWorldConfig {
|
||||
@@ -509,6 +512,7 @@ public class PurpurWorldConfig {
|
||||
set("mobs.bee.attributes.max_health", oldValue);
|
||||
}
|
||||
beeMaxHealth = getDouble("mobs.bee.attributes.max_health", beeMaxHealth);
|
||||
@@ -505,7 +505,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean blazeRidable = false;
|
||||
@@ -529,6 +533,7 @@ public class PurpurWorldConfig {
|
||||
@@ -533,6 +537,7 @@ public class PurpurWorldConfig {
|
||||
public int catSpawnDelay = 1200;
|
||||
public int catSpawnSwampHutScanRange = 16;
|
||||
public int catSpawnVillageScanRange = 48;
|
||||
@@ -513,7 +513,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void catSettings() {
|
||||
catRidable = getBoolean("mobs.cat.ridable", catRidable);
|
||||
catRidableInWater = getBoolean("mobs.cat.ridable-in-water", catRidableInWater);
|
||||
@@ -541,6 +546,7 @@ public class PurpurWorldConfig {
|
||||
@@ -545,6 +550,7 @@ public class PurpurWorldConfig {
|
||||
catSpawnDelay = getInt("mobs.cat.spawn-delay", catSpawnDelay);
|
||||
catSpawnSwampHutScanRange = getInt("mobs.cat.scan-range-for-other-cats.swamp-hut", catSpawnSwampHutScanRange);
|
||||
catSpawnVillageScanRange = getInt("mobs.cat.scan-range-for-other-cats.village", catSpawnVillageScanRange);
|
||||
@@ -521,7 +521,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean caveSpiderRidable = false;
|
||||
@@ -561,6 +567,7 @@ public class PurpurWorldConfig {
|
||||
@@ -565,6 +571,7 @@ public class PurpurWorldConfig {
|
||||
public boolean chickenRidableInWater = false;
|
||||
public double chickenMaxHealth = 4.0D;
|
||||
public boolean chickenRetaliate = false;
|
||||
@@ -529,7 +529,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void chickenSettings() {
|
||||
chickenRidable = getBoolean("mobs.chicken.ridable", chickenRidable);
|
||||
chickenRidableInWater = getBoolean("mobs.chicken.ridable-in-water", chickenRidableInWater);
|
||||
@@ -571,6 +578,7 @@ public class PurpurWorldConfig {
|
||||
@@ -575,6 +582,7 @@ public class PurpurWorldConfig {
|
||||
}
|
||||
chickenMaxHealth = getDouble("mobs.chicken.attributes.max_health", chickenMaxHealth);
|
||||
chickenRetaliate = getBoolean("mobs.chicken.retaliate", chickenRetaliate);
|
||||
@@ -537,7 +537,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean codRidable = false;
|
||||
@@ -589,6 +597,7 @@ public class PurpurWorldConfig {
|
||||
@@ -593,6 +601,7 @@ public class PurpurWorldConfig {
|
||||
public boolean cowRidableInWater = false;
|
||||
public double cowMaxHealth = 10.0D;
|
||||
public int cowFeedMushrooms = 0;
|
||||
@@ -545,7 +545,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void cowSettings() {
|
||||
cowRidable = getBoolean("mobs.cow.ridable", cowRidable);
|
||||
cowRidableInWater = getBoolean("mobs.cow.ridable-in-water", cowRidableInWater);
|
||||
@@ -599,6 +608,7 @@ public class PurpurWorldConfig {
|
||||
@@ -603,6 +612,7 @@ public class PurpurWorldConfig {
|
||||
}
|
||||
cowMaxHealth = getDouble("mobs.cow.attributes.max_health", cowMaxHealth);
|
||||
cowFeedMushrooms = getInt("mobs.cow.feed-mushrooms-for-mooshroom", cowFeedMushrooms);
|
||||
@@ -553,7 +553,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean creeperRidable = false;
|
||||
@@ -646,6 +656,7 @@ public class PurpurWorldConfig {
|
||||
@@ -650,6 +660,7 @@ public class PurpurWorldConfig {
|
||||
public double donkeyJumpStrengthMax = 0.5D;
|
||||
public double donkeyMovementSpeedMin = 0.175D;
|
||||
public double donkeyMovementSpeedMax = 0.175D;
|
||||
@@ -561,7 +561,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void donkeySettings() {
|
||||
donkeyRidableInWater = getBoolean("mobs.donkey.ridable-in-water", donkeyRidableInWater);
|
||||
if (PurpurConfig.version < 10) {
|
||||
@@ -661,6 +672,7 @@ public class PurpurWorldConfig {
|
||||
@@ -665,6 +676,7 @@ public class PurpurWorldConfig {
|
||||
donkeyJumpStrengthMax = getDouble("mobs.donkey.attributes.jump_strength.max", donkeyJumpStrengthMax);
|
||||
donkeyMovementSpeedMin = getDouble("mobs.donkey.attributes.movement_speed.min", donkeyMovementSpeedMin);
|
||||
donkeyMovementSpeedMax = getDouble("mobs.donkey.attributes.movement_speed.max", donkeyMovementSpeedMax);
|
||||
@@ -569,7 +569,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean drownedRidable = false;
|
||||
@@ -767,6 +779,7 @@ public class PurpurWorldConfig {
|
||||
@@ -771,6 +783,7 @@ public class PurpurWorldConfig {
|
||||
public boolean foxRidableInWater = false;
|
||||
public double foxMaxHealth = 10.0D;
|
||||
public boolean foxTypeChangesWithTulips = false;
|
||||
@@ -577,7 +577,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void foxSettings() {
|
||||
foxRidable = getBoolean("mobs.fox.ridable", foxRidable);
|
||||
foxRidableInWater = getBoolean("mobs.fox.ridable-in-water", foxRidableInWater);
|
||||
@@ -777,6 +790,7 @@ public class PurpurWorldConfig {
|
||||
@@ -781,6 +794,7 @@ public class PurpurWorldConfig {
|
||||
}
|
||||
foxMaxHealth = getDouble("mobs.fox.attributes.max_health", foxMaxHealth);
|
||||
foxTypeChangesWithTulips = getBoolean("mobs.fox.tulips-change-type", foxTypeChangesWithTulips);
|
||||
@@ -585,7 +585,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean ghastRidable = false;
|
||||
@@ -837,10 +851,12 @@ public class PurpurWorldConfig {
|
||||
@@ -841,10 +855,12 @@ public class PurpurWorldConfig {
|
||||
public boolean goatRidable = false;
|
||||
public boolean goatRidableInWater = false;
|
||||
public double goatMaxHealth = 10.0D;
|
||||
@@ -598,7 +598,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean guardianRidable = false;
|
||||
@@ -858,6 +874,7 @@ public class PurpurWorldConfig {
|
||||
@@ -862,6 +878,7 @@ public class PurpurWorldConfig {
|
||||
public boolean hoglinRidable = false;
|
||||
public boolean hoglinRidableInWater = false;
|
||||
public double hoglinMaxHealth = 40.0D;
|
||||
@@ -606,7 +606,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void hoglinSettings() {
|
||||
hoglinRidable = getBoolean("mobs.hoglin.ridable", hoglinRidable);
|
||||
hoglinRidableInWater = getBoolean("mobs.hoglin.ridable-in-water", hoglinRidableInWater);
|
||||
@@ -867,6 +884,7 @@ public class PurpurWorldConfig {
|
||||
@@ -871,6 +888,7 @@ public class PurpurWorldConfig {
|
||||
set("mobs.hoglin.attributes.max_health", oldValue);
|
||||
}
|
||||
hoglinMaxHealth = getDouble("mobs.hoglin.attributes.max_health", hoglinMaxHealth);
|
||||
@@ -614,7 +614,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean horseRidableInWater = false;
|
||||
@@ -876,6 +894,7 @@ public class PurpurWorldConfig {
|
||||
@@ -880,6 +898,7 @@ public class PurpurWorldConfig {
|
||||
public double horseJumpStrengthMax = 1.0D;
|
||||
public double horseMovementSpeedMin = 0.1125D;
|
||||
public double horseMovementSpeedMax = 0.3375D;
|
||||
@@ -622,7 +622,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void horseSettings() {
|
||||
horseRidableInWater = getBoolean("mobs.horse.ridable-in-water", horseRidableInWater);
|
||||
if (PurpurConfig.version < 10) {
|
||||
@@ -891,6 +910,7 @@ public class PurpurWorldConfig {
|
||||
@@ -895,6 +914,7 @@ public class PurpurWorldConfig {
|
||||
horseJumpStrengthMax = getDouble("mobs.horse.attributes.jump_strength.max", horseJumpStrengthMax);
|
||||
horseMovementSpeedMin = getDouble("mobs.horse.attributes.movement_speed.min", horseMovementSpeedMin);
|
||||
horseMovementSpeedMax = getDouble("mobs.horse.attributes.movement_speed.max", horseMovementSpeedMax);
|
||||
@@ -630,7 +630,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean huskRidable = false;
|
||||
@@ -961,6 +981,7 @@ public class PurpurWorldConfig {
|
||||
@@ -965,6 +985,7 @@ public class PurpurWorldConfig {
|
||||
public double llamaJumpStrengthMax = 0.5D;
|
||||
public double llamaMovementSpeedMin = 0.175D;
|
||||
public double llamaMovementSpeedMax = 0.175D;
|
||||
@@ -638,7 +638,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void llamaSettings() {
|
||||
llamaRidable = getBoolean("mobs.llama.ridable", llamaRidable);
|
||||
llamaRidableInWater = getBoolean("mobs.llama.ridable-in-water", llamaRidableInWater);
|
||||
@@ -977,6 +998,7 @@ public class PurpurWorldConfig {
|
||||
@@ -981,6 +1002,7 @@ public class PurpurWorldConfig {
|
||||
llamaJumpStrengthMax = getDouble("mobs.llama.attributes.jump_strength.max", llamaJumpStrengthMax);
|
||||
llamaMovementSpeedMin = getDouble("mobs.llama.attributes.movement_speed.min", llamaMovementSpeedMin);
|
||||
llamaMovementSpeedMax = getDouble("mobs.llama.attributes.movement_speed.max", llamaMovementSpeedMax);
|
||||
@@ -646,7 +646,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean magmaCubeRidable = false;
|
||||
@@ -996,6 +1018,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1000,6 +1022,7 @@ public class PurpurWorldConfig {
|
||||
public boolean mooshroomRidable = false;
|
||||
public boolean mooshroomRidableInWater = false;
|
||||
public double mooshroomMaxHealth = 10.0D;
|
||||
@@ -654,7 +654,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void mooshroomSettings() {
|
||||
mooshroomRidable = getBoolean("mobs.mooshroom.ridable", mooshroomRidable);
|
||||
mooshroomRidableInWater = getBoolean("mobs.mooshroom.ridable-in-water", mooshroomRidableInWater);
|
||||
@@ -1005,6 +1028,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1009,6 +1032,7 @@ public class PurpurWorldConfig {
|
||||
set("mobs.mooshroom.attributes.max_health", oldValue);
|
||||
}
|
||||
mooshroomMaxHealth = getDouble("mobs.mooshroom.attributes.max_health", mooshroomMaxHealth);
|
||||
@@ -662,7 +662,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean muleRidableInWater = false;
|
||||
@@ -1014,6 +1038,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1018,6 +1042,7 @@ public class PurpurWorldConfig {
|
||||
public double muleJumpStrengthMax = 0.5D;
|
||||
public double muleMovementSpeedMin = 0.175D;
|
||||
public double muleMovementSpeedMax = 0.175D;
|
||||
@@ -670,7 +670,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void muleSettings() {
|
||||
muleRidableInWater = getBoolean("mobs.mule.ridable-in-water", muleRidableInWater);
|
||||
if (PurpurConfig.version < 10) {
|
||||
@@ -1029,11 +1054,13 @@ public class PurpurWorldConfig {
|
||||
@@ -1033,11 +1058,13 @@ public class PurpurWorldConfig {
|
||||
muleJumpStrengthMax = getDouble("mobs.mule.attributes.jump_strength.max", muleJumpStrengthMax);
|
||||
muleMovementSpeedMin = getDouble("mobs.mule.attributes.movement_speed.min", muleMovementSpeedMin);
|
||||
muleMovementSpeedMax = getDouble("mobs.mule.attributes.movement_speed.max", muleMovementSpeedMax);
|
||||
@@ -684,7 +684,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void ocelotSettings() {
|
||||
ocelotRidable = getBoolean("mobs.ocelot.ridable", ocelotRidable);
|
||||
ocelotRidableInWater = getBoolean("mobs.ocelot.ridable-in-water", ocelotRidableInWater);
|
||||
@@ -1043,11 +1070,13 @@ public class PurpurWorldConfig {
|
||||
@@ -1047,11 +1074,13 @@ public class PurpurWorldConfig {
|
||||
set("mobs.ocelot.attributes.max_health", oldValue);
|
||||
}
|
||||
ocelotMaxHealth = getDouble("mobs.ocelot.attributes.max_health", ocelotMaxHealth);
|
||||
@@ -698,7 +698,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void pandaSettings() {
|
||||
pandaRidable = getBoolean("mobs.panda.ridable", pandaRidable);
|
||||
pandaRidableInWater = getBoolean("mobs.panda.ridable-in-water", pandaRidableInWater);
|
||||
@@ -1057,6 +1086,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1061,6 +1090,7 @@ public class PurpurWorldConfig {
|
||||
set("mobs.panda.attributes.max_health", oldValue);
|
||||
}
|
||||
pandaMaxHealth = getDouble("mobs.panda.attributes.max_health", pandaMaxHealth);
|
||||
@@ -706,7 +706,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean parrotRidable = false;
|
||||
@@ -1137,6 +1167,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1141,6 +1171,7 @@ public class PurpurWorldConfig {
|
||||
public boolean pigRidableInWater = false;
|
||||
public double pigMaxHealth = 10.0D;
|
||||
public boolean pigGiveSaddleBack = false;
|
||||
@@ -714,7 +714,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void pigSettings() {
|
||||
pigRidable = getBoolean("mobs.pig.ridable", pigRidable);
|
||||
pigRidableInWater = getBoolean("mobs.pig.ridable-in-water", pigRidableInWater);
|
||||
@@ -1147,6 +1178,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1151,6 +1182,7 @@ public class PurpurWorldConfig {
|
||||
}
|
||||
pigMaxHealth = getDouble("mobs.pig.attributes.max_health", pigMaxHealth);
|
||||
pigGiveSaddleBack = getBoolean("mobs.pig.give-saddle-back", pigGiveSaddleBack);
|
||||
@@ -722,7 +722,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean piglinRidable = false;
|
||||
@@ -1196,6 +1228,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1200,6 +1232,7 @@ public class PurpurWorldConfig {
|
||||
public double polarBearMaxHealth = 30.0D;
|
||||
public String polarBearBreedableItemString = "";
|
||||
public Item polarBearBreedableItem = null;
|
||||
@@ -730,7 +730,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void polarBearSettings() {
|
||||
polarBearRidable = getBoolean("mobs.polar_bear.ridable", polarBearRidable);
|
||||
polarBearRidableInWater = getBoolean("mobs.polar_bear.ridable-in-water", polarBearRidableInWater);
|
||||
@@ -1208,6 +1241,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1212,6 +1245,7 @@ public class PurpurWorldConfig {
|
||||
polarBearBreedableItemString = getString("mobs.polar_bear.breedable-item", polarBearBreedableItemString);
|
||||
Item item = Registry.ITEM.get(new ResourceLocation(polarBearBreedableItemString));
|
||||
if (item != Items.AIR) polarBearBreedableItem = item;
|
||||
@@ -738,7 +738,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean pufferfishRidable = false;
|
||||
@@ -1227,6 +1261,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1231,6 +1265,7 @@ public class PurpurWorldConfig {
|
||||
public double rabbitMaxHealth = 3.0D;
|
||||
public double rabbitNaturalToast = 0.0D;
|
||||
public double rabbitNaturalKiller = 0.0D;
|
||||
@@ -746,7 +746,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void rabbitSettings() {
|
||||
rabbitRidable = getBoolean("mobs.rabbit.ridable", rabbitRidable);
|
||||
rabbitRidableInWater = getBoolean("mobs.rabbit.ridable-in-water", rabbitRidableInWater);
|
||||
@@ -1238,6 +1273,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1242,6 +1277,7 @@ public class PurpurWorldConfig {
|
||||
rabbitMaxHealth = getDouble("mobs.rabbit.attributes.max_health", rabbitMaxHealth);
|
||||
rabbitNaturalToast = getDouble("mobs.rabbit.spawn-toast-chance", rabbitNaturalToast);
|
||||
rabbitNaturalKiller = getDouble("mobs.rabbit.spawn-killer-rabbit-chance", rabbitNaturalKiller);
|
||||
@@ -754,7 +754,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean ravagerRidable = false;
|
||||
@@ -1269,6 +1305,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1273,6 +1309,7 @@ public class PurpurWorldConfig {
|
||||
public boolean sheepRidable = false;
|
||||
public boolean sheepRidableInWater = false;
|
||||
public double sheepMaxHealth = 8.0D;
|
||||
@@ -762,7 +762,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void sheepSettings() {
|
||||
sheepRidable = getBoolean("mobs.sheep.ridable", sheepRidable);
|
||||
sheepRidableInWater = getBoolean("mobs.sheep.ridable-in-water", sheepRidableInWater);
|
||||
@@ -1278,6 +1315,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1282,6 +1319,7 @@ public class PurpurWorldConfig {
|
||||
set("mobs.sheep.attributes.max_health", oldValue);
|
||||
}
|
||||
sheepMaxHealth = getDouble("mobs.sheep.attributes.max_health", sheepMaxHealth);
|
||||
@@ -770,7 +770,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean shulkerRidable = false;
|
||||
@@ -1432,6 +1470,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1436,6 +1474,7 @@ public class PurpurWorldConfig {
|
||||
public boolean striderRidable = false;
|
||||
public boolean striderRidableInWater = false;
|
||||
public double striderMaxHealth = 20.0D;
|
||||
@@ -778,7 +778,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void striderSettings() {
|
||||
striderRidable = getBoolean("mobs.strider.ridable", striderRidable);
|
||||
striderRidableInWater = getBoolean("mobs.strider.ridable-in-water", striderRidableInWater);
|
||||
@@ -1441,6 +1480,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1445,6 +1484,7 @@ public class PurpurWorldConfig {
|
||||
set("mobs.strider.attributes.max_health", oldValue);
|
||||
}
|
||||
striderMaxHealth = getDouble("mobs.strider.attributes.max_health", striderMaxHealth);
|
||||
@@ -786,7 +786,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean traderLlamaRidable = false;
|
||||
@@ -1451,6 +1491,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1455,6 +1495,7 @@ public class PurpurWorldConfig {
|
||||
public double traderLlamaJumpStrengthMax = 0.5D;
|
||||
public double traderLlamaMovementSpeedMin = 0.175D;
|
||||
public double traderLlamaMovementSpeedMax = 0.175D;
|
||||
@@ -794,7 +794,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void traderLlamaSettings() {
|
||||
traderLlamaRidable = getBoolean("mobs.trader_llama.ridable", traderLlamaRidable);
|
||||
traderLlamaRidableInWater = getBoolean("mobs.trader_llama.ridable-in-water", traderLlamaRidableInWater);
|
||||
@@ -1467,6 +1508,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1471,6 +1512,7 @@ public class PurpurWorldConfig {
|
||||
traderLlamaJumpStrengthMax = getDouble("mobs.trader_llama.attributes.jump_strength.max", traderLlamaJumpStrengthMax);
|
||||
traderLlamaMovementSpeedMin = getDouble("mobs.trader_llama.attributes.movement_speed.min", traderLlamaMovementSpeedMin);
|
||||
traderLlamaMovementSpeedMax = getDouble("mobs.trader_llama.attributes.movement_speed.max", traderLlamaMovementSpeedMax);
|
||||
@@ -802,7 +802,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean tropicalFishRidable = false;
|
||||
@@ -1487,6 +1529,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1491,6 +1533,7 @@ public class PurpurWorldConfig {
|
||||
public boolean turtleEggsBreakFromExpOrbs = true;
|
||||
public boolean turtleEggsBreakFromItems = true;
|
||||
public boolean turtleEggsBreakFromMinecarts = true;
|
||||
@@ -810,7 +810,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void turtleEggSettings() {
|
||||
turtleRidable = getBoolean("mobs.turtle.ridable", turtleRidable);
|
||||
turtleRidableInWater = getBoolean("mobs.turtle.ridable-in-water", turtleRidableInWater);
|
||||
@@ -1499,6 +1542,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1503,6 +1546,7 @@ public class PurpurWorldConfig {
|
||||
turtleEggsBreakFromExpOrbs = getBoolean("blocks.turtle_egg.break-from-exp-orbs", turtleEggsBreakFromExpOrbs);
|
||||
turtleEggsBreakFromItems = getBoolean("blocks.turtle_egg.break-from-items", turtleEggsBreakFromItems);
|
||||
turtleEggsBreakFromMinecarts = getBoolean("blocks.turtle_egg.break-from-minecarts", turtleEggsBreakFromMinecarts);
|
||||
@@ -818,7 +818,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean vexRidable = false;
|
||||
@@ -1527,6 +1571,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1531,6 +1575,7 @@ public class PurpurWorldConfig {
|
||||
public int villagerSpawnIronGolemRadius = 0;
|
||||
public int villagerSpawnIronGolemLimit = 0;
|
||||
public boolean villagerCanBreed = true;
|
||||
@@ -826,7 +826,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void villagerSettings() {
|
||||
villagerRidable = getBoolean("mobs.villager.ridable", villagerRidable);
|
||||
villagerRidableInWater = getBoolean("mobs.villager.ridable-in-water", villagerRidableInWater);
|
||||
@@ -1543,6 +1588,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1547,6 +1592,7 @@ public class PurpurWorldConfig {
|
||||
villagerSpawnIronGolemRadius = getInt("mobs.villager.spawn-iron-golem.radius", villagerSpawnIronGolemRadius);
|
||||
villagerSpawnIronGolemLimit = getInt("mobs.villager.spawn-iron-golem.limit", villagerSpawnIronGolemLimit);
|
||||
villagerCanBreed = getBoolean("mobs.villager.can-breed", villagerCanBreed);
|
||||
@@ -834,7 +834,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
}
|
||||
|
||||
public boolean vindicatorRidable = false;
|
||||
@@ -1636,6 +1682,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1640,6 +1686,7 @@ public class PurpurWorldConfig {
|
||||
public boolean wolfRidable = false;
|
||||
public boolean wolfRidableInWater = false;
|
||||
public double wolfMaxHealth = 8.0D;
|
||||
@@ -842,7 +842,7 @@ index 897db98ad82b8168908018f5fce30f661a00fe72..87dbb11dbad933689c7b574964d7d200
|
||||
private void wolfSettings() {
|
||||
wolfRidable = getBoolean("mobs.wolf.ridable", wolfRidable);
|
||||
wolfRidableInWater = getBoolean("mobs.wolf.ridable-in-water", wolfRidableInWater);
|
||||
@@ -1645,6 +1692,7 @@ public class PurpurWorldConfig {
|
||||
@@ -1649,6 +1696,7 @@ public class PurpurWorldConfig {
|
||||
set("mobs.wolf.attributes.max_health", oldValue);
|
||||
}
|
||||
wolfMaxHealth = getDouble("mobs.wolf.attributes.max_health", wolfMaxHealth);
|
||||
|
||||
Reference in New Issue
Block a user