Skip to content

内容类型表 ​

启动器的封闭取值。讲解见七种内容类型。

取值 ​

取值中文安装位置需选实例
mod模组<实例>/mods/是
modpack整合包新建实例否(选库)
resourcepack资源包<实例>/resourcepacks/是
shader光影<实例>/shaderpacks/是
datapack数据包<实例>/datapacks/是
world世界(地图)<实例>/saves/,永不覆盖是
skin皮肤启动器数据目录的 skins/否

拼写

resourcepack 和 datapack 是连写的。写成 resource_pack / data_pack 会被拒绝:

manifest.json is not valid: unknown variant `resource_pack`, expected one of `mod`, `modpack`, `resourcepack`, `shader`, `datapack`, `world`, `skin`

加载器拼写 ​

versions() 和 ContentCard 里的 loaders 用启动器的拼写:

值说明
vanilla无加载器
forgeForge
fabricFabric
neoforgeNeoForge
quiltQuilt

排序取值 ​

ts
type ContentSort = 'relevance' | 'downloads' | 'follows' | 'newest' | 'updated'
值排序依据
relevance搜索词为空时启动器按 downloads 重排;有搜索词时保留你的顺序
downloadsdownloads × 源倍率,降序
followsfollows,降序
newestpublishedAt,降序
updatedupdatedAt,降序

版本通道 ​

ContentVersion.channel:

值说明
release正式版
beta测试版
alpha内测版

源徽章 ​

浏览页里每个内容项带一个源徽章,按顺序降级:

  1. manifest 的 icon 图片
  2. Modrinth logo(仅 Modrinth 源)
  3. name 首字母,画在 color 色的圆角方块上

筛选分组的内置 header ​

filters() 返回的 header 命中下面之一时,选项并进该内置分组:

header中文
categories分类
features特性
performance impact性能影响

其他 header 单独成组。


下一篇:PluginHostApi 全量。

Celestial Launcher 基于 Modrinth App 构建,遵循其开源许可。