promotional bannermobile promotional banner

Item Production Lib

Mod dev tools for tracking item production

Adds event ItemProducedEvent that allows tracking the moment the item was produced by player or block entity.

Can be used with custom crafting methods so that other mods can track it.

Q: What is the difference between this event and ItemSmeltedEvent or ItemCraftedEvent?

A: These forge events are fired the moment you take items from a slot. ItemProducedEvent is fired whenever the item is created.

How to use the event as a mod dev:

{

  // item has been produced by your block entity here

  // make sure to override the result with the one from the event

  stack = ItemProductionLib.itemProduced(stack, blockEntity);

}

OR

{

  // item has been produced by player here

  // make sure to override the result with the one from the event

  stack = ItemProductionLib.itemProduced(stack, player);

}

The Item Production Lib Team

profile avatar
  • 69
    Followers
  • 11
    Projects
  • 37.7M
    Downloads

More from DaripherView all