Item Production Lib
Modby Daripher
Mod dev tools for tracking item production
Description
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);
}
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Macaw's Trapdoors
Adds vanila trapdoors in every plank variation, and some new trapdoors too!
ReAuth
Fixes the Problem of having to restart your Client when your Session invalidates
FoamFix
Simple, targetted optimizations for a popular block game
Essential Mod
The best way to play Minecraft. Enhanced Minecraft features in one simple mod. Fast, friendly, and for everyone!
CorgiLib
A library mod containing code used across Corgi Taco's mods.
Advancement Plaques [Neo/Forge]
Replace those boring advancement popups with something flashier.
Included in Modpacks (173)
Show fewer
The Clash of Epochs