java - minecraft .toml 文件错误:我该如何解决?
问题描述
我正在尝试创建自己的 Minecraft mod,但他发送了一个错误:
这里的 .toml 文件代码:
modLoader="javafml" #mandatory
loaderVersion="[36,)" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
license="All rights reserved"
#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional
[[mods]] #mandatory
modId="buildable_kingdoms" #mandatory
version="1.16.5-1.0.0" #mandatory
displayName="Buildable Kingdoms" #mandatory
#updateJSONURL="https://change.me.example.invalid/updates.json" #optional
#displayURL="https://change.me.to.your.mods.homepage.example.invalid/" #optional
logoFile="" #optional
credits="Thanks to Bl4ckdestinyXX" #optional
authors="Bl4ckdestinyXX" #optional
# The description text for the mod (multi line!) (#mandatory)
description='''
there is no description
'''
[[dependencies.buildable_kingdoms]] #optional
modId="forge" #mandatory
mandatory=true #mandatory
versionRange="[36,)" #mandatory
ordering="NONE"
side="BOTH"
[[dependencies.buildable_kingdoms]]
modId="minecraft"
mandatory=true
versionRange="[1.16.5,1.17)"
ordering="NONE"
side="BOTH"
这是我的 Main.java 代码:(我已经删除了所有导入的东西)
@Mod()
public class Main
{
public static Main instance;
public static final String MOD_ID = "buildable_kingdoms";
public static final Logger LOGGER = LogManager.getLogger();
public Main()
{
instance = this;
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup);
FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientSetup);
}
}
错误是:
mods.toml 缺少 modid null 的元数据
解决方案
推荐阅读
- python - 计算 Pandas 数据框列中的唯一提及,同时按多个其他列分组
- function - Geogebra:绘制离散函数
- google-bigquery - Power BI 查询在 BigQuery 查询历史记录中不可见
- ios - 我在 iOS 应用中看不到 Firebase 分析
- python - 创建一个列表,合并前一个列表的元素和数据框特定列的值
- python - 用于检查列表中是否存在多个模式的正则表达式
- vba - 使用 VBA 创建 zip 文件错误
- angular - Angular Material 对话框 - 工厂模式
- react-native - 在 Google 的 M1 安卓模拟器中进入开发者菜单
- c++ - 迁移到 MSYS2/MinGW64 时标头路径不匹配