almost there

This commit is contained in:
BuildTools 2022-01-29 15:53:58 +01:00
parent 23a85533c6
commit d2e0f4ef33
2 changed files with 5 additions and 1 deletions

View File

@ -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()) {

View File

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