Skip to content

Instantly share code, notes, and snippets.

@QuantumBlink1337
Created June 19, 2022 17:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QuantumBlink1337/efa71f465cd4868ab94ca06401ef67b4 to your computer and use it in GitHub Desktop.
Save QuantumBlink1337/efa71f465cd4868ab94ca06401ef67b4 to your computer and use it in GitHub Desktop.
public class PossessedEntity extends Zombie {
public static EntityType<PossessedEntity> TYPE = (EntityType<PossessedEntity>) EntityType.Builder.of(PossessedEntity::new, MobCategory.MONSTER)
.build("possessed").setRegistryName(BaseMod.MODID, "possessed");
public static Item EGG = EntityUtils.buildEntitySpawnEgg(TYPE, 0xb00101, 0xacbf1f);
public PossessedEntity(EntityType<? extends Zombie> p_34271_, Level p_34272_) {
super(p_34271_, p_34272_);
}
public static AttributeSupplier.@NotNull Builder createAttributes() {
return Monster.createMonsterAttributes().add(Attributes.MOVEMENT_SPEED, 0.23F);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment