Configs for if Wither/Ender Dragon can ride vehicles

This commit is contained in:
Jason Penilla
2025-01-10 14:41:56 -08:00
committed by granny
parent 980b8ad814
commit 6224111edb
5 changed files with 26 additions and 72 deletions

View File

@@ -1,5 +1,13 @@
--- a/net/minecraft/world/entity/boss/enderdragon/EnderDragon.java
+++ b/net/minecraft/world/entity/boss/enderdragon/EnderDragon.java
@@ -974,6 +_,7 @@
@Override
protected boolean canRide(Entity entity) {
+ if (this.level().purpurConfig.enderDragonCanRideVehicles) return this.boardingCooldown <= 0; // Purpur - Configs for if Wither/Ender Dragon can ride vehicles
return false;
}
@@ -1009,7 +_,7 @@
boolean flag = worldserver.getGameRules().getBoolean(GameRules.RULE_DOMOBLOOT);
int i = 500;

View File

@@ -13,3 +13,11 @@
}
this.bossEvent.setProgress(this.getHealth() / this.getMaxHealth());
@@ -574,6 +_,7 @@
@Override
protected boolean canRide(Entity entity) {
+ if (this.level().purpurConfig.witherCanRideVehicles) return this.boardingCooldown <= 0; // Purpur - Configs for if Wither/Ender Dragon can ride vehicles
return false;
}