Entities
This commit is contained in:
parent
e7a6bdaa93
commit
4578130799
15 changed files with 308 additions and 44 deletions
20
src/main/java/ru/betterend/entity/EntityDragonfly.java
Normal file
20
src/main/java/ru/betterend/entity/EntityDragonfly.java
Normal file
|
@ -0,0 +1,20 @@
|
|||
package ru.betterend.entity;
|
||||
|
||||
import net.minecraft.entity.EntityType;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.attribute.DefaultAttributeContainer;
|
||||
import net.minecraft.entity.attribute.EntityAttributes;
|
||||
import net.minecraft.entity.mob.FlyingEntity;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class EntityDragonfly extends FlyingEntity {
|
||||
public EntityDragonfly(EntityType<EntityDragonfly> entityType, World world) {
|
||||
super(entityType, world);
|
||||
}
|
||||
|
||||
public static DefaultAttributeContainer.Builder createMobAttributes() {
|
||||
return LivingEntity.createLivingAttributes()
|
||||
.add(EntityAttributes.GENERIC_MAX_HEALTH, 8.0D)
|
||||
.add(EntityAttributes.GENERIC_FOLLOW_RANGE, 16.0D);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue