March 2, 20205 yr 17 minutes ago, kyazuki said: BabyEntitySpawnEvent doesn't work for Villager. Show code please, pref a github link to a working project. :)
March 2, 20205 yr Author My cord is only this. @SubscribeEvent public static void onAnimalBreeding(BabyEntitySpawnEvent event) { LOGGER.debug("Child:" + event.getChild()); LOGGER.debug("Parents:" + event.getParentA() + ", " + event.getParentB()); }
March 2, 20205 yr Could you show that entire class please? Just trying to see how/where/which event bus it's registered on Edited March 2, 20205 yr by Ugdhar
March 2, 20205 yr Author 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 March 2, 20205 yr by kyazuki
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.