mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-19 17:37:42 +01:00
save stuff here
This commit is contained in:
@@ -5,7 +5,7 @@ Subject: [PATCH] Configurable phantom size
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/monster/Phantom.java b/src/main/java/net/minecraft/world/entity/monster/Phantom.java
|
||||
index 4c4b8b3f656cfb5cb084a456076f1b0061711970..31bee2b6a18dd90448f212ab00ffa363c5666a3f 100644
|
||||
index d6eda14f1735a8d8a6b7aa1afb6afeff4397fb1b..06b08e31e97855de8784a96f4268dd4654242a2c 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/monster/Phantom.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/monster/Phantom.java
|
||||
@@ -247,7 +247,11 @@ public class Phantom extends FlyingMob implements Enemy {
|
||||
@@ -22,19 +22,19 @@ index 4c4b8b3f656cfb5cb084a456076f1b0061711970..31bee2b6a18dd90448f212ab00ffa363
|
||||
}
|
||||
|
||||
diff --git a/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java b/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java
|
||||
index b32679b7bfa1e10839b0cda6d81ae8c65ec51d32..c5cf65e0c90188dda629056e897e589cd760c6b8 100644
|
||||
index 244e2a1a9fbbc7fc6116df5cdfb81f9f9dc93384..31c1f60c2bcb3203a32b4999428d92882ea80246 100644
|
||||
--- a/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java
|
||||
+++ b/src/main/java/org/purpurmc/purpur/PurpurWorldConfig.java
|
||||
@@ -1770,6 +1770,8 @@ public class PurpurWorldConfig {
|
||||
@@ -2053,6 +2053,8 @@ public class PurpurWorldConfig {
|
||||
public boolean phantomFlamesOnSwoop = false;
|
||||
public boolean phantomTakeDamageFromWater = false;
|
||||
public boolean phantomAlwaysDropExp = false;
|
||||
+ public int phantomMinSize = 0;
|
||||
+ public int phantomMaxSize = 0;
|
||||
private void phantomSettings() {
|
||||
if (PurpurConfig.version < 10) {
|
||||
double oldValue = getDouble("mobs.phantom.attributes.max-health", Double.parseDouble(phantomMaxHealth));
|
||||
@@ -1796,6 +1798,13 @@ public class PurpurWorldConfig {
|
||||
phantomRidable = getBoolean("mobs.phantom.ridable", phantomRidable);
|
||||
phantomRidableInWater = getBoolean("mobs.phantom.ridable-in-water", phantomRidableInWater);
|
||||
@@ -2086,6 +2088,13 @@ public class PurpurWorldConfig {
|
||||
phantomFlamesOnSwoop = getBoolean("mobs.phantom.flames-on-swoop", phantomFlamesOnSwoop);
|
||||
phantomTakeDamageFromWater = getBoolean("mobs.phantom.takes-damage-from-water", phantomTakeDamageFromWater);
|
||||
phantomAlwaysDropExp = getBoolean("mobs.phantom.always-drop-exp", phantomAlwaysDropExp);
|
||||
@@ -47,4 +47,4 @@ index b32679b7bfa1e10839b0cda6d81ae8c65ec51d32..c5cf65e0c90188dda629056e897e589c
|
||||
+ }
|
||||
}
|
||||
|
||||
public double pigMaxHealth = 10.0D;
|
||||
public boolean pigRidable = false;
|
||||
|
||||
Reference in New Issue
Block a user