2023年8月29日火曜日

MinecraftForgeについてくるmods.tomlの翻訳をしてみた

 マイクラのMOD作ってみたくてmdkダウンロードしたので、中に入ってたmods.tomlを翻訳してみました。

ノリでバーッとやった完全な意訳なので、間違いなどのご指摘がございましたらお伝えいただけますと非常に助かります🙇


# This is an example mods.toml file. It contains the data relating to the loading mods.
# There are several mandatory fields (#mandatory), and many more that are optional (#optional).
# The overall format is standard TOML format, v0.5.0.
# Note that there are a couple of TOML lists in this file.
# Find more information on toml format here:  https://github.com/toml-lang/toml
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
# これはmods.tomlのサンプルファイルです。 ロードしようとするMODについての参照情報が含まれます。
# いくつかの必須フィールド(#mandatory)と、設定が任意のオプショナルフィールド(#optional)を持ちます。
# フォーマットは標準TOMLフォーマット(バージョン0.5.0)になっています。
# このファイルにはいくつかのTOMLリストが書かれています。
# TOMLフォーマットについてのより詳細な情報は次のURLを参照してください: https://github.com/toml-lang/toml

# (必須)MOD読込に必要なModLoaderの名前 - @Mod を使用する一般的なFML(Forge ModLoader)のMODでは「javafml」にする必要があります。
modLoader="javafml"

# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
#mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
# (必須) ModLoaderに連携する、対応しているバージョンの範囲 - @Mod を使用する一般的なFMLでは、Forgeのバージョンになります。
# ※この値は、Forgeの対応するMinecraftのバージョンによっていつも値がハネます。 バージョンのリストはForgeのダウンロードページで参照してください。
loaderVersion="${loader_version_range}"

# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
# あなたのMODのライセンスを記入します。この値は、あなたの再頒布についての考え方をより理解しやすくするために必要なメタデータです。
# あなたが選ぶことができるオプションについて、 https://shoosealicense.com/ を参考にしてください。「All rights reserved(全ての権利を留保する≒再頒布禁止)」は著作権の標準(デフォルト)であり、ここでもまたデフォルトです。
license="${mod_license}"

# A URL to refer people to when problems occur with this mod
# (任意) このMODでなにかしらの問題が発生したときにみんなが参照することができるURL
#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional

# A list of mods - how many allowed here is determined by the individual mod loader
# (必須) MODのリスト - いくつ許可されるかは、個々のModLoaderの検出しだいです。
[[mods]]

# The modid of the mod
# (必須) このMODのID (modid)
modId="${mod_id}"

# The version number of the mod
# (必須) このMODのバージョン
version="${mod_version}"

# A display name for the mod
# (必須) 表示に使われるこのMODの名前
displayName="${mod_name}"

# A URL to query for updates for this mod. See the JSON update specification https://docs.minecraftforge.net/en/latest/misc/updatechecker/
# (任意) このMODの更新状況をクエリするURL ([JSONアップデート仕様](https://docs.minecraftforge.net/en/latest/misc/updatechecker/)を参照してください) 
#updateJSONURL="https://change.me.example.invalid/updates.json"

# A URL for the "homepage" for this mod, displayed in the mod UI
# (任意) MODのホームページとしてMOD UIに表示するURL
#displayURL="https://change.me.to.your.mods.homepage.example.invalid/"

# A file name (in the root of the mod JAR) containing a logo for display
# (任意) ロゴの表示に使用する画像ファイルのファイル名 (MODのJARファイルのルートからの相対パス)
#logoFile="examplemod.png"

# A text field displayed in the mod UI
# (任意) MOD UIで表示するテキスト(クレジット表記)
#credits=""

# A text field displayed in the mod UI
# (任意) MOD UIで表示するテキスト(著作者情報)
authors="${mod_authors}"

