关于 Item Production Lib 模组
添加了 ItemProducedEvent 事件,可用于追踪物品由玩家或方块实体产出的时刻。
可与自定义合成方式配合使用,以便其他模组能够追踪它。
问:这个事件与 ItemSmeltedEvent 或 ItemCraftedEvent 有什么区别?
答:这些 Forge 事件会在你从槽位中取出物品的那一刻触发。ItemProducedEvent 则在物品被创建时触发。
作为模组开发者如何使用该事件:
// 物品已由你的方块实体在此处产出
// 请确保用事件返回的结果覆盖原结果
stack = ItemProductionLib.itemProduced(stack, blockEntity);
或者
// 物品已由玩家在此处产出
// 请确保用事件返回的结果覆盖原结果
stack = ItemProductionLib.itemProduced(stack, player);
如何安装 Item Production Lib
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.20.1 on Forge automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Forge
The loader must match the game version of the mod file, for example Minecraft 1.20.1. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file ItemProductionLib-1.20.1-1.0.2b-all.jar (167 KB) for your game version.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it.
Launch the loader profile
Open “Mods” in the main menu: Item Production Lib should be in the list.
Minecraft 1.20.1 runs on Java 17: with a different Java version the game may close right after launch.
版本
含依赖项
| Minecraft | 加载器 | 文件 | 日期 | 操作 |
|---|---|---|---|---|
| 1.20.1 | Forge | ItemProductionLib-1.20.1-1.0.2b-all.jar167 KB 2 |
常见问题
Which Minecraft versions does Item Production Lib work on?
Only Minecraft 1.20.1: there are no files for other versions.
Is Item Production Lib for Forge or Fabric?
Only for Forge: 1.20.1. There are no files for Fabric or NeoForge: a mod for another loader will not start.
Does Item Production Lib need other mods?
The author lists no required dependencies: the Forge loader is enough.
Which Java does Item Production Lib need?
Minecraft 1.20.1 runs on Java 17. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.
Where can I download Item Production Lib safely?
On this page: the file ItemProductionLib-1.20.1-1.0.2b-all.jar (167 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: d45d6d5ee2f065f62c825de6aacb5e2e00597c26.
评价
成为第一个评价 Item Production Lib 的人

