Jump to content

[1.15.2]How do I detect spawning Villager's baby by breeding?


kyazuki

Recommended Posts

My cord is only this.

@SubscribeEvent
  public static void onAnimalBreeding(BabyEntitySpawnEvent event) {
    LOGGER.debug("Child:" + event.getChild());
    LOGGER.debug("Parents:" + event.getParentA() + ", " + event.getParentB());  
  }
Link to comment
Share on other sites

Sorry, this is my class.

@Mod(AloneReloaded.MODID)
@Mod.EventBusSubscriber
public class Testmod {
  public static final String MODID = "testmod";
  public static final Logger LOGGER = LogManager.getLogger(MODID);

  public Testmod() {
    LOGGER.debug("Testmod Loaded!");
  }

  @SubscribeEvent
  public static void onBreeding(BabyEntitySpawnEvent event) {
    LOGGER.debug("Child:" + event.getChild());
    LOGGER.debug("Parents:" + event.getParentA() + ", " + event.getParentB());  
  }
}
Edited by kyazuki
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.