Jump to content

AikonCWD

Members
  • Posts

    2
  • Joined

  • Last visited

AikonCWD's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thanks. Im assuming I need to check if the event is clientside, right? My mod will be client only.
  2. Hi all, I'm trying to "do things" when an item is crafted. But for some reason, after crafting one item (diamond sword), the event triggers twice. Here is the code: @SubscribeEvent public static void onCrafting(PlayerEvent.ItemCraftedEvent event) { ItemStack items = event.getCrafting(); System.out.println("--------------"); System.out.println("Description ID: " + items.getItem().getDescriptionId()); System.out.println("Count: " + items.getCount()); } And here is the output: I am missing something, for sure, can you help me with this? Thanks :)
×
×
  • Create New...

Important Information

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