|
任务线(Questlines)Github |相关wiki |源站链接支持: fabric , forge为游戏增加了数据驱动的任务线。
分步骤解释:
---
任务线是一个数据驱动的 Minecraft 模组,为游戏增加了 - 你猜对了 - 任务线。这些任务线可以通过数据包来创建,这使得对于不懂编码的人来说创建任务线变得非常容易。
结构
一个任务线由多个任务组成。这些任务可以是连续的,也可以分成多个分支。每个任务包含一个或多个目标。当所有目标都完成时,任务也将被标记为完成,并且所有子任务将变为可用状态。
Arc Lib
任务线使用了一个叫做 Arc Lib 的库模组(也是由 DAQEM Studios 制作),用于注册玩家动作的目标。Arc Lib 使得定义玩家动作变得非常容易。你所要做的就是告诉 Arc Lib 这个动作是哪个目标的,描述动作的条件,并将奖励设置为“目标发生”奖励。
示例
在这个示例中,目标是挖掘 10 个草方块,奖励是 10 个石头方块。
任务线
文件:`data/namespace/questlines/questlines/questline_name.json`
json
{
\"is_unlocked_by_default\": true
}
任务
文件:`data/namespace/questlines/quests/quest_name.json`
json
{
\"questline\": \"namespace:questline_name\",
\"objectives\": [
{
\"id\": \"objective_name\",
\"goal\": 10
}
],
\"rewards\": [
{
\"type\": \"arc:item\",
\"item\": \"minecraft:stone\",
\"amount\": 10
}
]
}
目标动作(Arc Lib)
文件:`data/namespace/arc/quest_name/objective_name.json`
json
{
\"holder\": {
\"type\": \"questlines:objective\",
\"id\": \"namespace:quest_name/objective_name\"
},
\"type\": \"arc:on_break_block\",
\"conditions\": [
{
\"type\": \"arc:block\",
\"block\": \"minecraft:grass_block\"
}
],
\"rewards\": [
{
\"type\": \"questlines:objective_occurrence\"
}
]
}
语言
文件:`assets/namespace/lang/en_us.json`
json
{
\"questlines.questline.namespace.questline_name\": \"最佳任务线名称!\",
\"questlines.quest.namespace.quest_name\": \"接触草\",
\"questlines.quest.namespace.quest_name.description\": \"挖掘 10 个草方块并获得 10 个石头。\",
\"questlines.objective.namespace.quest_name.objective_name.description\": \"挖掘草方块\"
}
来自Modrinth所有游戏版本1.20.1所有类型forgefabricQuestlines Forge 1.20.1 - 0.1.2questlines-0.1.2-forge.jar下载0.1.2#Alphaquestlines-0.1.2-forge-sources.jar下载0.1.2#Alpha## [View changes here](https://github.com/DAQEM/ArcLib/releases)[](https://bisecthosting.com/DAQEM?r=Questlines+Changelog)### [I trust BisectHosting with my servers, and you should too! Get 25% off your first month of a gaming server for new customers using DAQEM. They have outstanding support that\'s always there when you need it.](https://bisecthosting.com/DAQEM?r=Questlines+Changelog)展开版本: 0.1.2支持游戏: 1.20.1类型:ForgeAlpha下载次数: 855Questlines Fabric 1.20.1 - 0.1.2questlines-0.1.2-fabric.jar下载0.1.2#Alphaquestlines-0.1.2-fabric-sources.jar下载0.1.2#Alpha## [View changes here](https://github.com/DAQEM/ArcLib/releases)[](https://bisecthosting.com/DAQEM?r=Questlines+Changelog)### [I trust BisectHosting with my servers, and you should too! Get 25% off your first month of a gaming server for new customers using DAQEM. They have outstanding support that\'s always there when you need it.](https://bisecthosting.com/DAQEM?r=Questlines+Changelog)展开版本: 0.1.2支持游戏: 1.20.1类型:FabricAlpha下载次数: 933Questlines Forge 1.20.1 - 0.1.1questlines-0.1.1-forge.jar下载0.1.1#Alphaquestlines-0.1.1-forge-sources.jar下载0.1.1#Alpha## [View changes here](https://github.com/DAQEM/ArcLib/releases)[](https://bisecthosting.com/DAQEM?r=Questlines+Changelog)### [I trust BisectHosting with my servers, and you should too! Get 25% off your first month of a gaming server for new customers using DAQEM. They have outstanding support that\'s always there when you need it.](https://bisecthosting.com/DAQEM?r=Questlines+Changelog)展开版本: 0.1.1支持游戏: 1.20.1类型:ForgeAlpha下载次数: 132Questlines Fabric 1.20.1 - 0.1.1questlines-0.1.1-fabric.jar下载0.1.1#Alphaquestlines-0.1.1-fabric-sources.jar下载0.1.1#Alpha## [View changes here](https://github.com/DAQEM/ArcLib/releases)[](https://bisecthosting.com/DAQEM?r=Questlines+Changelog)### [I trust BisectHosting with my servers, and you should too! Get 25% off your first month of a gaming server for new customers using DAQEM. They have outstanding support that\'s always there when you need it.](https://bisecthosting.com/DAQEM?r=Questlines+Changelog)展开版本: 0.1.1支持游戏: 1.20.1类型:FabricAlpha下载次数: 147Questlines Forge 1.20.1 - 0.1questlines-0.1-forge.jar下载0.1#Alphaquestlines-0.1-forge-sources.jar下载0.1#Alpha## [View changes here](https://github.com/DAQEM/ArcLib/releases)[](https://bisecthosting.com/DAQEM?r=Questlines+Changelog)### [I trust BisectHosting with my servers, and you should too! Get 25% off your first month of a gaming server for new customers using DAQEM. They have outstanding support that\'s always there when you need it.](https://bisecthosting.com/DAQEM?r=Questlines+Changelog)展开版本: 0.1支持游戏: 1.20.1类型:ForgeAlpha下载次数: 126Questlines Fabric 1.20.1 - 0.1questlines-0.1-fabric.jar下载0.1#Alphaquestlines-0.1-fabric-sources.jar下载0.1#Alpha## [View changes here](https://github.com/DAQEM/ArcLib/releases)[](https://bisecthosting.com/DAQEM?r=Questlines+Changelog)### [I trust BisectHosting with my servers, and you should too! Get 25% off your first month of a gaming server for new customers using DAQEM. They have outstanding support that\'s always there when you need it.](https://bisecthosting.com/DAQEM?r=Questlines+Changelog)展开版本: 0.1支持游戏: 1.20.1类型:FabricAlpha下载次数: 171全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
任务线(Questlines)-MOD模组 |
楼主
2025-8-10 18:59:23
回复(0)
收起回复
|