mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
port Make entity breeding times configurable patch
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,598 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
|
||||||
|
Date: Sun, 15 Nov 2020 02:18:15 -0800
|
||||||
|
Subject: [PATCH] Make entity breeding times configurable
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/net/minecraft/world/entity/ai/behavior/VillagerMakeLove.java b/net/minecraft/world/entity/ai/behavior/VillagerMakeLove.java
|
||||||
|
index 4fb63e58eac5d67fcd31c3233dca1dae72b98bc4..dd8d315eba203db121e24e3402f2117fc0f3043f 100644
|
||||||
|
--- a/net/minecraft/world/entity/ai/behavior/VillagerMakeLove.java
|
||||||
|
+++ b/net/minecraft/world/entity/ai/behavior/VillagerMakeLove.java
|
||||||
|
@@ -118,8 +118,10 @@ public class VillagerMakeLove extends Behavior<Villager> {
|
||||||
|
return Optional.empty();
|
||||||
|
}
|
||||||
|
// Move age setting down
|
||||||
|
- parent.setAge(6000);
|
||||||
|
- partner.setAge(6000);
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ parent.setAge(level.purpurConfig.villagerBreedingTicks);
|
||||||
|
+ partner.setAge(level.purpurConfig.villagerBreedingTicks);
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
level.addFreshEntityWithPassengers(breedOffspring, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BREEDING);
|
||||||
|
// CraftBukkit end
|
||||||
|
level.broadcastEntityEvent(breedOffspring, (byte)12);
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Animal.java b/net/minecraft/world/entity/animal/Animal.java
|
||||||
|
index 33c3752be451508343cad83766da7c3be1822d02..fa34e7f1c20dfd569b52a9c8e0a8d4d5e659ce20 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Animal.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Animal.java
|
||||||
|
@@ -40,6 +40,7 @@ public abstract class Animal extends AgeableMob {
|
||||||
|
@Nullable
|
||||||
|
public UUID loveCause;
|
||||||
|
public ItemStack breedItem; // CraftBukkit - Add breedItem variable
|
||||||
|
+ public abstract int getPurpurBreedTime(); // Purpur - Make entity breeding times configurable
|
||||||
|
|
||||||
|
protected Animal(EntityType<? extends Animal> entityType, Level level) {
|
||||||
|
super(entityType, level);
|
||||||
|
@@ -279,8 +280,10 @@ public abstract class Animal extends AgeableMob {
|
||||||
|
player.awardStat(Stats.ANIMALS_BRED);
|
||||||
|
CriteriaTriggers.BRED_ANIMALS.trigger(player, this, animal, baby);
|
||||||
|
} // Paper
|
||||||
|
- this.setAge(6000);
|
||||||
|
- animal.setAge(6000);
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ this.setAge(this.getPurpurBreedTime());
|
||||||
|
+ animal.setAge(animal.getPurpurBreedTime());
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
this.resetLove();
|
||||||
|
animal.resetLove();
|
||||||
|
level.broadcastEntityEvent(this, (byte)18);
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Bee.java b/net/minecraft/world/entity/animal/Bee.java
|
||||||
|
index bcf554054111f85b095341a5455856ee79f3ade6..62fbaed0f81b900730ab22b969ffd48d31a268ce 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Bee.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Bee.java
|
||||||
|
@@ -479,6 +479,13 @@ public class Bee extends Animal implements NeutralMob, FlyingAnimal {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.beeBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
public int getRemainingPersistentAngerTime() {
|
||||||
|
return this.entityData.get(DATA_REMAINING_ANGER_TIME);
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Cat.java b/net/minecraft/world/entity/animal/Cat.java
|
||||||
|
index 54a003df555a3146fe30de1f95fe2469dced9fb0..7a9792542a8bc4e142bb82e2cd75c6f7fbec8f8b 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Cat.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Cat.java
|
||||||
|
@@ -126,6 +126,13 @@ public class Cat extends TamableAnimal implements VariantHolder<Holder<CatVarian
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.catBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected void registerGoals() {
|
||||||
|
this.temptGoal = new Cat.CatTemptGoal(this, 0.6, itemStack -> itemStack.is(ItemTags.CAT_FOOD), true);
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Chicken.java b/net/minecraft/world/entity/animal/Chicken.java
|
||||||
|
index d718f0ed362c49803260dceed64bd93e2b6744fc..39ad1729ef03fc35a6365ee215be214eccfd959a 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Chicken.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Chicken.java
|
||||||
|
@@ -81,6 +81,13 @@ public class Chicken extends Animal {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.chickenBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected void registerGoals() {
|
||||||
|
this.goalSelector.addGoal(0, new FloatGoal(this));
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Cow.java b/net/minecraft/world/entity/animal/Cow.java
|
||||||
|
index d2a4bfa5334f7361067e4adac36ba5a4a4fa6ad8..e4965300eb41512d03a0b111422c98627cf29a54 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Cow.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Cow.java
|
||||||
|
@@ -63,6 +63,13 @@ public class Cow extends Animal {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.cowBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected void registerGoals() {
|
||||||
|
this.goalSelector.addGoal(0, new FloatGoal(this));
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Fox.java b/net/minecraft/world/entity/animal/Fox.java
|
||||||
|
index 8bf893837586ae2a9b4ef7564d242e16e4863b5d..1acf9b8c9e6a5915b3f095e83d3f209708947093 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Fox.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Fox.java
|
||||||
|
@@ -175,6 +175,13 @@ public class Fox extends Animal implements VariantHolder<Fox.Variant> {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.foxBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected void defineSynchedData(SynchedEntityData.Builder builder) {
|
||||||
|
super.defineSynchedData(builder);
|
||||||
|
@@ -969,8 +976,10 @@ public class Fox extends Animal implements VariantHolder<Fox.Variant> {
|
||||||
|
CriteriaTriggers.BRED_ANIMALS.trigger(serverPlayer, this.animal, this.partner, fox);
|
||||||
|
}
|
||||||
|
|
||||||
|
- this.animal.setAge(6000);
|
||||||
|
- this.partner.setAge(6000);
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ this.animal.setAge(this.animal.getPurpurBreedTime());
|
||||||
|
+ this.partner.setAge(this.partner.getPurpurBreedTime());
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
this.animal.resetLove();
|
||||||
|
this.partner.resetLove();
|
||||||
|
serverLevel.addFreshEntityWithPassengers(fox, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.BREEDING); // CraftBukkit - added SpawnReason
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/MushroomCow.java b/net/minecraft/world/entity/animal/MushroomCow.java
|
||||||
|
index 990723c31aa1040a4e45b9857a18d86287ef91b4..a64b609bf5ce38a252bfa1bcff869f88e14389b5 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/MushroomCow.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/MushroomCow.java
|
||||||
|
@@ -79,6 +79,13 @@ public class MushroomCow extends Cow implements Shearable, VariantHolder<Mushroo
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.mooshroomBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
public float getWalkTargetValue(BlockPos pos, LevelReader level) {
|
||||||
|
return level.getBlockState(pos.below()).is(Blocks.MYCELIUM) ? 10.0F : level.getPathfindingCostFromLightLevels(pos);
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Ocelot.java b/net/minecraft/world/entity/animal/Ocelot.java
|
||||||
|
index 1346556aa3a704930f1d278b65c6a2a904e41488..c76dff55f28f63be407c438f0c6ed634185d7b6b 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Ocelot.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Ocelot.java
|
||||||
|
@@ -87,6 +87,13 @@ public class Ocelot extends Animal {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.ocelotBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
public boolean isTrusting() {
|
||||||
|
return this.entityData.get(DATA_TRUSTING);
|
||||||
|
}
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Panda.java b/net/minecraft/world/entity/animal/Panda.java
|
||||||
|
index 5b07dff937c8873300eabecf1c510cf562fae4f3..450c7be36846bf4e95f84615fca893501415cdbc 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Panda.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Panda.java
|
||||||
|
@@ -140,6 +140,13 @@ public class Panda extends Animal {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.pandaBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected boolean canDispenserEquipIntoSlot(EquipmentSlot slot) {
|
||||||
|
return slot == EquipmentSlot.MAINHAND && this.canPickUpLoot();
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Parrot.java b/net/minecraft/world/entity/animal/Parrot.java
|
||||||
|
index 0d78ebe27928006f11e9b49380d6a759d273645d..1020e28a8c82b786a317098e2072d1a16f8964f0 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Parrot.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Parrot.java
|
||||||
|
@@ -194,6 +194,13 @@ public class Parrot extends ShoulderRidingEntity implements VariantHolder<Parrot
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return 6000;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public SpawnGroupData finalizeSpawn(
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Pig.java b/net/minecraft/world/entity/animal/Pig.java
|
||||||
|
index 7df848bd9c4cf98fbd431a8cae16a2df86ec5e2b..801365d71b5b733e2dce54211e08d26d7f45f4d9 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Pig.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Pig.java
|
||||||
|
@@ -81,6 +81,13 @@ public class Pig extends Animal implements ItemSteerable, Saddleable {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.pigBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected void registerGoals() {
|
||||||
|
this.goalSelector.addGoal(0, new FloatGoal(this));
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/PolarBear.java b/net/minecraft/world/entity/animal/PolarBear.java
|
||||||
|
index 913439a769a36521ba59d59cba4d6878d3186254..365ad366bd0077619b0f6b5d26ed41038da0397e 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/PolarBear.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/PolarBear.java
|
||||||
|
@@ -124,6 +124,13 @@ public class PolarBear extends Animal implements NeutralMob {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.polarBearBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Nullable
|
||||||
|
@Override
|
||||||
|
public AgeableMob getBreedOffspring(ServerLevel level, AgeableMob otherParent) {
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Rabbit.java b/net/minecraft/world/entity/animal/Rabbit.java
|
||||||
|
index e71161ecc9d4ee3fe29fa3a27d11d63e1a28d1a0..bbdd06002b07699fffebdf6ed8148abdb69c24cc 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Rabbit.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Rabbit.java
|
||||||
|
@@ -145,6 +145,13 @@ public class Rabbit extends Animal implements VariantHolder<Rabbit.Variant> {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.rabbitBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
public void registerGoals() {
|
||||||
|
this.goalSelector.addGoal(1, new FloatGoal(this));
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Sheep.java b/net/minecraft/world/entity/animal/Sheep.java
|
||||||
|
index b66440f5cfbd714c6d2f5b7f66b4e755602b4521..882c799cb66a2acada33ff24f3adb7eb611f89c1 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Sheep.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Sheep.java
|
||||||
|
@@ -106,6 +106,13 @@ public class Sheep extends Animal implements Shearable {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.sheepBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected void registerGoals() {
|
||||||
|
this.eatBlockGoal = new EatBlockGoal(this);
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Turtle.java b/net/minecraft/world/entity/animal/Turtle.java
|
||||||
|
index 4f0fbbb2caeda6d1477d3297fd68f802e4f3a9ca..edbccb7ca27aa8a1917eb8b35b3ba8600c91111a 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Turtle.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Turtle.java
|
||||||
|
@@ -109,6 +109,13 @@ public class Turtle extends Animal {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.turtleBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
public void setHomePos(BlockPos homePos) {
|
||||||
|
this.entityData.set(HOME_POS, homePos);
|
||||||
|
}
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/Wolf.java b/net/minecraft/world/entity/animal/Wolf.java
|
||||||
|
index 9768a336c260572022a140e95d0b0bf084dfc9e9..1bc9c1449ccc59d59ba40783958cfbaadbc2b9c1 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/Wolf.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/Wolf.java
|
||||||
|
@@ -145,6 +145,13 @@ public class Wolf extends TamableAnimal implements NeutralMob, VariantHolder<Hol
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.wolfBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected void registerGoals() {
|
||||||
|
this.goalSelector.addGoal(1, new FloatGoal(this));
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/armadillo/Armadillo.java b/net/minecraft/world/entity/animal/armadillo/Armadillo.java
|
||||||
|
index c10ebb66dec26b6ccc223e98effa0b9a68363626..90bcd8c79cccbcbe7ff3fd2534e0c3450b970bd4 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/armadillo/Armadillo.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/armadillo/Armadillo.java
|
||||||
|
@@ -105,6 +105,13 @@ public class Armadillo extends Animal {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.armadilloBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected void defineSynchedData(SynchedEntityData.Builder builder) {
|
||||||
|
super.defineSynchedData(builder);
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/axolotl/Axolotl.java b/net/minecraft/world/entity/animal/axolotl/Axolotl.java
|
||||||
|
index f2f09a529e9db88784ff4299fdf3966046c736ab..07eee1f82331a2172aede02219a7eae8e82c7b59 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/axolotl/Axolotl.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/axolotl/Axolotl.java
|
||||||
|
@@ -140,6 +140,13 @@ public class Axolotl extends Animal implements VariantHolder<Axolotl.Variant>, B
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.axolotlBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
public float getWalkTargetValue(BlockPos pos, LevelReader level) {
|
||||||
|
return 0.0F;
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/camel/Camel.java b/net/minecraft/world/entity/animal/camel/Camel.java
|
||||||
|
index 1d7e2358bac193af48dc4b7f5b0295e3bffa152b..1d7ae2a08968860636918e7c66b60139a9d761b4 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/camel/Camel.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/camel/Camel.java
|
||||||
|
@@ -90,6 +90,13 @@ public class Camel extends AbstractHorse {
|
||||||
|
}
|
||||||
|
// Purpur end - Ridables
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.camelBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
public void addAdditionalSaveData(CompoundTag compound) {
|
||||||
|
super.addAdditionalSaveData(compound);
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/frog/Frog.java b/net/minecraft/world/entity/animal/frog/Frog.java
|
||||||
|
index 9a400c8bf2b54aa5fbcbe65b61670cac5fbebf05..c4ea9485294b7dec2582c638802f003ad70659b6 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/frog/Frog.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/frog/Frog.java
|
||||||
|
@@ -165,6 +165,12 @@ public class Frog extends Animal implements VariantHolder<Holder<FrogVariant>> {
|
||||||
|
}
|
||||||
|
// Purpur end - Ridables
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.frogBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
@Override
|
||||||
|
protected Brain.Provider<Frog> brainProvider() {
|
||||||
|
return Brain.provider(MEMORY_TYPES, SENSOR_TYPES);
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/goat/Goat.java b/net/minecraft/world/entity/animal/goat/Goat.java
|
||||||
|
index 9924a39953fb49954d02c771ae1a51411226ceac..e7337eaa2813c30b92fd518f12ef4ba0c17ec6a3 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/goat/Goat.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/goat/Goat.java
|
||||||
|
@@ -128,6 +128,12 @@ public class Goat extends Animal {
|
||||||
|
}
|
||||||
|
// Purpur end - Ridables
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.goatBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
@Override
|
||||||
|
protected Brain.Provider<Goat> brainProvider() {
|
||||||
|
return Brain.provider(MEMORY_TYPES, SENSOR_TYPES);
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/horse/Donkey.java b/net/minecraft/world/entity/animal/horse/Donkey.java
|
||||||
|
index 223f1d109680e3643ab2c8343be22713e89755fd..b977597785df5665176ab2f330633ec61b7c9feb 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/horse/Donkey.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/horse/Donkey.java
|
||||||
|
@@ -40,6 +40,13 @@ public class Donkey extends AbstractChestedHorse {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.donkeyBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected SoundEvent getAmbientSound() {
|
||||||
|
return SoundEvents.DONKEY_AMBIENT;
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/horse/Horse.java b/net/minecraft/world/entity/animal/horse/Horse.java
|
||||||
|
index 8bd118e82da9e4d4153de0a3efaf6d69e3c4c540..0339ab08b3029a9ffc102c5b865e411aca2a863c 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/horse/Horse.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/horse/Horse.java
|
||||||
|
@@ -67,6 +67,13 @@ public class Horse extends AbstractHorse implements VariantHolder<Variant> {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.horseBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected void randomizeAttributes(RandomSource random) {
|
||||||
|
this.getAttribute(Attributes.MAX_HEALTH).setBaseValue(generateMaxHealth(random::nextInt));
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/horse/Llama.java b/net/minecraft/world/entity/animal/horse/Llama.java
|
||||||
|
index 8b6beeff7ad0c7ca7bc09f505891f560096d5c9a..67413d7c1cbef72a9068b33ea69125315aa35565 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/horse/Llama.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/horse/Llama.java
|
||||||
|
@@ -141,6 +141,13 @@ public class Llama extends AbstractChestedHorse implements VariantHolder<Llama.V
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.llamaBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
public boolean isTraderLlama() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/horse/Mule.java b/net/minecraft/world/entity/animal/horse/Mule.java
|
||||||
|
index d0d6b511dbd4f992d11f06e7539b0c1034250660..20458799fdcfa16bdd1c22df74b414000b110f82 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/horse/Mule.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/horse/Mule.java
|
||||||
|
@@ -39,6 +39,13 @@ public class Mule extends AbstractChestedHorse {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.muleBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected SoundEvent getAmbientSound() {
|
||||||
|
return SoundEvents.MULE_AMBIENT;
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/horse/SkeletonHorse.java b/net/minecraft/world/entity/animal/horse/SkeletonHorse.java
|
||||||
|
index 6cc64c7e2f50a311460cd5d7ffa9545e5d7e0b02..0ce71ab6a28a5fbff9d71793b855c116b31729fc 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/horse/SkeletonHorse.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/horse/SkeletonHorse.java
|
||||||
|
@@ -63,6 +63,13 @@ public class SkeletonHorse extends AbstractHorse {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return 6000;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
public static AttributeSupplier.Builder createAttributes() {
|
||||||
|
return createBaseHorseAttributes().add(Attributes.MAX_HEALTH, 15.0).add(Attributes.MOVEMENT_SPEED, 0.2F);
|
||||||
|
}
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/horse/TraderLlama.java b/net/minecraft/world/entity/animal/horse/TraderLlama.java
|
||||||
|
index 715cb8046e1fb9ac929d81709777bf4ae9323d46..870775ce8a1bd09d35bf85551e1af3a6edfefc0e 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/horse/TraderLlama.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/horse/TraderLlama.java
|
||||||
|
@@ -68,6 +68,13 @@ public class TraderLlama extends Llama {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.traderLlamaBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
public boolean isTraderLlama() {
|
||||||
|
return true;
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/horse/ZombieHorse.java b/net/minecraft/world/entity/animal/horse/ZombieHorse.java
|
||||||
|
index 8da61e14f2470dfb191d9dfaf19c713584b8e9b8..cdff0fab8a256c1e06e280500a31d4a99659d1ee 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/horse/ZombieHorse.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/horse/ZombieHorse.java
|
||||||
|
@@ -62,6 +62,13 @@ public class ZombieHorse extends AbstractHorse {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return 6000;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
public static AttributeSupplier.Builder createAttributes() {
|
||||||
|
return createBaseHorseAttributes().add(Attributes.MAX_HEALTH, 15.0).add(Attributes.MOVEMENT_SPEED, 0.2F);
|
||||||
|
}
|
||||||
|
diff --git a/net/minecraft/world/entity/animal/sniffer/Sniffer.java b/net/minecraft/world/entity/animal/sniffer/Sniffer.java
|
||||||
|
index a5ff61a3697e2299c96288b6f8d7c6f2511d86d5..11a5da22149a61ca48bbb0a8ed10b71e91a5cc98 100644
|
||||||
|
--- a/net/minecraft/world/entity/animal/sniffer/Sniffer.java
|
||||||
|
+++ b/net/minecraft/world/entity/animal/sniffer/Sniffer.java
|
||||||
|
@@ -113,6 +113,13 @@ public class Sniffer extends Animal {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.snifferBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
@Override
|
||||||
|
protected void defineSynchedData(SynchedEntityData.Builder builder) {
|
||||||
|
super.defineSynchedData(builder);
|
||||||
|
diff --git a/net/minecraft/world/entity/monster/Strider.java b/net/minecraft/world/entity/monster/Strider.java
|
||||||
|
index 30cfd9b98f84f2aaa80aab529574d993b6d65c96..10ce387c4bb0529624d78e0ae41423e15530793f 100644
|
||||||
|
--- a/net/minecraft/world/entity/monster/Strider.java
|
||||||
|
+++ b/net/minecraft/world/entity/monster/Strider.java
|
||||||
|
@@ -119,6 +119,13 @@ public class Strider extends Animal implements ItemSteerable, Saddleable {
|
||||||
|
}
|
||||||
|
// Purpur end - Configurable entity base attributes
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.striderBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
+
|
||||||
|
public static boolean checkStriderSpawnRules(
|
||||||
|
EntityType<Strider> entityType, LevelAccessor level, EntitySpawnReason spawnReason, BlockPos pos, RandomSource random
|
||||||
|
) {
|
||||||
|
diff --git a/net/minecraft/world/entity/monster/hoglin/Hoglin.java b/net/minecraft/world/entity/monster/hoglin/Hoglin.java
|
||||||
|
index 54924cd7c84cbcd22ffc0bd37fc24f24e73c18bc..b2edc0723a0d60801716cec31abf7403a06a903a 100644
|
||||||
|
--- a/net/minecraft/world/entity/monster/hoglin/Hoglin.java
|
||||||
|
+++ b/net/minecraft/world/entity/monster/hoglin/Hoglin.java
|
||||||
|
@@ -122,6 +122,12 @@ public class Hoglin extends Animal implements Enemy, HoglinBase {
|
||||||
|
this.timeInOverworld = timeInOverworld;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ // Purpur start - Make entity breeding times configurable
|
||||||
|
+ @Override
|
||||||
|
+ public int getPurpurBreedTime() {
|
||||||
|
+ return this.level().purpurConfig.hoglinBreedingTicks;
|
||||||
|
+ }
|
||||||
|
+ // Purpur end - Make entity breeding times configurable
|
||||||
|
@Override
|
||||||
|
public boolean canBeLeashed() {
|
||||||
|
return true;
|
||||||
@@ -454,23 +454,27 @@ public class PurpurWorldConfig {
|
|||||||
public boolean armadilloControllable = true;
|
public boolean armadilloControllable = true;
|
||||||
public double armadilloMaxHealth = 12.0D;
|
public double armadilloMaxHealth = 12.0D;
|
||||||
public double armadilloScale = 1.0D;
|
public double armadilloScale = 1.0D;
|
||||||
|
public int armadilloBreedingTicks = 6000;
|
||||||
private void armadilloSettings() {
|
private void armadilloSettings() {
|
||||||
armadilloRidable = getBoolean("mobs.armadillo.ridable", armadilloRidable);
|
armadilloRidable = getBoolean("mobs.armadillo.ridable", armadilloRidable);
|
||||||
armadilloRidableInWater = getBoolean("mobs.armadillo.ridable-in-water", armadilloRidableInWater);
|
armadilloRidableInWater = getBoolean("mobs.armadillo.ridable-in-water", armadilloRidableInWater);
|
||||||
armadilloControllable = getBoolean("mobs.armadillo.controllable", armadilloControllable);
|
armadilloControllable = getBoolean("mobs.armadillo.controllable", armadilloControllable);
|
||||||
armadilloMaxHealth = getDouble("mobs.armadillo.attributes.max_health", armadilloMaxHealth);
|
armadilloMaxHealth = getDouble("mobs.armadillo.attributes.max_health", armadilloMaxHealth);
|
||||||
armadilloScale = Mth.clamp(getDouble("mobs.armadillo.attributes.scale", armadilloScale), 0.0625D, 16.0D);
|
armadilloScale = Mth.clamp(getDouble("mobs.armadillo.attributes.scale", armadilloScale), 0.0625D, 16.0D);
|
||||||
|
armadilloBreedingTicks = getInt("mobs.armadillo.breeding-delay-ticks", armadilloBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean axolotlRidable = false;
|
public boolean axolotlRidable = false;
|
||||||
public boolean axolotlControllable = true;
|
public boolean axolotlControllable = true;
|
||||||
public double axolotlMaxHealth = 14.0D;
|
public double axolotlMaxHealth = 14.0D;
|
||||||
public double axolotlScale = 1.0D;
|
public double axolotlScale = 1.0D;
|
||||||
|
public int axolotlBreedingTicks = 6000;
|
||||||
private void axolotlSettings() {
|
private void axolotlSettings() {
|
||||||
axolotlRidable = getBoolean("mobs.axolotl.ridable", axolotlRidable);
|
axolotlRidable = getBoolean("mobs.axolotl.ridable", axolotlRidable);
|
||||||
axolotlControllable = getBoolean("mobs.axolotl.controllable", axolotlControllable);
|
axolotlControllable = getBoolean("mobs.axolotl.controllable", axolotlControllable);
|
||||||
axolotlMaxHealth = getDouble("mobs.axolotl.attributes.max_health", axolotlMaxHealth);
|
axolotlMaxHealth = getDouble("mobs.axolotl.attributes.max_health", axolotlMaxHealth);
|
||||||
axolotlScale = Mth.clamp(getDouble("mobs.axolotl.attributes.scale", axolotlScale), 0.0625D, 16.0D);
|
axolotlScale = Mth.clamp(getDouble("mobs.axolotl.attributes.scale", axolotlScale), 0.0625D, 16.0D);
|
||||||
|
axolotlBreedingTicks = getInt("mobs.axolotl.breeding-delay-ticks", axolotlBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean batRidable = false;
|
public boolean batRidable = false;
|
||||||
@@ -513,6 +517,7 @@ public class PurpurWorldConfig {
|
|||||||
public double beeMaxY = 320D;
|
public double beeMaxY = 320D;
|
||||||
public double beeMaxHealth = 10.0D;
|
public double beeMaxHealth = 10.0D;
|
||||||
public double beeScale = 1.0D;
|
public double beeScale = 1.0D;
|
||||||
|
public int beeBreedingTicks = 6000;
|
||||||
private void beeSettings() {
|
private void beeSettings() {
|
||||||
beeRidable = getBoolean("mobs.bee.ridable", beeRidable);
|
beeRidable = getBoolean("mobs.bee.ridable", beeRidable);
|
||||||
beeRidableInWater = getBoolean("mobs.bee.ridable-in-water", beeRidableInWater);
|
beeRidableInWater = getBoolean("mobs.bee.ridable-in-water", beeRidableInWater);
|
||||||
@@ -525,6 +530,7 @@ public class PurpurWorldConfig {
|
|||||||
}
|
}
|
||||||
beeMaxHealth = getDouble("mobs.bee.attributes.max_health", beeMaxHealth);
|
beeMaxHealth = getDouble("mobs.bee.attributes.max_health", beeMaxHealth);
|
||||||
beeScale = Mth.clamp(getDouble("mobs.bee.attributes.scale", beeScale), 0.0625D, 16.0D);
|
beeScale = Mth.clamp(getDouble("mobs.bee.attributes.scale", beeScale), 0.0625D, 16.0D);
|
||||||
|
beeBreedingTicks = getInt("mobs.bee.breeding-delay-ticks", beeBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean blazeRidable = false;
|
public boolean blazeRidable = false;
|
||||||
@@ -567,6 +573,7 @@ public class PurpurWorldConfig {
|
|||||||
public double camelJumpStrengthMax = 0.42D;
|
public double camelJumpStrengthMax = 0.42D;
|
||||||
public double camelMovementSpeedMin = 0.09D;
|
public double camelMovementSpeedMin = 0.09D;
|
||||||
public double camelMovementSpeedMax = 0.09D;
|
public double camelMovementSpeedMax = 0.09D;
|
||||||
|
public int camelBreedingTicks = 6000;
|
||||||
private void camelSettings() {
|
private void camelSettings() {
|
||||||
camelRidableInWater = getBoolean("mobs.camel.ridable-in-water", camelRidableInWater);
|
camelRidableInWater = getBoolean("mobs.camel.ridable-in-water", camelRidableInWater);
|
||||||
camelMaxHealthMin = getDouble("mobs.camel.attributes.max_health.min", camelMaxHealthMin);
|
camelMaxHealthMin = getDouble("mobs.camel.attributes.max_health.min", camelMaxHealthMin);
|
||||||
@@ -575,6 +582,7 @@ public class PurpurWorldConfig {
|
|||||||
camelJumpStrengthMax = getDouble("mobs.camel.attributes.jump_strength.max", camelJumpStrengthMax);
|
camelJumpStrengthMax = getDouble("mobs.camel.attributes.jump_strength.max", camelJumpStrengthMax);
|
||||||
camelMovementSpeedMin = getDouble("mobs.camel.attributes.movement_speed.min", camelMovementSpeedMin);
|
camelMovementSpeedMin = getDouble("mobs.camel.attributes.movement_speed.min", camelMovementSpeedMin);
|
||||||
camelMovementSpeedMax = getDouble("mobs.camel.attributes.movement_speed.max", camelMovementSpeedMax);
|
camelMovementSpeedMax = getDouble("mobs.camel.attributes.movement_speed.max", camelMovementSpeedMax);
|
||||||
|
camelBreedingTicks = getInt("mobs.camel.breeding-delay-ticks", camelBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean catRidable = false;
|
public boolean catRidable = false;
|
||||||
@@ -585,6 +593,7 @@ public class PurpurWorldConfig {
|
|||||||
public int catSpawnDelay = 1200;
|
public int catSpawnDelay = 1200;
|
||||||
public int catSpawnSwampHutScanRange = 16;
|
public int catSpawnSwampHutScanRange = 16;
|
||||||
public int catSpawnVillageScanRange = 48;
|
public int catSpawnVillageScanRange = 48;
|
||||||
|
public int catBreedingTicks = 6000;
|
||||||
private void catSettings() {
|
private void catSettings() {
|
||||||
catRidable = getBoolean("mobs.cat.ridable", catRidable);
|
catRidable = getBoolean("mobs.cat.ridable", catRidable);
|
||||||
catRidableInWater = getBoolean("mobs.cat.ridable-in-water", catRidableInWater);
|
catRidableInWater = getBoolean("mobs.cat.ridable-in-water", catRidableInWater);
|
||||||
@@ -599,6 +608,7 @@ public class PurpurWorldConfig {
|
|||||||
catSpawnDelay = getInt("mobs.cat.spawn-delay", catSpawnDelay);
|
catSpawnDelay = getInt("mobs.cat.spawn-delay", catSpawnDelay);
|
||||||
catSpawnSwampHutScanRange = getInt("mobs.cat.scan-range-for-other-cats.swamp-hut", catSpawnSwampHutScanRange);
|
catSpawnSwampHutScanRange = getInt("mobs.cat.scan-range-for-other-cats.swamp-hut", catSpawnSwampHutScanRange);
|
||||||
catSpawnVillageScanRange = getInt("mobs.cat.scan-range-for-other-cats.village", catSpawnVillageScanRange);
|
catSpawnVillageScanRange = getInt("mobs.cat.scan-range-for-other-cats.village", catSpawnVillageScanRange);
|
||||||
|
catBreedingTicks = getInt("mobs.cat.breeding-delay-ticks", catBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean caveSpiderRidable = false;
|
public boolean caveSpiderRidable = false;
|
||||||
@@ -625,6 +635,7 @@ public class PurpurWorldConfig {
|
|||||||
public double chickenMaxHealth = 4.0D;
|
public double chickenMaxHealth = 4.0D;
|
||||||
public double chickenScale = 1.0D;
|
public double chickenScale = 1.0D;
|
||||||
public boolean chickenRetaliate = false;
|
public boolean chickenRetaliate = false;
|
||||||
|
public int chickenBreedingTicks = 6000;
|
||||||
private void chickenSettings() {
|
private void chickenSettings() {
|
||||||
chickenRidable = getBoolean("mobs.chicken.ridable", chickenRidable);
|
chickenRidable = getBoolean("mobs.chicken.ridable", chickenRidable);
|
||||||
chickenRidableInWater = getBoolean("mobs.chicken.ridable-in-water", chickenRidableInWater);
|
chickenRidableInWater = getBoolean("mobs.chicken.ridable-in-water", chickenRidableInWater);
|
||||||
@@ -637,6 +648,7 @@ public class PurpurWorldConfig {
|
|||||||
chickenMaxHealth = getDouble("mobs.chicken.attributes.max_health", chickenMaxHealth);
|
chickenMaxHealth = getDouble("mobs.chicken.attributes.max_health", chickenMaxHealth);
|
||||||
chickenScale = Mth.clamp(getDouble("mobs.chicken.attributes.scale", chickenScale), 0.0625D, 16.0D);
|
chickenScale = Mth.clamp(getDouble("mobs.chicken.attributes.scale", chickenScale), 0.0625D, 16.0D);
|
||||||
chickenRetaliate = getBoolean("mobs.chicken.retaliate", chickenRetaliate);
|
chickenRetaliate = getBoolean("mobs.chicken.retaliate", chickenRetaliate);
|
||||||
|
chickenBreedingTicks = getInt("mobs.chicken.breeding-delay-ticks", chickenBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean codRidable = false;
|
public boolean codRidable = false;
|
||||||
@@ -661,6 +673,7 @@ public class PurpurWorldConfig {
|
|||||||
public double cowMaxHealth = 10.0D;
|
public double cowMaxHealth = 10.0D;
|
||||||
public double cowScale = 1.0D;
|
public double cowScale = 1.0D;
|
||||||
public int cowFeedMushrooms = 0;
|
public int cowFeedMushrooms = 0;
|
||||||
|
public int cowBreedingTicks = 6000;
|
||||||
private void cowSettings() {
|
private void cowSettings() {
|
||||||
cowRidable = getBoolean("mobs.cow.ridable", cowRidable);
|
cowRidable = getBoolean("mobs.cow.ridable", cowRidable);
|
||||||
cowRidableInWater = getBoolean("mobs.cow.ridable-in-water", cowRidableInWater);
|
cowRidableInWater = getBoolean("mobs.cow.ridable-in-water", cowRidableInWater);
|
||||||
@@ -673,6 +686,7 @@ public class PurpurWorldConfig {
|
|||||||
cowMaxHealth = getDouble("mobs.cow.attributes.max_health", cowMaxHealth);
|
cowMaxHealth = getDouble("mobs.cow.attributes.max_health", cowMaxHealth);
|
||||||
cowScale = Mth.clamp(getDouble("mobs.cow.attributes.scale", cowScale), 0.0625D, 16.0D);
|
cowScale = Mth.clamp(getDouble("mobs.cow.attributes.scale", cowScale), 0.0625D, 16.0D);
|
||||||
cowFeedMushrooms = getInt("mobs.cow.feed-mushrooms-for-mooshroom", cowFeedMushrooms);
|
cowFeedMushrooms = getInt("mobs.cow.feed-mushrooms-for-mooshroom", cowFeedMushrooms);
|
||||||
|
cowBreedingTicks = getInt("mobs.cow.breeding-delay-ticks", cowBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean creakingRidable = false;
|
public boolean creakingRidable = false;
|
||||||
@@ -741,6 +755,7 @@ public class PurpurWorldConfig {
|
|||||||
public double donkeyJumpStrengthMax = 0.5D;
|
public double donkeyJumpStrengthMax = 0.5D;
|
||||||
public double donkeyMovementSpeedMin = 0.175D;
|
public double donkeyMovementSpeedMin = 0.175D;
|
||||||
public double donkeyMovementSpeedMax = 0.175D;
|
public double donkeyMovementSpeedMax = 0.175D;
|
||||||
|
public int donkeyBreedingTicks = 6000;
|
||||||
private void donkeySettings() {
|
private void donkeySettings() {
|
||||||
donkeyRidableInWater = getBoolean("mobs.donkey.ridable-in-water", donkeyRidableInWater);
|
donkeyRidableInWater = getBoolean("mobs.donkey.ridable-in-water", donkeyRidableInWater);
|
||||||
if (PurpurConfig.version < 10) {
|
if (PurpurConfig.version < 10) {
|
||||||
@@ -756,6 +771,7 @@ public class PurpurWorldConfig {
|
|||||||
donkeyJumpStrengthMax = getDouble("mobs.donkey.attributes.jump_strength.max", donkeyJumpStrengthMax);
|
donkeyJumpStrengthMax = getDouble("mobs.donkey.attributes.jump_strength.max", donkeyJumpStrengthMax);
|
||||||
donkeyMovementSpeedMin = getDouble("mobs.donkey.attributes.movement_speed.min", donkeyMovementSpeedMin);
|
donkeyMovementSpeedMin = getDouble("mobs.donkey.attributes.movement_speed.min", donkeyMovementSpeedMin);
|
||||||
donkeyMovementSpeedMax = getDouble("mobs.donkey.attributes.movement_speed.max", donkeyMovementSpeedMax);
|
donkeyMovementSpeedMax = getDouble("mobs.donkey.attributes.movement_speed.max", donkeyMovementSpeedMax);
|
||||||
|
donkeyBreedingTicks = getInt("mobs.donkey.breeding-delay-ticks", donkeyBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean drownedRidable = false;
|
public boolean drownedRidable = false;
|
||||||
@@ -886,6 +902,7 @@ public class PurpurWorldConfig {
|
|||||||
public double foxMaxHealth = 10.0D;
|
public double foxMaxHealth = 10.0D;
|
||||||
public double foxScale = 1.0D;
|
public double foxScale = 1.0D;
|
||||||
public boolean foxTypeChangesWithTulips = false;
|
public boolean foxTypeChangesWithTulips = false;
|
||||||
|
public int foxBreedingTicks = 6000;
|
||||||
private void foxSettings() {
|
private void foxSettings() {
|
||||||
foxRidable = getBoolean("mobs.fox.ridable", foxRidable);
|
foxRidable = getBoolean("mobs.fox.ridable", foxRidable);
|
||||||
foxRidableInWater = getBoolean("mobs.fox.ridable-in-water", foxRidableInWater);
|
foxRidableInWater = getBoolean("mobs.fox.ridable-in-water", foxRidableInWater);
|
||||||
@@ -898,17 +915,20 @@ public class PurpurWorldConfig {
|
|||||||
foxMaxHealth = getDouble("mobs.fox.attributes.max_health", foxMaxHealth);
|
foxMaxHealth = getDouble("mobs.fox.attributes.max_health", foxMaxHealth);
|
||||||
foxScale = Mth.clamp(getDouble("mobs.fox.attributes.scale", foxScale), 0.0625D, 16.0D);
|
foxScale = Mth.clamp(getDouble("mobs.fox.attributes.scale", foxScale), 0.0625D, 16.0D);
|
||||||
foxTypeChangesWithTulips = getBoolean("mobs.fox.tulips-change-type", foxTypeChangesWithTulips);
|
foxTypeChangesWithTulips = getBoolean("mobs.fox.tulips-change-type", foxTypeChangesWithTulips);
|
||||||
|
foxBreedingTicks = getInt("mobs.fox.breeding-delay-ticks", foxBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean frogRidable = false;
|
public boolean frogRidable = false;
|
||||||
public boolean frogRidableInWater = true;
|
public boolean frogRidableInWater = true;
|
||||||
public boolean frogControllable = true;
|
public boolean frogControllable = true;
|
||||||
public float frogRidableJumpHeight = 0.65F;
|
public float frogRidableJumpHeight = 0.65F;
|
||||||
|
public int frogBreedingTicks = 6000;
|
||||||
private void frogSettings() {
|
private void frogSettings() {
|
||||||
frogRidable = getBoolean("mobs.frog.ridable", frogRidable);
|
frogRidable = getBoolean("mobs.frog.ridable", frogRidable);
|
||||||
frogRidableInWater = getBoolean("mobs.frog.ridable-in-water", frogRidableInWater);
|
frogRidableInWater = getBoolean("mobs.frog.ridable-in-water", frogRidableInWater);
|
||||||
frogControllable = getBoolean("mobs.frog.controllable", frogControllable);
|
frogControllable = getBoolean("mobs.frog.controllable", frogControllable);
|
||||||
frogRidableJumpHeight = (float) getDouble("mobs.frog.ridable-jump-height", frogRidableJumpHeight);
|
frogRidableJumpHeight = (float) getDouble("mobs.frog.ridable-jump-height", frogRidableJumpHeight);
|
||||||
|
frogBreedingTicks = getInt("mobs.frog.breeding-delay-ticks", frogBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean ghastRidable = false;
|
public boolean ghastRidable = false;
|
||||||
@@ -983,12 +1003,14 @@ public class PurpurWorldConfig {
|
|||||||
public boolean goatControllable = true;
|
public boolean goatControllable = true;
|
||||||
public double goatMaxHealth = 10.0D;
|
public double goatMaxHealth = 10.0D;
|
||||||
public double goatScale = 1.0D;
|
public double goatScale = 1.0D;
|
||||||
|
public int goatBreedingTicks = 6000;
|
||||||
private void goatSettings() {
|
private void goatSettings() {
|
||||||
goatRidable = getBoolean("mobs.goat.ridable", goatRidable);
|
goatRidable = getBoolean("mobs.goat.ridable", goatRidable);
|
||||||
goatRidableInWater = getBoolean("mobs.goat.ridable-in-water", goatRidableInWater);
|
goatRidableInWater = getBoolean("mobs.goat.ridable-in-water", goatRidableInWater);
|
||||||
goatControllable = getBoolean("mobs.goat.controllable", goatControllable);
|
goatControllable = getBoolean("mobs.goat.controllable", goatControllable);
|
||||||
goatMaxHealth = getDouble("mobs.goat.attributes.max_health", goatMaxHealth);
|
goatMaxHealth = getDouble("mobs.goat.attributes.max_health", goatMaxHealth);
|
||||||
goatScale = Mth.clamp(getDouble("mobs.goat.attributes.scale", goatScale), 0.0625D, 16.0D);
|
goatScale = Mth.clamp(getDouble("mobs.goat.attributes.scale", goatScale), 0.0625D, 16.0D);
|
||||||
|
goatBreedingTicks = getInt("mobs.goat.breeding-delay-ticks", goatBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean guardianRidable = false;
|
public boolean guardianRidable = false;
|
||||||
@@ -1012,6 +1034,7 @@ public class PurpurWorldConfig {
|
|||||||
public boolean hoglinControllable = true;
|
public boolean hoglinControllable = true;
|
||||||
public double hoglinMaxHealth = 40.0D;
|
public double hoglinMaxHealth = 40.0D;
|
||||||
public double hoglinScale = 1.0D;
|
public double hoglinScale = 1.0D;
|
||||||
|
public int hoglinBreedingTicks = 6000;
|
||||||
private void hoglinSettings() {
|
private void hoglinSettings() {
|
||||||
hoglinRidable = getBoolean("mobs.hoglin.ridable", hoglinRidable);
|
hoglinRidable = getBoolean("mobs.hoglin.ridable", hoglinRidable);
|
||||||
hoglinRidableInWater = getBoolean("mobs.hoglin.ridable-in-water", hoglinRidableInWater);
|
hoglinRidableInWater = getBoolean("mobs.hoglin.ridable-in-water", hoglinRidableInWater);
|
||||||
@@ -1023,6 +1046,7 @@ public class PurpurWorldConfig {
|
|||||||
}
|
}
|
||||||
hoglinMaxHealth = getDouble("mobs.hoglin.attributes.max_health", hoglinMaxHealth);
|
hoglinMaxHealth = getDouble("mobs.hoglin.attributes.max_health", hoglinMaxHealth);
|
||||||
hoglinScale = Mth.clamp(getDouble("mobs.hoglin.attributes.scale", hoglinScale), 0.0625D, 16.0D);
|
hoglinScale = Mth.clamp(getDouble("mobs.hoglin.attributes.scale", hoglinScale), 0.0625D, 16.0D);
|
||||||
|
hoglinBreedingTicks = getInt("mobs.hoglin.breeding-delay-ticks", hoglinBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean horseRidableInWater = false;
|
public boolean horseRidableInWater = false;
|
||||||
@@ -1032,6 +1056,7 @@ public class PurpurWorldConfig {
|
|||||||
public double horseJumpStrengthMax = 1.0D;
|
public double horseJumpStrengthMax = 1.0D;
|
||||||
public double horseMovementSpeedMin = 0.1125D;
|
public double horseMovementSpeedMin = 0.1125D;
|
||||||
public double horseMovementSpeedMax = 0.3375D;
|
public double horseMovementSpeedMax = 0.3375D;
|
||||||
|
public int horseBreedingTicks = 6000;
|
||||||
private void horseSettings() {
|
private void horseSettings() {
|
||||||
horseRidableInWater = getBoolean("mobs.horse.ridable-in-water", horseRidableInWater);
|
horseRidableInWater = getBoolean("mobs.horse.ridable-in-water", horseRidableInWater);
|
||||||
if (PurpurConfig.version < 10) {
|
if (PurpurConfig.version < 10) {
|
||||||
@@ -1047,6 +1072,7 @@ public class PurpurWorldConfig {
|
|||||||
horseJumpStrengthMax = getDouble("mobs.horse.attributes.jump_strength.max", horseJumpStrengthMax);
|
horseJumpStrengthMax = getDouble("mobs.horse.attributes.jump_strength.max", horseJumpStrengthMax);
|
||||||
horseMovementSpeedMin = getDouble("mobs.horse.attributes.movement_speed.min", horseMovementSpeedMin);
|
horseMovementSpeedMin = getDouble("mobs.horse.attributes.movement_speed.min", horseMovementSpeedMin);
|
||||||
horseMovementSpeedMax = getDouble("mobs.horse.attributes.movement_speed.max", horseMovementSpeedMax);
|
horseMovementSpeedMax = getDouble("mobs.horse.attributes.movement_speed.max", horseMovementSpeedMax);
|
||||||
|
horseBreedingTicks = getInt("mobs.horse.breeding-delay-ticks", horseBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean huskRidable = false;
|
public boolean huskRidable = false;
|
||||||
@@ -1130,6 +1156,7 @@ public class PurpurWorldConfig {
|
|||||||
public double llamaJumpStrengthMax = 0.5D;
|
public double llamaJumpStrengthMax = 0.5D;
|
||||||
public double llamaMovementSpeedMin = 0.175D;
|
public double llamaMovementSpeedMin = 0.175D;
|
||||||
public double llamaMovementSpeedMax = 0.175D;
|
public double llamaMovementSpeedMax = 0.175D;
|
||||||
|
public int llamaBreedingTicks = 6000;
|
||||||
private void llamaSettings() {
|
private void llamaSettings() {
|
||||||
llamaRidable = getBoolean("mobs.llama.ridable", llamaRidable);
|
llamaRidable = getBoolean("mobs.llama.ridable", llamaRidable);
|
||||||
llamaRidableInWater = getBoolean("mobs.llama.ridable-in-water", llamaRidableInWater);
|
llamaRidableInWater = getBoolean("mobs.llama.ridable-in-water", llamaRidableInWater);
|
||||||
@@ -1147,6 +1174,7 @@ public class PurpurWorldConfig {
|
|||||||
llamaJumpStrengthMax = getDouble("mobs.llama.attributes.jump_strength.max", llamaJumpStrengthMax);
|
llamaJumpStrengthMax = getDouble("mobs.llama.attributes.jump_strength.max", llamaJumpStrengthMax);
|
||||||
llamaMovementSpeedMin = getDouble("mobs.llama.attributes.movement_speed.min", llamaMovementSpeedMin);
|
llamaMovementSpeedMin = getDouble("mobs.llama.attributes.movement_speed.min", llamaMovementSpeedMin);
|
||||||
llamaMovementSpeedMax = getDouble("mobs.llama.attributes.movement_speed.max", llamaMovementSpeedMax);
|
llamaMovementSpeedMax = getDouble("mobs.llama.attributes.movement_speed.max", llamaMovementSpeedMax);
|
||||||
|
llamaBreedingTicks = getInt("mobs.llama.breeding-delay-ticks", llamaBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean magmaCubeRidable = false;
|
public boolean magmaCubeRidable = false;
|
||||||
@@ -1176,6 +1204,7 @@ public class PurpurWorldConfig {
|
|||||||
public boolean mooshroomControllable = true;
|
public boolean mooshroomControllable = true;
|
||||||
public double mooshroomMaxHealth = 10.0D;
|
public double mooshroomMaxHealth = 10.0D;
|
||||||
public double mooshroomScale = 1.0D;
|
public double mooshroomScale = 1.0D;
|
||||||
|
public int mooshroomBreedingTicks = 6000;
|
||||||
private void mooshroomSettings() {
|
private void mooshroomSettings() {
|
||||||
mooshroomRidable = getBoolean("mobs.mooshroom.ridable", mooshroomRidable);
|
mooshroomRidable = getBoolean("mobs.mooshroom.ridable", mooshroomRidable);
|
||||||
mooshroomRidableInWater = getBoolean("mobs.mooshroom.ridable-in-water", mooshroomRidableInWater);
|
mooshroomRidableInWater = getBoolean("mobs.mooshroom.ridable-in-water", mooshroomRidableInWater);
|
||||||
@@ -1187,6 +1216,7 @@ public class PurpurWorldConfig {
|
|||||||
}
|
}
|
||||||
mooshroomMaxHealth = getDouble("mobs.mooshroom.attributes.max_health", mooshroomMaxHealth);
|
mooshroomMaxHealth = getDouble("mobs.mooshroom.attributes.max_health", mooshroomMaxHealth);
|
||||||
mooshroomScale = Mth.clamp(getDouble("mobs.mooshroom.attributes.scale", mooshroomScale), 0.0625D, 16.0D);
|
mooshroomScale = Mth.clamp(getDouble("mobs.mooshroom.attributes.scale", mooshroomScale), 0.0625D, 16.0D);
|
||||||
|
mooshroomBreedingTicks = getInt("mobs.mooshroom.breeding-delay-ticks", mooshroomBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean muleRidableInWater = false;
|
public boolean muleRidableInWater = false;
|
||||||
@@ -1196,6 +1226,7 @@ public class PurpurWorldConfig {
|
|||||||
public double muleJumpStrengthMax = 0.5D;
|
public double muleJumpStrengthMax = 0.5D;
|
||||||
public double muleMovementSpeedMin = 0.175D;
|
public double muleMovementSpeedMin = 0.175D;
|
||||||
public double muleMovementSpeedMax = 0.175D;
|
public double muleMovementSpeedMax = 0.175D;
|
||||||
|
public int muleBreedingTicks = 6000;
|
||||||
private void muleSettings() {
|
private void muleSettings() {
|
||||||
muleRidableInWater = getBoolean("mobs.mule.ridable-in-water", muleRidableInWater);
|
muleRidableInWater = getBoolean("mobs.mule.ridable-in-water", muleRidableInWater);
|
||||||
if (PurpurConfig.version < 10) {
|
if (PurpurConfig.version < 10) {
|
||||||
@@ -1211,6 +1242,7 @@ public class PurpurWorldConfig {
|
|||||||
muleJumpStrengthMax = getDouble("mobs.mule.attributes.jump_strength.max", muleJumpStrengthMax);
|
muleJumpStrengthMax = getDouble("mobs.mule.attributes.jump_strength.max", muleJumpStrengthMax);
|
||||||
muleMovementSpeedMin = getDouble("mobs.mule.attributes.movement_speed.min", muleMovementSpeedMin);
|
muleMovementSpeedMin = getDouble("mobs.mule.attributes.movement_speed.min", muleMovementSpeedMin);
|
||||||
muleMovementSpeedMax = getDouble("mobs.mule.attributes.movement_speed.max", muleMovementSpeedMax);
|
muleMovementSpeedMax = getDouble("mobs.mule.attributes.movement_speed.max", muleMovementSpeedMax);
|
||||||
|
muleBreedingTicks = getInt("mobs.mule.breeding-delay-ticks", muleBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean ocelotRidable = false;
|
public boolean ocelotRidable = false;
|
||||||
@@ -1218,6 +1250,7 @@ public class PurpurWorldConfig {
|
|||||||
public boolean ocelotControllable = true;
|
public boolean ocelotControllable = true;
|
||||||
public double ocelotMaxHealth = 10.0D;
|
public double ocelotMaxHealth = 10.0D;
|
||||||
public double ocelotScale = 1.0D;
|
public double ocelotScale = 1.0D;
|
||||||
|
public int ocelotBreedingTicks = 6000;
|
||||||
private void ocelotSettings() {
|
private void ocelotSettings() {
|
||||||
ocelotRidable = getBoolean("mobs.ocelot.ridable", ocelotRidable);
|
ocelotRidable = getBoolean("mobs.ocelot.ridable", ocelotRidable);
|
||||||
ocelotRidableInWater = getBoolean("mobs.ocelot.ridable-in-water", ocelotRidableInWater);
|
ocelotRidableInWater = getBoolean("mobs.ocelot.ridable-in-water", ocelotRidableInWater);
|
||||||
@@ -1229,6 +1262,7 @@ public class PurpurWorldConfig {
|
|||||||
}
|
}
|
||||||
ocelotMaxHealth = getDouble("mobs.ocelot.attributes.max_health", ocelotMaxHealth);
|
ocelotMaxHealth = getDouble("mobs.ocelot.attributes.max_health", ocelotMaxHealth);
|
||||||
ocelotScale = Mth.clamp(getDouble("mobs.ocelot.attributes.scale", ocelotScale), 0.0625D, 16.0D);
|
ocelotScale = Mth.clamp(getDouble("mobs.ocelot.attributes.scale", ocelotScale), 0.0625D, 16.0D);
|
||||||
|
ocelotBreedingTicks = getInt("mobs.ocelot.breeding-delay-ticks", ocelotBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean pandaRidable = false;
|
public boolean pandaRidable = false;
|
||||||
@@ -1236,6 +1270,7 @@ public class PurpurWorldConfig {
|
|||||||
public boolean pandaControllable = true;
|
public boolean pandaControllable = true;
|
||||||
public double pandaMaxHealth = 20.0D;
|
public double pandaMaxHealth = 20.0D;
|
||||||
public double pandaScale = 1.0D;
|
public double pandaScale = 1.0D;
|
||||||
|
public int pandaBreedingTicks = 6000;
|
||||||
private void pandaSettings() {
|
private void pandaSettings() {
|
||||||
pandaRidable = getBoolean("mobs.panda.ridable", pandaRidable);
|
pandaRidable = getBoolean("mobs.panda.ridable", pandaRidable);
|
||||||
pandaRidableInWater = getBoolean("mobs.panda.ridable-in-water", pandaRidableInWater);
|
pandaRidableInWater = getBoolean("mobs.panda.ridable-in-water", pandaRidableInWater);
|
||||||
@@ -1247,6 +1282,7 @@ public class PurpurWorldConfig {
|
|||||||
}
|
}
|
||||||
pandaMaxHealth = getDouble("mobs.panda.attributes.max_health", pandaMaxHealth);
|
pandaMaxHealth = getDouble("mobs.panda.attributes.max_health", pandaMaxHealth);
|
||||||
pandaScale = Mth.clamp(getDouble("mobs.panda.attributes.scale", pandaScale), 0.0625D, 16.0D);
|
pandaScale = Mth.clamp(getDouble("mobs.panda.attributes.scale", pandaScale), 0.0625D, 16.0D);
|
||||||
|
pandaBreedingTicks = getInt("mobs.panda.breeding-delay-ticks", pandaBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean parrotRidable = false;
|
public boolean parrotRidable = false;
|
||||||
@@ -1333,6 +1369,7 @@ public class PurpurWorldConfig {
|
|||||||
public double pigMaxHealth = 10.0D;
|
public double pigMaxHealth = 10.0D;
|
||||||
public double pigScale = 1.0D;
|
public double pigScale = 1.0D;
|
||||||
public boolean pigGiveSaddleBack = false;
|
public boolean pigGiveSaddleBack = false;
|
||||||
|
public int pigBreedingTicks = 6000;
|
||||||
private void pigSettings() {
|
private void pigSettings() {
|
||||||
pigRidable = getBoolean("mobs.pig.ridable", pigRidable);
|
pigRidable = getBoolean("mobs.pig.ridable", pigRidable);
|
||||||
pigRidableInWater = getBoolean("mobs.pig.ridable-in-water", pigRidableInWater);
|
pigRidableInWater = getBoolean("mobs.pig.ridable-in-water", pigRidableInWater);
|
||||||
@@ -1345,6 +1382,7 @@ public class PurpurWorldConfig {
|
|||||||
pigMaxHealth = getDouble("mobs.pig.attributes.max_health", pigMaxHealth);
|
pigMaxHealth = getDouble("mobs.pig.attributes.max_health", pigMaxHealth);
|
||||||
pigScale = Mth.clamp(getDouble("mobs.pig.attributes.scale", pigScale), 0.0625D, 16.0D);
|
pigScale = Mth.clamp(getDouble("mobs.pig.attributes.scale", pigScale), 0.0625D, 16.0D);
|
||||||
pigGiveSaddleBack = getBoolean("mobs.pig.give-saddle-back", pigGiveSaddleBack);
|
pigGiveSaddleBack = getBoolean("mobs.pig.give-saddle-back", pigGiveSaddleBack);
|
||||||
|
pigBreedingTicks = getInt("mobs.pig.breeding-delay-ticks", pigBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean piglinRidable = false;
|
public boolean piglinRidable = false;
|
||||||
@@ -1408,6 +1446,7 @@ public class PurpurWorldConfig {
|
|||||||
public double polarBearScale = 1.0D;
|
public double polarBearScale = 1.0D;
|
||||||
public String polarBearBreedableItemString = "";
|
public String polarBearBreedableItemString = "";
|
||||||
public Item polarBearBreedableItem = null;
|
public Item polarBearBreedableItem = null;
|
||||||
|
public int polarBearBreedingTicks = 6000;
|
||||||
private void polarBearSettings() {
|
private void polarBearSettings() {
|
||||||
polarBearRidable = getBoolean("mobs.polar_bear.ridable", polarBearRidable);
|
polarBearRidable = getBoolean("mobs.polar_bear.ridable", polarBearRidable);
|
||||||
polarBearRidableInWater = getBoolean("mobs.polar_bear.ridable-in-water", polarBearRidableInWater);
|
polarBearRidableInWater = getBoolean("mobs.polar_bear.ridable-in-water", polarBearRidableInWater);
|
||||||
@@ -1422,6 +1461,7 @@ public class PurpurWorldConfig {
|
|||||||
polarBearBreedableItemString = getString("mobs.polar_bear.breedable-item", polarBearBreedableItemString);
|
polarBearBreedableItemString = getString("mobs.polar_bear.breedable-item", polarBearBreedableItemString);
|
||||||
Item item = BuiltInRegistries.ITEM.getValue(ResourceLocation.parse(polarBearBreedableItemString));
|
Item item = BuiltInRegistries.ITEM.getValue(ResourceLocation.parse(polarBearBreedableItemString));
|
||||||
if (item != Items.AIR) polarBearBreedableItem = item;
|
if (item != Items.AIR) polarBearBreedableItem = item;
|
||||||
|
polarBearBreedingTicks = getInt("mobs.polar_bear.breeding-delay-ticks", polarBearBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean pufferfishRidable = false;
|
public boolean pufferfishRidable = false;
|
||||||
@@ -1447,6 +1487,7 @@ public class PurpurWorldConfig {
|
|||||||
public double rabbitScale = 1.0D;
|
public double rabbitScale = 1.0D;
|
||||||
public double rabbitNaturalToast = 0.0D;
|
public double rabbitNaturalToast = 0.0D;
|
||||||
public double rabbitNaturalKiller = 0.0D;
|
public double rabbitNaturalKiller = 0.0D;
|
||||||
|
public int rabbitBreedingTicks = 6000;
|
||||||
private void rabbitSettings() {
|
private void rabbitSettings() {
|
||||||
rabbitRidable = getBoolean("mobs.rabbit.ridable", rabbitRidable);
|
rabbitRidable = getBoolean("mobs.rabbit.ridable", rabbitRidable);
|
||||||
rabbitRidableInWater = getBoolean("mobs.rabbit.ridable-in-water", rabbitRidableInWater);
|
rabbitRidableInWater = getBoolean("mobs.rabbit.ridable-in-water", rabbitRidableInWater);
|
||||||
@@ -1460,6 +1501,7 @@ public class PurpurWorldConfig {
|
|||||||
rabbitScale = Mth.clamp(getDouble("mobs.rabbit.attributes.scale", rabbitScale), 0.0625D, 16.0D);
|
rabbitScale = Mth.clamp(getDouble("mobs.rabbit.attributes.scale", rabbitScale), 0.0625D, 16.0D);
|
||||||
rabbitNaturalToast = getDouble("mobs.rabbit.spawn-toast-chance", rabbitNaturalToast);
|
rabbitNaturalToast = getDouble("mobs.rabbit.spawn-toast-chance", rabbitNaturalToast);
|
||||||
rabbitNaturalKiller = getDouble("mobs.rabbit.spawn-killer-rabbit-chance", rabbitNaturalKiller);
|
rabbitNaturalKiller = getDouble("mobs.rabbit.spawn-killer-rabbit-chance", rabbitNaturalKiller);
|
||||||
|
rabbitBreedingTicks = getInt("mobs.rabbit.breeding-delay-ticks", rabbitBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean ravagerRidable = false;
|
public boolean ravagerRidable = false;
|
||||||
@@ -1501,6 +1543,7 @@ public class PurpurWorldConfig {
|
|||||||
public boolean sheepControllable = true;
|
public boolean sheepControllable = true;
|
||||||
public double sheepMaxHealth = 8.0D;
|
public double sheepMaxHealth = 8.0D;
|
||||||
public double sheepScale = 1.0D;
|
public double sheepScale = 1.0D;
|
||||||
|
public int sheepBreedingTicks = 6000;
|
||||||
private void sheepSettings() {
|
private void sheepSettings() {
|
||||||
sheepRidable = getBoolean("mobs.sheep.ridable", sheepRidable);
|
sheepRidable = getBoolean("mobs.sheep.ridable", sheepRidable);
|
||||||
sheepRidableInWater = getBoolean("mobs.sheep.ridable-in-water", sheepRidableInWater);
|
sheepRidableInWater = getBoolean("mobs.sheep.ridable-in-water", sheepRidableInWater);
|
||||||
@@ -1512,6 +1555,7 @@ public class PurpurWorldConfig {
|
|||||||
}
|
}
|
||||||
sheepMaxHealth = getDouble("mobs.sheep.attributes.max_health", sheepMaxHealth);
|
sheepMaxHealth = getDouble("mobs.sheep.attributes.max_health", sheepMaxHealth);
|
||||||
sheepScale = Mth.clamp(getDouble("mobs.sheep.attributes.scale", sheepScale), 0.0625D, 16.0D);
|
sheepScale = Mth.clamp(getDouble("mobs.sheep.attributes.scale", sheepScale), 0.0625D, 16.0D);
|
||||||
|
sheepBreedingTicks = getInt("mobs.sheep.breeding-delay-ticks", sheepBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean shulkerRidable = false;
|
public boolean shulkerRidable = false;
|
||||||
@@ -1648,12 +1692,14 @@ public class PurpurWorldConfig {
|
|||||||
public boolean snifferControllable = true;
|
public boolean snifferControllable = true;
|
||||||
public double snifferMaxHealth = 14.0D;
|
public double snifferMaxHealth = 14.0D;
|
||||||
public double snifferScale = 1.0D;
|
public double snifferScale = 1.0D;
|
||||||
|
public int snifferBreedingTicks = 6000;
|
||||||
private void snifferSettings() {
|
private void snifferSettings() {
|
||||||
snifferRidable = getBoolean("mobs.sniffer.ridable", snifferRidable);
|
snifferRidable = getBoolean("mobs.sniffer.ridable", snifferRidable);
|
||||||
snifferRidableInWater = getBoolean("mobs.sniffer.ridable-in-water", snifferRidableInWater);
|
snifferRidableInWater = getBoolean("mobs.sniffer.ridable-in-water", snifferRidableInWater);
|
||||||
snifferControllable = getBoolean("mobs.sniffer.controllable", snifferControllable);
|
snifferControllable = getBoolean("mobs.sniffer.controllable", snifferControllable);
|
||||||
snifferMaxHealth = getDouble("mobs.sniffer.attributes.max_health", snifferMaxHealth);
|
snifferMaxHealth = getDouble("mobs.sniffer.attributes.max_health", snifferMaxHealth);
|
||||||
snifferScale = Mth.clamp(getDouble("mobs.sniffer.attributes.scale", snifferScale), 0.0625D, 16.0D);
|
snifferScale = Mth.clamp(getDouble("mobs.sniffer.attributes.scale", snifferScale), 0.0625D, 16.0D);
|
||||||
|
snifferBreedingTicks = getInt("mobs.sniffer.breeding-delay-ticks", snifferBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean squidRidable = false;
|
public boolean squidRidable = false;
|
||||||
@@ -1719,6 +1765,7 @@ public class PurpurWorldConfig {
|
|||||||
public boolean striderControllable = true;
|
public boolean striderControllable = true;
|
||||||
public double striderMaxHealth = 20.0D;
|
public double striderMaxHealth = 20.0D;
|
||||||
public double striderScale = 1.0D;
|
public double striderScale = 1.0D;
|
||||||
|
public int striderBreedingTicks = 6000;
|
||||||
private void striderSettings() {
|
private void striderSettings() {
|
||||||
striderRidable = getBoolean("mobs.strider.ridable", striderRidable);
|
striderRidable = getBoolean("mobs.strider.ridable", striderRidable);
|
||||||
striderRidableInWater = getBoolean("mobs.strider.ridable-in-water", striderRidableInWater);
|
striderRidableInWater = getBoolean("mobs.strider.ridable-in-water", striderRidableInWater);
|
||||||
@@ -1730,6 +1777,7 @@ public class PurpurWorldConfig {
|
|||||||
}
|
}
|
||||||
striderMaxHealth = getDouble("mobs.strider.attributes.max_health", striderMaxHealth);
|
striderMaxHealth = getDouble("mobs.strider.attributes.max_health", striderMaxHealth);
|
||||||
striderScale = Mth.clamp(getDouble("mobs.strider.attributes.scale", striderScale), 0.0625D, 16.0D);
|
striderScale = Mth.clamp(getDouble("mobs.strider.attributes.scale", striderScale), 0.0625D, 16.0D);
|
||||||
|
striderBreedingTicks = getInt("mobs.strider.breeding-delay-ticks", striderBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean tadpoleRidable = false;
|
public boolean tadpoleRidable = false;
|
||||||
@@ -1750,6 +1798,7 @@ public class PurpurWorldConfig {
|
|||||||
public double traderLlamaJumpStrengthMax = 0.5D;
|
public double traderLlamaJumpStrengthMax = 0.5D;
|
||||||
public double traderLlamaMovementSpeedMin = 0.175D;
|
public double traderLlamaMovementSpeedMin = 0.175D;
|
||||||
public double traderLlamaMovementSpeedMax = 0.175D;
|
public double traderLlamaMovementSpeedMax = 0.175D;
|
||||||
|
public int traderLlamaBreedingTicks = 6000;
|
||||||
private void traderLlamaSettings() {
|
private void traderLlamaSettings() {
|
||||||
traderLlamaRidable = getBoolean("mobs.trader_llama.ridable", traderLlamaRidable);
|
traderLlamaRidable = getBoolean("mobs.trader_llama.ridable", traderLlamaRidable);
|
||||||
traderLlamaRidableInWater = getBoolean("mobs.trader_llama.ridable-in-water", traderLlamaRidableInWater);
|
traderLlamaRidableInWater = getBoolean("mobs.trader_llama.ridable-in-water", traderLlamaRidableInWater);
|
||||||
@@ -1767,6 +1816,7 @@ public class PurpurWorldConfig {
|
|||||||
traderLlamaJumpStrengthMax = getDouble("mobs.trader_llama.attributes.jump_strength.max", traderLlamaJumpStrengthMax);
|
traderLlamaJumpStrengthMax = getDouble("mobs.trader_llama.attributes.jump_strength.max", traderLlamaJumpStrengthMax);
|
||||||
traderLlamaMovementSpeedMin = getDouble("mobs.trader_llama.attributes.movement_speed.min", traderLlamaMovementSpeedMin);
|
traderLlamaMovementSpeedMin = getDouble("mobs.trader_llama.attributes.movement_speed.min", traderLlamaMovementSpeedMin);
|
||||||
traderLlamaMovementSpeedMax = getDouble("mobs.trader_llama.attributes.movement_speed.max", traderLlamaMovementSpeedMax);
|
traderLlamaMovementSpeedMax = getDouble("mobs.trader_llama.attributes.movement_speed.max", traderLlamaMovementSpeedMax);
|
||||||
|
traderLlamaBreedingTicks = getInt("mobs.trader_llama.breeding-delay-ticks", traderLlamaBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean tropicalFishRidable = false;
|
public boolean tropicalFishRidable = false;
|
||||||
@@ -1790,6 +1840,7 @@ public class PurpurWorldConfig {
|
|||||||
public boolean turtleControllable = true;
|
public boolean turtleControllable = true;
|
||||||
public double turtleMaxHealth = 30.0D;
|
public double turtleMaxHealth = 30.0D;
|
||||||
public double turtleScale = 1.0D;
|
public double turtleScale = 1.0D;
|
||||||
|
public int turtleBreedingTicks = 6000;
|
||||||
private void turtleSettings() {
|
private void turtleSettings() {
|
||||||
turtleRidable = getBoolean("mobs.turtle.ridable", turtleRidable);
|
turtleRidable = getBoolean("mobs.turtle.ridable", turtleRidable);
|
||||||
turtleRidableInWater = getBoolean("mobs.turtle.ridable-in-water", turtleRidableInWater);
|
turtleRidableInWater = getBoolean("mobs.turtle.ridable-in-water", turtleRidableInWater);
|
||||||
@@ -1801,6 +1852,7 @@ public class PurpurWorldConfig {
|
|||||||
}
|
}
|
||||||
turtleMaxHealth = getDouble("mobs.turtle.attributes.max_health", turtleMaxHealth);
|
turtleMaxHealth = getDouble("mobs.turtle.attributes.max_health", turtleMaxHealth);
|
||||||
turtleScale = Mth.clamp(getDouble("mobs.turtle.attributes.scale", turtleScale), 0.0625D, 16.0D);
|
turtleScale = Mth.clamp(getDouble("mobs.turtle.attributes.scale", turtleScale), 0.0625D, 16.0D);
|
||||||
|
turtleBreedingTicks = getInt("mobs.turtle.breeding-delay-ticks", turtleBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean vexRidable = false;
|
public boolean vexRidable = false;
|
||||||
@@ -1832,6 +1884,7 @@ public class PurpurWorldConfig {
|
|||||||
public double villagerTemptRange = 10.0D;
|
public double villagerTemptRange = 10.0D;
|
||||||
public boolean villagerCanBeLeashed = false;
|
public boolean villagerCanBeLeashed = false;
|
||||||
public boolean villagerCanBreed = true;
|
public boolean villagerCanBreed = true;
|
||||||
|
public int villagerBreedingTicks = 6000;
|
||||||
private void villagerSettings() {
|
private void villagerSettings() {
|
||||||
villagerRidable = getBoolean("mobs.villager.ridable", villagerRidable);
|
villagerRidable = getBoolean("mobs.villager.ridable", villagerRidable);
|
||||||
villagerRidableInWater = getBoolean("mobs.villager.ridable-in-water", villagerRidableInWater);
|
villagerRidableInWater = getBoolean("mobs.villager.ridable-in-water", villagerRidableInWater);
|
||||||
@@ -1847,6 +1900,7 @@ public class PurpurWorldConfig {
|
|||||||
villagerTemptRange = getDouble("mobs.villager.attributes.tempt_range", villagerTemptRange);
|
villagerTemptRange = getDouble("mobs.villager.attributes.tempt_range", villagerTemptRange);
|
||||||
villagerCanBeLeashed = getBoolean("mobs.villager.can-be-leashed", villagerCanBeLeashed);
|
villagerCanBeLeashed = getBoolean("mobs.villager.can-be-leashed", villagerCanBeLeashed);
|
||||||
villagerCanBreed = getBoolean("mobs.villager.can-breed", villagerCanBreed);
|
villagerCanBreed = getBoolean("mobs.villager.can-breed", villagerCanBreed);
|
||||||
|
villagerBreedingTicks = getInt("mobs.villager.breeding-delay-ticks", villagerBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean vindicatorRidable = false;
|
public boolean vindicatorRidable = false;
|
||||||
@@ -1971,6 +2025,7 @@ public class PurpurWorldConfig {
|
|||||||
public boolean wolfControllable = true;
|
public boolean wolfControllable = true;
|
||||||
public double wolfMaxHealth = 8.0D;
|
public double wolfMaxHealth = 8.0D;
|
||||||
public double wolfScale = 1.0D;
|
public double wolfScale = 1.0D;
|
||||||
|
public int wolfBreedingTicks = 6000;
|
||||||
private void wolfSettings() {
|
private void wolfSettings() {
|
||||||
wolfRidable = getBoolean("mobs.wolf.ridable", wolfRidable);
|
wolfRidable = getBoolean("mobs.wolf.ridable", wolfRidable);
|
||||||
wolfRidableInWater = getBoolean("mobs.wolf.ridable-in-water", wolfRidableInWater);
|
wolfRidableInWater = getBoolean("mobs.wolf.ridable-in-water", wolfRidableInWater);
|
||||||
@@ -1982,6 +2037,7 @@ public class PurpurWorldConfig {
|
|||||||
}
|
}
|
||||||
wolfMaxHealth = getDouble("mobs.wolf.attributes.max_health", wolfMaxHealth);
|
wolfMaxHealth = getDouble("mobs.wolf.attributes.max_health", wolfMaxHealth);
|
||||||
wolfScale = Mth.clamp(getDouble("mobs.wolf.attributes.scale", wolfScale), 0.0625D, 16.0D);
|
wolfScale = Mth.clamp(getDouble("mobs.wolf.attributes.scale", wolfScale), 0.0625D, 16.0D);
|
||||||
|
wolfBreedingTicks = getInt("mobs.wolf.breeding-delay-ticks", wolfBreedingTicks);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean zoglinRidable = false;
|
public boolean zoglinRidable = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user