此模组允许您为模组或整合包创建教程
点击「教程」按钮即可查看所有公开教程的列表:
教程会从资源包中懒加载,因此如果您打算在整合包中使用本功能,需要安装 Resource Loader 模组。
例如,我将使用 FTB Academy 整合包的路径,请将其替换为您自己的模组/整合包 ID。
索引文件,位于 ftbacademy:tutorials/intro/index.json(对于整合包,路径应为 resources/ftbacademy/tutorials/intro/index.json;对于模组,路径应为 assets/modid/tutorials/intro/index.json)
{
"title": "The Introduction Tutorial",
"icon": "item:minecraft:beacon",
"pages": [
{
"description": "Refined Storage",
"layers": [
"0.png"
]
},
{
"description": "Welcome Banner",
"layers": [
"ftbacademy:welcome.png"
]
}
]
}
标题和图标是可选的,每个页面的描述也是可选的。您只需为可见的教程设置这些字段。它必须包含一个页面数组,每个页面必须包含图层列表,目前图层是图片路径的字符串,但未来将具备其他功能,如文本或箭头。如果未指定图片命名空间(例如 0.png),则将从同一文件夹加载图片;否则,会将其视为完整的 Minecraft 图片路径。
示例可见教程文件,位于 ftbacademy:tutorials/visible.json:(对于整合包,路径应为 resources/ftbacademy/tutorials/visible.json;对于模组,路径应为 assets/modid/tutorials/visible.json)
[
"intro"
]
此文件仅列出将添加到「教程」GUI 中的所有教程。
作为模组开发者/整合包制作者如何打开教程?
作为整合包制作者,您可以运行命令 /open_tutorial ftbacademy:intro @p。
作为模组开发者,您可以在客户端向模组 FMLInterModComms.sendRuntimeMessage(modInstance, "ftbtutorialmod", "open", "ftbacademy:intro"); 发送 IMC,或在服务器端使用消息 ID "open_from_server"。
This mod lets you create tutorials for your mod or modpack
You can see a list of all public tutorials by clicking the Tutorials button:
Tutorials are lazily-loaded from resource packs, so if you want to use this for a modpack, you will need to get Resource Loader mod.
For example, I will be using FTB Academy modpack paths, replace those with your own mod/modpack IDs.
Index file, located at ftbacademy:tutorials/intro/index.json (For modpack it would be resources/ftbacademy/tutorials/intro/index.json, for mod assets/modid/tutorials/intro/index.json)
{
"title": "The Introduction Tutorial",
"icon": "item:minecraft:beacon",
"pages": [
{
"description": "Refined Storage",
"layers": [
"0.png"
]
},
{
"description": "Welcome Banner",
"layers": [
"ftbacademy:welcome.png"
]
}
]
}
Title and icon are optional, as are descriptions for each page. You only are required to set those for visible tutorials. It must contain an array of pages, which each must contain list of layers, which currently are strings of image paths, but later will have other features, like text or arrows. If image namespace is not specified (e.g. 0.png) it will load image from the same folder, otherwise, it will treat it as full minecraft image path.
Example visible tutorial file, located at ftbacademy:tutorials/visible.json: (For modpack it would be resources/ftbacademy/tutorials/visible.json, for mod assets/modid/tutorials/visible.json)
[
"intro"
]
This simply lists all tutorials that will be added to Tutorials gui.
How to open as modder/modpack creator?
As modpack creator you can run the command /open_tutorial ftbacademy:intro @p.
As mod dev you can send IMC to mod FMLInterModComms.sendRuntimeMessage(modInstance, "ftbtutorialmod", "open", "ftbacademy:intro"); on client side or "open_from_server" as message ID on server side.
下载 FTB Tutorial Mod (Forge)
下载 FTB Tutorial Mod (Forge)
下载 FTB Tutorial Mod (Forge)
下载 FTB Tutorial Mod (Forge)
下载 FTB Tutorial Mod (Forge)
下载 FTB Tutorial Mod (Forge)
下载 FTB Tutorial Mod (Forge)
下载 FTB Tutorial Mod (Forge)
下载 FTB Tutorial Mod (Forge)
下载 FTB Tutorial Mod (Forge)
- 添加了关闭后的教程操作 - LatvianModder
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