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,13 +4,15 @@ 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
|
||||||
# Set to [] to disable
|
# Set to [] to disable
|
||||||
effects:
|
effects:
|
||||||
- "JUMP:2"
|
- "JUMP:2"
|
||||||
|
|
||||||
# No need to change this
|
# No need to change this
|
||||||
headRotations: true
|
headRotations: true
|
||||||
refreshDelay: 40
|
refreshDelay: 40
|
Loading…
Reference in a new issue