Configurable villager breeding

This commit is contained in:
draycia
2025-01-07 18:00:44 -08:00
committed by granny
parent f04709de78
commit cafc3de487
3 changed files with 11 additions and 39 deletions

View File

@@ -14,3 +14,12 @@
@Override
public Brain<Villager> getBrain() {
return (Brain<Villager>)super.getBrain();
@@ -707,7 +_,7 @@
@Override
public boolean canBreed() {
- return this.foodLevel + this.countFoodPointsInInventory() >= 12 && !this.isSleeping() && this.getAge() == 0;
+ return this.level().purpurConfig.villagerCanBreed && this.foodLevel + this.countFoodPointsInInventory() >= 12 && !this.isSleeping() && this.getAge() == 0; // Purpur - Configurable villager breeding
}
private boolean hungry() {