diff --git a/README.md b/README.md
index 79475f7..cc43cb6 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
-# giants
+# Giants
-Add giants to your Minecraft server by installing a Spigot plugin.
\ No newline at end of file
+This plugin adds naturally spawning giants to your Minecraft server.
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 6782505..2da1e43 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2,7 +2,7 @@
4.0.0
giants
giants
- 21.1.0
+ 21.1.1
1.8
diff --git a/src/main/java/pl/minecon724/giants/Main.java b/src/main/java/pl/minecon724/giants/Main.java
index 18221fd..da660f1 100644
--- a/src/main/java/pl/minecon724/giants/Main.java
+++ b/src/main/java/pl/minecon724/giants/Main.java
@@ -118,10 +118,14 @@ public class Main extends JavaPlugin implements Listener {
LivingEntity entity = (LivingEntity) pos.getWorld().spawnEntity(pos, EntityType.GIANT);
if (ai) {
LivingEntity passenger = (LivingEntity) pos.getWorld().spawnEntity(pos, EntityType.HUSK);
- new PotionEffect(PotionEffectType.INVISIBILITY, Integer.MAX_VALUE, 1).apply((LivingEntity) passenger);
+ new PotionEffect(PotionEffectType.INVISIBILITY, Integer.MAX_VALUE, 1)
+ .apply((LivingEntity) passenger);
+ new PotionEffect(PotionEffectType.WEAKNESS, Integer.MAX_VALUE, 255)
+ .apply((LivingEntity) passenger);
passenger.setCustomName("Giant");
passenger.setCustomNameVisible(false);
- passenger.setHealth(0.5D);
+ passenger.setInvulnerable(true);
+ passenger.setPersistent(true);
entity.addPassenger(passenger);
}
for (Entry t : effects.entrySet()) {