Jump to content

Recommended Posts

Posted

Hello, I want to apply NBT to an item when it's crafted. I believe the event is called ItemCraftedEvent. The code is here. I am trying to apply the item NBT and log it, but when the item is crafted, nothing happens. Why is this not working?

Posted

ItemCraftedEvent is a FML event. Register it using

 

FMLCommonHandler.instance().bus().register(/*  Event class  */);

 

Make sure you check the package name of the event to know which to use (MinecraftForge or FML).

 

Hope that helps! :D

-Mitchellbrine

 

Minecraft can do ANYTHING, it's coded in Java and you got the full power of Java behind you when you code. So nothing is impossible.

It may be freaking fucking hard though, but still possible ;)

 

If you create a topic on Modder Support, live by this motto:

I don't want your charity, I want your information

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.