# Display Test controls the display for your mod in the server connection screen
# MATCH_VERSION means that your mod will cause a red X if the versions on client and server differ. This is the default behaviour and should be what you choose if you have server and client elements to your mod.
# IGNORE_SERVER_VERSION means that your mod will not cause a red X if it's present on the server but not on the client. This is what you should use if you're a server only mod.
# IGNORE_ALL_VERSION means that your mod will not cause a red X if it's present on the client or the server. This is a special case and should only be used if your mod has no server component.
# NONE means that no display test is set on your mod. You need to do this yourself, see IExtensionPoint.DisplayTest for more information. You can define any scheme you wish with this value.
# IMPORTANT NOTE: this is NOT an instruction as to which environments (CLIENT or DEDICATED SERVER) your mod loads on. Your mod should load (and maybe do nothing!) whereever it finds itself.
# MATCH_VERSION is the default if nothing is specified (#optional)
# (任意) サーバーで表示される内容を制御する値です。
# 「MATCH_VERSION」を指定した場合、サーバーのバージョンとクライアントのバージョンが同じではなかった場合に、あなたのMODは赤い X になります。これはデフォルトの設定で、サーバーとクライアント両方にMODを入れたい場合に設定するべき値です。
# 「IGNORE_SERVER_VERSION」を指定した場合、サーバーにMODが存在して、クライアントにはMODが存在しない場合は、あなたのMODは赤い X になりません。サーバーオンリーMODの場合に設定するべき値です。
# 「IGNORE_ALL_VERSION」を指定した場合、サーバーまたはクライアントのいずれかにMODが存在していれば、あなたのMODは赤い X になりません。これは特別な場合で、サーバー側でどうさするコンポーネントが無いMODである場合の時のみ設定するべき値です。
# 「NONE」を指定した場合、あなたのMODは表示テストしないようになります。あなた自身がそれをする必要があります。(詳細は IExtensionPoint.DisplayTest を参照してください) この値を設定した場合、あなたは好きなようにスキーマを定義することができます。
# 値が未指定の場合、「MATCH_VERSION」がデフォルトの値として使用されます。
#displayTest="MATCH_VERSION"

# The description text for the mod (multi line!) (#mandatory)
# (必須) このMODを説明するテキスト (複数行OK)
description='''${mod_description}'''

# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
# (任意) 依存関係 - ModIDを識別するために「.」を使用してください。dependenciesは任意項目です。
[[dependencies.${mod_id}]]
    # the modid of the dependency
    # (必須) 依存MODのModID
    modId="forge" #mandatory

    # Does this dependency have to exist - if not, ordering below must be specified
    # (必須) この依存MODが必須かどうか - 必須でない場合、「ordering」を設定する必要があります。
    mandatory=true

    # The version range of the dependency
    # (必須) 依存MODのバージョン範囲
    versionRange="${forge_version_range}"

    # An ordering relationship for the dependency - BEFORE or AFTER required if the dependency is not mandatory
    # BEFORE - This mod is loaded BEFORE the dependency
    # AFTER - This mod is loaded AFTER the dependency
    # (必須) この依存MODを読み込む順番 - 「dependency」で必須でないように設定した場合、「BEFORE」または「AFTER」のいずれかの値である必要があります。
    # 「BEFORE」 - このMODは、ここで指定した依存MODを読み込む前に読み込まれます
    # 「AFTER」 - このMODは、ここで指定した依存MODを読み込んだ後に読み込まれます
    ordering="NONE"

    # Side this dependency is applied on - BOTH, CLIENT, or SERVER
    # (必須) この依存MODがどちら側で使われるものか - 「BOTH(両方)」、「CLIENT(クライアント)」または「SERVER(サーバー)」のいずれかの値
    side="BOTH"
# Here's another dependency
# これは別の依存MOD
[[dependencies.${mod_id}]]
    modId="minecraft"
    mandatory=true
    # This version range declares a minimum of the current minecraft version up to but not including the next major version
    # このバージョン範囲は、現在の Minecraft バージョンから次のメジャーバージョンまでの最小バージョンを宣言しますが、次のメジャーバージョンは含まれません。
    versionRange="${minecraft_version_range}"
    ordering="NONE"
    side="BOTH"

# Features are specific properties of the game environment, that you may want to declare you require. This example declares
# that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't
# stop your mod loading on the server for example.
# (任意) フィーチャーはゲームの実行環境についての特別なプロパティです。あなたが必要とするものを指定してください。
# この例ではOpenGLのバージョン3.2以上を指定しています。他のフィーチャーも追加されますが、それらは側面的なので、例えば、ここでの指定が原因でサーバーでのMODの読込が途中で停止するような事はありません。
#[features.${mod_id}]
# OpenGLのバージョン
#openGLVersion="[3.2,)"

changelogのバージョン表記は『47.1.0 1.20.1』でした。

ライセンスのデフォルトは慣習に従って(?)「All rights reserved」とのことで、なんとなく時代と柔軟さを感じます…

0 件のコメント:

コメントを投稿

MinecraftForgeについてくる ExampleMod.java の翻訳をしてみた

  Forge の mdk に入ってる gradle.properties を翻訳してみました。 ノリでバーッとやった完全な意訳なので、間違いなどのご指摘がございましたらお伝えいただけますと非常に助かります🙇