HomeJavaModsItem Production Lib
Item Production Lib
ModsJava

Item Production Lib

by Daripher · on CurseForge

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Forge only.

⬇ Download for 1.20.1⬇ Download for 1.19.2
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

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

}

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more