1- From 6e163b10eb444f0fc0573636727586bf44298e98 Mon Sep 17 00:00:00 2001
1+ From 7eb5dc2697e63f21e355f411c5299e8427608824 Mon Sep 17 00:00:00 2001
22From: William Blake Galbreath <blake.galbreath@gmail.com>
33Date: Thu, 9 May 2019 18:26:06 -0500
44Subject: [PATCH] Phantoms attracted to crystals and crystals shoot phantoms
@@ -13,7 +13,7 @@ Subject: [PATCH] Phantoms attracted to crystals and crystals shoot phantoms
1313 6 files changed, 226 insertions(+), 11 deletions(-)
1414
1515diff --git a/src/main/java/net/minecraft/server/DamageSource.java b/src/main/java/net/minecraft/server/DamageSource.java
16- index f7344d3a..f6c0165f 100644
16+ index f7344d3ae..f6c0165f9 100644
1717--- a/src/main/java/net/minecraft/server/DamageSource.java
1818+++ b/src/main/java/net/minecraft/server/DamageSource.java
1919@@ -82,6 +82,7 @@ public class DamageSource {
@@ -25,7 +25,7 @@ index f7344d3a..f6c0165f 100644
2525 return (new EntityDamageSourceIndirect("indirectMagic", entity, entity1)).setIgnoreArmor().setMagic();
2626 }
2727diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
28- index 585ebc37..217ab1be 100644
28+ index d91c54fa9..0d5e942a0 100644
2929--- a/src/main/java/net/minecraft/server/Entity.java
3030+++ b/src/main/java/net/minecraft/server/Entity.java
3131@@ -1427,6 +1427,7 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
@@ -55,7 +55,7 @@ index 585ebc37..217ab1be 100644
5555 return null;
5656 } else if (this.world.isClientSide) {
5757diff --git a/src/main/java/net/minecraft/server/EntityEnderCrystal.java b/src/main/java/net/minecraft/server/EntityEnderCrystal.java
58- index a57d0089..02952c3a 100644
58+ index a57d0089d..02952c3af 100644
5959--- a/src/main/java/net/minecraft/server/EntityEnderCrystal.java
6060+++ b/src/main/java/net/minecraft/server/EntityEnderCrystal.java
6161@@ -13,6 +13,12 @@ public class EntityEnderCrystal extends Entity {
@@ -123,7 +123,7 @@ index a57d0089..02952c3a 100644
123123 @Override
124124 protected void b(NBTTagCompound nbttagcompound) {
125125diff --git a/src/main/java/net/minecraft/server/EntityPhantom.java b/src/main/java/net/minecraft/server/EntityPhantom.java
126- index 9d331f9a..77b69cd3 100644
126+ index 777bc95ee..265077048 100644
127127--- a/src/main/java/net/minecraft/server/EntityPhantom.java
128128+++ b/src/main/java/net/minecraft/server/EntityPhantom.java
129129@@ -8,9 +8,10 @@ import javax.annotation.Nullable;
@@ -350,7 +350,7 @@ index 9d331f9a..77b69cd3 100644
350350
351351 return entityliving != null ? EntityPhantom.this.a(EntityPhantom.this.getGoalTarget(), PathfinderTargetCondition.a) : false;
352352diff --git a/src/main/java/net/minecraft/server/IEntityAccess.java b/src/main/java/net/minecraft/server/IEntityAccess.java
353- index 5135308f..89961900 100644
353+ index 5135308fb..899619009 100644
354354--- a/src/main/java/net/minecraft/server/IEntityAccess.java
355355+++ b/src/main/java/net/minecraft/server/IEntityAccess.java
356356@@ -34,6 +34,7 @@ public interface IEntityAccess {
@@ -362,23 +362,23 @@ index 5135308f..89961900 100644
362362 return this.a(oclass, axisalignedbb, IEntitySelector.f);
363363 }
364364diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
365- index 12cd8196..e341c492 100644
365+ index 85692500b..c9b41cebd 100644
366366--- a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
367367+++ b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
368- @@ -404,6 +404,9 @@ public class PurpurWorldConfig {
368+ @@ -402,6 +402,9 @@ public class PurpurWorldConfig {
369+ public double phantomMaxY = 256D;
370+ public float phantomFlameDamage = 1.0F;
369371 public int phantomFlameFireTime = 8;
370- public boolean phantomIgnoreCreative = false;
371- public boolean phantomOnlyAttackInsomniacs = false;
372372+ public double phantomAttackedByCrystalRadius = 0.0D;
373373+ public float phantomAttackedByCrystalDamage = 1.0F;
374374+ public double phantomOrbitCrystalRadius = 0.0D;
375375 private void phantomSettings() {
376376 phantomRidable = getBoolean("mobs.phantom.ridable", phantomRidable);
377377 phantomRidableInWater = getBoolean("mobs.phantom.ridable-in-water", phantomRidableInWater);
378- @@ -413,6 +416,9 @@ public class PurpurWorldConfig {
378+ @@ -409,6 +412,9 @@ public class PurpurWorldConfig {
379+ phantomMaxY = getDouble("mobs.phantom.ridable-max-y", phantomMaxY);
380+ phantomFlameDamage = (float) getDouble("mobs.phantom.flames.damage", phantomFlameDamage);
379381 phantomFlameFireTime = getInt("mobs.phantom.flames.fire-time", phantomFlameFireTime);
380- phantomIgnoreCreative = getBoolean("mobs.phantom.do-not-spawn-on-creative-players", phantomIgnoreCreative);
381- phantomOnlyAttackInsomniacs = getBoolean("mobs.phantom.only-attack-insomniacs", phantomOnlyAttackInsomniacs);
382382+ phantomAttackedByCrystalRadius = getDouble("mobs.phantom.attacked-by-crystal-range", phantomAttackedByCrystalRadius);
383383+ phantomAttackedByCrystalDamage = (float) getDouble("mobs.phantom.attacked-by-crystal-damage", phantomAttackedByCrystalDamage);
384384+ phantomOrbitCrystalRadius = getDouble("mobs.phantom.orbit-crystal-radius", phantomOrbitCrystalRadius);
0 commit comments