Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ModEntities {
- public static final EntityType<StrawberryCowEntity> STRAWBERRY_COW = EntityType.Builder.create(StrawberryCowEntity::new, EntityClassification.CREATURE).setTrackingRange(80).setUpdateInterval(3).setShouldReceiveVelocityUpdates(true).size(0.9F, 1.4F).build(prefix("strawberry_cow"));
- public static void registerEntity(IForgeRegistry<EntityType<?>> event) {
- event.register(STRAWBERRY_COW.setRegistryName("strawberry_cow"));
- GlobalEntityTypeAttributes.put(STRAWBERRY_COW, StrawberryCowEntity.createMutableAttribute().create());
- EntitySpawnPlacementRegistry.register(STRAWBERRY_COW, EntitySpawnPlacementRegistry.PlacementType.ON_GROUND, Heightmap.Type.MOTION_BLOCKING_NO_LEAVES, StrawberryCowEntity::spawnHandler);
- }
- private static String prefix(String path) {
- return MysticsBiomes.MOD_ID + "." + path;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement