登陆 注册 QQ登陆
快捷导航
查看: 6|回复: 0

[模组分享] 任务线(Questlines)-MOD模组

[复制链接]

5211

主题

42

回帖

6293

积分

龙❁妻

Rank: 8Rank: 8

经验
6293 EP
金粒
1000 粒
绿宝石
20 块
爱心
0 点
发表于 2025-8-10 18:59:23 | 显示全部楼层 |阅读模式 IP:浙江宁波
任务线(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)[![BisectHosting code DAQEM for 25% off!](https://www.bisecthosting.com/partners/custom-banners/bb6b0cc7-75a1-4002-9257-561d8df48142.webp)](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)[![BisectHosting code DAQEM for 25% off!](https://www.bisecthosting.com/partners/custom-banners/bb6b0cc7-75a1-4002-9257-561d8df48142.webp)](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)[![BisectHosting code DAQEM for 25% off!](https://www.bisecthosting.com/partners/custom-banners/bb6b0cc7-75a1-4002-9257-561d8df48142.webp)](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)[![BisectHosting code DAQEM for 25% off!](https://www.bisecthosting.com/partners/custom-banners/bb6b0cc7-75a1-4002-9257-561d8df48142.webp)](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)[![BisectHosting code DAQEM for 25% off!](https://www.bisecthosting.com/partners/custom-banners/bb6b0cc7-75a1-4002-9257-561d8df48142.webp)](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)[![BisectHosting code DAQEM for 25% off!](https://www.bisecthosting.com/partners/custom-banners/bb6b0cc7-75a1-4002-9257-561d8df48142.webp)](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 回复 收起回复
小僵尸论坛感谢有你~
回复 论坛版权

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 手机动态码快速登录

本版积分规则



官方

新浪微博 腾讯微博 微信公众号 投稿规则 版权声明 捐助我们

官方QQ①群: 291907844 (点击加群)
官方QQ②群: 421312192
官方QQ③群: 528726532

介绍

我的世界(Minecraft)小僵尸论坛
收录了来自各地的我的世界(MC)爱好者们的各种资源

须知: 切勿滥用举报,任何与举报相关的信息必须属实!

"Minecraft"以及"我的世界"为Mojang Synergies AB的商标 本站与Mojang以及微软公司没有从属关系

QQ|Archiver|手机版|小黑屋|Minecraft(我的世界)小僵尸论坛 |网站地图

GMT+8, 2025-8-28 09:23 , Processed in 0.216338 second(s), 48 queries .

快速回复 返回顶部 返回列表