From d2e0f4ef336de25755715e0efba92732dd2561e1 Mon Sep 17 00:00:00 2001
From: BuildTools <unconfigured@null.spigotmc.org>
Date: Sat, 29 Jan 2022 15:53:58 +0100
Subject: [PATCH] almost there

---
 src/main/java/pl/minecon724/giants/Main.java | 2 ++
 src/main/resources/config.yml                | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/main/java/pl/minecon724/giants/Main.java b/src/main/java/pl/minecon724/giants/Main.java
index e728bbe..87572ab 100644
--- a/src/main/java/pl/minecon724/giants/Main.java
+++ b/src/main/java/pl/minecon724/giants/Main.java
@@ -112,6 +112,8 @@ public class Main extends JavaPlugin implements Listener {
 			Entity passenger = pos.getWorld().spawnEntity(pos, EntityType.HUSK);
 		    new PotionEffect(PotionEffectType.INVISIBILITY, Integer.MAX_VALUE, 1).apply((LivingEntity) passenger);
 		    passenger.setInvulnerable(true);
+		    passenger.setCustomName("Giant");
+		    passenger.setCustomNameVisible(false);
 		    entity.addPassenger(passenger);
 		}
 		for (Entry<PotionEffectType, Integer> t : effects.entrySet()) {
diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml
index 00c10df..2c480a7 100644
--- a/src/main/resources/config.yml
+++ b/src/main/resources/config.yml
@@ -4,13 +4,15 @@ attackDamage: 1.0
 chance: 0.02
 # Attack delay in ticks, smaller values will lag the server more
 hitDelay: 20
+# if too high the entity will hit through walls
+attackReach: 2
 # Additional potion effects
 # type:amplifier
 # See https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html
 # Set to [] to disable
 effects:
   - "JUMP:2"
-  
+
 # No need to change this
 headRotations: true
 refreshDelay: 40
\ No newline at end of file