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 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