Minecraft 1.20.1, 1.21.1用Lexiconfig MOD
これは他のライブラリとの多くの統合を提供し、開発者とユーザーの両方にとって可能な限り使いやすくすることを目指したコンフィグAPIです。
概要
これは、複数の異なるコンフィグライブラリ間の互換性を提供し、マルチローダープロジェクト構成でも使いやすいようにするためのコンフィグAPIで、主に私のModで使用することを目的としています。
使いやすいアノテーションベースの構文を備えており、新しい設定ファイルをできるだけ簡単に作成できます。
あなたがModユーザーなら、この情報はおそらくあまり役に立ちません。しかし、あなたがMod開発者で、自分のプロジェクトでLexiconfigを使いたい場合は、さらに下の開発のセクションまでスクロールしてください。
現在、他のコンフィグライブラリのサポートはありませんが、更新を続けるにつれて、それぞれの互換性を追加し、他と競合せず、シームレスに統合できるようにしていきます。
以下は、さまざまなコンフィグライブラリ/API間での現在および予定されている統合の一覧です:
❌ - 未統合 ✅ - 統合済み ❓ - 進行中
ステータス Mod
❌ Cloth Config
❌ oωo config
✅ Configured
❌ Forge Config Screens
開発
このModには、新しいレキシコンを保管したり、イベントをリッスンしたりするために使用できるAPIが含まれています。
依存関係
build.gradle
dependencies { implementation "com.codinglitch.lexiconfig:lexiconfig-api:APIVERSIONHERE" }
最新のAPIバージョンを確認するには https://versions.codinglitch.com にアクセスしてください。
使用方法
独自のレキシコンを保管するには、まず独自のLibraryを作成する必要があります。これは、Libraryクラスを継承した新しいクラスを作成し、LexiconLibraryアノテーションを付けるだけで行えます。
@LexiconLibrary public class MyNewLibrary extends Library { @Override public void shelveLexicons() { } }
Forgeの構成では、それ以上の変更は必要ありません。ただし、Fabric向けに開発している場合は、このクラスをfabric.mod.jsonのエントリポイントとして追加する必要があります。
fabric.mod.json
//... "entrypoints": { "lexiconfig": [ "com.path.to.MyNewLibrary" ] } //...
次のステップは、いよいよレキシコンを作成して保管することです。これは、レキシコン用に別のクラスを作成し、次のように適切なアノテーションを付けるだけで行えます:
@Lexicon(name = MYLEXICONTITLE) // 名前にはできればあなたのMod IDを使用してください public class MyLexicon extends LexiconData { @LexiconEntry(comment = "これはシンプルなフィールドへのコメントです!") public String mySimpleField = "content"; @LexiconPage(comment = "これは新しいカテゴリへの素敵な新しいコメントです!") public MyNewPage myNewPage = new MyNewPage(); public static class MyNewPage extends LexiconPageData { @LexiconEntry(comment = "このフィールドはレキシコンページの中にあります!") public Boolean myPageField = true; } }
次で最後のステップは、レキシコンを保管することです。これは、そのインスタンスをライブラリ内のフィールドとして追加し、指定されたメソッドで保管するだけで行えます。
@LexiconLibrary public class MyNewLibrary extends Library { public static MyLexicon MYLEXICON = new MyLexicon(); @Override public void shelveLexicons() { LexiconfigApi.shelveLexicon(MYLEXICON); } }
Lexiconfigのインストール方法
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.18–1.21.11 on Fabric, Forge or NeoForge automatically.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 1.21.11. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file lexiconfig-neoforge-1.4.21-novel.jar (64 KB) for your game version and loader.
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: Lexiconfig should be in the list.
Minecraft 1.21.11 runs on Java 21: with a different Java version the game may close right after launch.
バージョン
依存関係あり
| Minecraft | ローダー | ファイル | 日付 | 操作 |
|---|---|---|---|---|
| 1.21 | NeoForge | [NEOFORGE] Lexiconfig 1.4.21-novel63.8 KB 1 | ||
| 1.21 | Fabric | [FABRIC] Lexiconfig 1.4.21-novel271 KB 2 | ||
| 1.18.1 | Forge | [FORGE] Lexiconfig 1.4.21-epic65.6 KB 2 |
FAQ
Which Minecraft versions does Lexiconfig work on?
There are files for 1.18–1.21.11, 27 versions in total. The newest is 1.21.11.
Is Lexiconfig for Forge or Fabric?
There are files for Fabric: 1.21–1.21.11, for Forge: 1.18–1.20.6 and for NeoForge: 1.21–1.21.11.
Does Lexiconfig need other mods?
The author lists no required dependencies: the Fabric, Forge or NeoForge loader is enough.
Which Java does Lexiconfig need?
Minecraft 1.21.11 runs on Java 21. If the game closes right after launch, the usual cause is the wrong Java version in the profile settings.
Where can I download Lexiconfig safely?
On this page: the file lexiconfig-neoforge-1.4.21-novel.jar (64 KB) is stored on Millida’s server, with no link shorteners. SHA-1 checksum: f862c78f4d27938208913d1c3ee4d9be1a13d166.
レビュー
Lexiconfigの最初の評価を書きませんか

