注意:本模组仍处于早期开发阶段,API 可能会发生变化。
Questlines 是一个基于数据驱动的 Minecraft 模组,它——如你所猜——为游戏添加了任务线(quest lines)。这些任务线可以使用数据包(data packs)来创建。这使得不懂编程的人也能非常轻松地创建任务线。
结构
一条任务线由多个任务组成。这些任务可以是连续的,也可以分支成多个任务支线。每个任务包含一个或多个目标。当所有目标都完成后,该任务将被标记为已完成,其所有子任务也将变为可用状态。
Arc Lib
Questlines 使用了一个名为 Arc Lib 的库模组(同样由 DAQEM Studios 制作)来注册玩家行为的目标。Arc Lib 使得定义玩家行为变得极其简单。你只需要告诉 Arc Lib 该行为对应哪个目标,描述行为的条件,并将奖励设置为“目标发生”(objective occurrence)类型的奖励即可。
示例
在本例中,目标是挖掘 10 个草方块,奖励为 10 个石头。
任务线
文件:data/namespace/questlines/questlines/questline_name.json
{
"is_unlocked_by_default": true
}
任务
文件:data/namespace/questlines/quests/quest_name.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
{
"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
{
"questlines.questline.namespace.questline_name": "The Best Quest Line Name!",
"questlines.quest.namespace.quest_name": "Touch Grass",
"questlines.quest.namespace.quest_name.description": "Break 10 Blocks of Grass and recieve 10 Stone.",
"questlines.objective.namespace.quest_name.objective_name.description": "Break Grass Block"
}
NOTE: THIS MOD IS STILL IN EARLY DEVELOPMENT AND THE API MIGHT CHANGE.
Questlines is a data driven Minecraft mod that adds - you guessed it - quest lines to the game. These quest lines can be created using data packs. This making crating quest lines very easy for people who don't know how to code.
Structure
A quest line consisits of multiple quests. These quest can just be consecutive or they can brach out into multiple quest branches. Each quest contains on or more objectives. When all objectives have been completed, the quest will also be marked as complete and all its child quests will become available.
Arc Lib
Questlines uses a library mod called Arc Lib (which is also made by DAQEM Studios) to register the objective player actions. Arc Lib makes it extremely easy to define player actions. All you have to do it tell Arc Lib which objective the action is for, descrive the conditions of the action and set the reward to an 'objective occurance' reward.
Example
In this example, the objective is to mine 10 Grass Blocks with a reward of 10 Stone blocks.
Questline
File: data/namespace/questlines/questlines/questline_name.json
{
"is_unlocked_by_default": true
}
Quest
File: data/namespace/questlines/quests/quest_name.json
{
"questline": "namespace:questline_name",
"objectives": [
{
"id": "objective_name",
"goal": 10
}
],
"rewards": [
{
"type": "arc:item",
"item": "minecraft:stone",
"amount": 10
}
]
}
Objective Actions (Arc Lib)
File: data/namespace/arc/quest_name/objective_name.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"
}
]
}
Language
File: assets/namespace/lang/en_us.json
{
"questlines.questline.namespace.questline_name": "The Best Quest Line Name!",
"questlines.quest.namespace.quest_name": "Touch Grass",
"questlines.quest.namespace.quest_name.description": "Break 10 Blocks of Grass and recieve 10 Stone.",
"questlines.objective.namespace.quest_name.objective_name.description": "Break Grass Block"
}
下载 Questlines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Questlines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Questlines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Questlines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Questlines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Questlines
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器

评论 0
登录后参与评分
还没有评论,来抢沙发吧