/
Belyash5
/
Flu
Обзор
Документация
Войти
/
Belyash5
/
Flu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/com/hbm/entity/mob/EntityParasiteMaggot.java
49 строк
1 KB
Bob
fancier glyphid hives, maggots
16 дек 2023, 20:24
16 дек 2023, 20:24
3416dbe
Код
Авторство
О чём код?
package com.hbm.entity.mob; import net.minecraft.entity.Entity; import net.minecraft.entity.EnumCreatureAttribute; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.monster.EntityMob; import net.minecraft.world.World; public class EntityParasiteMaggot extends EntityMob { public EntityParasiteMaggot(World world) { super(world); this.setSize(0.3F, 0.7F); } @Override protected void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(8.0D); this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(1.0D); this.getEntityAttribute(SharedMonsterAttributes.attackDamage).setBaseValue(2.0D); } @Override protected boolean canTriggerWalking() { return false; } @Override protected Entity findPlayerToAttack() { return this.worldObj.getClosestVulnerablePlayerToEntity(this, 16); } @Override public void onUpdate() { this.renderYawOffset = this.rotationYaw; super.onUpdate(); } @Override protected boolean isValidLightLevel() { return true; } @Override public EnumCreatureAttribute getCreatureAttribute() { return EnumCreatureAttribute.ARTHROPOD; } }