almost there
This commit is contained in:
parent
23a85533c6
commit
d2e0f4ef33
2 changed files with 5 additions and 1 deletions
|
@ -112,6 +112,8 @@ public class Main extends JavaPlugin implements Listener {
|
||||||
Entity passenger = pos.getWorld().spawnEntity(pos, EntityType.HUSK);
|
Entity passenger = 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);
|
||||||
passenger.setInvulnerable(true);
|
passenger.setInvulnerable(true);
|
||||||
|
passenger.setCustomName("Giant");
|
||||||
|
passenger.setCustomNameVisible(false);
|
||||||
entity.addPassenger(passenger);
|
entity.addPassenger(passenger);
|
||||||
}
|
}
|
||||||
for (Entry<PotionEffectType, Integer> t : effects.entrySet()) {
|
for (Entry<PotionEffectType, Integer> t : effects.entrySet()) {
|
||||||
|
|
|
@ -4,6 +4,8 @@ attackDamage: 1.0
|
||||||
chance: 0.02
|
chance: 0.02
|
||||||
# Attack delay in ticks, smaller values will lag the server more
|
# Attack delay in ticks, smaller values will lag the server more
|
||||||
hitDelay: 20
|
hitDelay: 20
|
||||||
|
# if too high the entity will hit through walls
|
||||||
|
attackReach: 2
|
||||||
# Additional potion effects
|
# Additional potion effects
|
||||||
# type:amplifier
|
# type:amplifier
|
||||||
# See https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html
|
# See https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html
|
||||||
|
|
Loading…
Reference in a new issue