Jump to content

Bonemeal Event not working?


Tyron

Recommended Posts

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!");

}

 

}

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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