Posted February 23, 201411 yr Am I doing something wrong? I've checked my code several times, I don't know what I've done wrong. EntityJoinWorldEvent gets called no problem, but BonemealEvent doesn't when I apply bone meal to a grass block. @Mod(modid = BackToTheRoots.MODID, version = BackToTheRoots.VERSION) public class BackToTheRoots implements IEventListener { public static final String MODID = "backtotheroots"; public static final String VERSION = "0.1"; @EventHandler public void init(FMLInitializationEvent event) throws Exception { FMLCommonHandler.instance().bus().register(this); MinecraftForge.EVENT_BUS.register(this); System.out.println("backtotheroots has init."); } @SubscribeEvent(priority = EventPriority.HIGHEST) public void onEntityJoinWorld(EntityJoinWorldEvent event) { System.out.println("join entity"); } @SubscribeEvent(priority = EventPriority.HIGHEST) void onBoneMealEvent(BonemealEvent evt) { System.out.println("i'm bonemealing stuff!"); } }
February 23, 201411 yr Author I knew its going to be something completely obvious Thanks a lot for your help
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.