Item Production Lib MODについて
プレイヤーまたはブロックエンティティによってアイテムが生産された瞬間を追跡できるイベント ItemProducedEvent を追加します。
カスタムクラフトレシピと併用することで、他のMODでも追跡できるようになります。
Q: このイベントと ItemSmeltedEvent や ItemCraftedEvent の違いは何ですか?
A: これらのForgeイベントはスロットからアイテムを取り出した瞬間に発火します。ItemProducedEvent はアイテムが作成された時点で発火します。
MOD開発者としてこのイベントを使用する方法:
// ここでアイテムがあなたのブロックエンティティによって生産されました
// 必ずイベントから取得した結果で上書きしてください
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 |
FAQ
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の最初の評価を書きませんか

