
参与者 MCreator x CurseForge ModJam 2024
需要 GeckoLib 和 Curios API
简介:
该模组添加了一套完整的可重复任务系统,类似于大型多人在线角色扮演游戏(MMORPG)。在世界中旅行时,你可能会遇到内部包含非玩家角色(NPC)的新结构。与他们交谈以接收一个程序生成的任务。
使用你的任务日志(默认:J)来阅读信息,或者当你有任务时启用任务追踪覆盖层(默认:K),以更舒适地完成它。

任务
'可选任务,通过完成它们你可以获得奖励'

如何开始?
- 在主世界找到一个内部有 NPC 的新结构。与他交谈以开始一个任务。你将在聊天中看到所有需要的信息。大多数任务都有来自 NPC 的独特开始和结束短语。有些任务值得仔细阅读,然而最重要的词总是以黄色高亮显示(例如所需物品及其数量)。
- 按 J(默认值,可以在按键绑定设置中更改)打开任务日志。在这里你将看到任务的类型。随意将鼠标悬停在不同的文字上,它们可能包含有用的提示。你还可以按 K(默认值,可以在按键绑定设置中更改)使用任务追踪覆盖层追踪当前任务。你将在屏幕左侧看到你的进度。
- 完成任务并返回到 NPC。与他交谈,他将给你一个随机奖励,从绿宝石到更稀有和有用的物品不等。

更多关于任务
- 任务系统基于 JSON,这意味着它可以由玩家配置,甚至可以通过新任务进行扩展(在本页面底部阅读更多内容)。
- 完全兼容具有竞争元素的多玩家模式:谁先完成任务谁就获得奖励。
- 如果 NPC 死亡,或者其他玩家在你之前完成了这个任务,或者有人对这个 NPC 使用了遗忘药水,任务将会停止。
- 当你开始一个任务或在中断时有任务正在进行时,你将在聊天中收到通知。它以橙色或红色以及方括号区分。
- 一次只允许一个任务的原则。你可能喜欢也可能讨厌它,但你不能同时完成来自不同 NPC 的具有相似目标的 30 个任务,因为这会破坏游戏平衡。
- 同一个 NPC 不会连续给出相同的任务。你不会连续两次为渔夫收集浮标木材,但这并不改变同一任务经常出现的事实。
- 如果你不喜欢当前的任务,或者如果你想接受另一个 NPC 的任务,只需在任务日志中点击拒绝按钮。当鼠标悬停在此按钮上时,会出现通知说你将会失去进度。这对于交付类型的任务并不重要,因为取消任务时没有人会拿走你的物品。
- 如果你不喜欢使用快捷键,任务日志也以物品的形式存在。在合成表或背包中使用 3 张纸和 1 个绿宝石制作。
- 遗忘药水是一个有用的物品,可以对 NPC 使用以跳过当前任务并开始一个新任务。
- 如果你已经取得了所需的进度,那么在任务日志中将鼠标悬停在“返回到 NPC”文本上,你会看到你上次相遇的坐标。
- 在任务日志中,将鼠标悬停在书的左上角以查看你已完成任务的数量。
任务类型
任务类型指的是玩家需要执行以完成任务的动作。目前游戏中有 8 种可用的任务类型:
- 交付 - 收集所需的物品并交付给 NPC。注意:物品会被消耗。
- 制作 - 制作所需的物品以完成任务。注意:物品会保留在你身上。
- 狩猎 - 杀死指定的生物。生物变种也算在内(如果指定了蜘蛛,洞穴蜘蛛也算)。
- 训练 - 对指定的生物造成暴击(跳跃或坠落时攻击)。
- 钓鱼 - 使用鱼竿进行钓鱼。
- 建造 - 放置所需的块以完成任务。破坏这种类型的块会减少进度。
- 拆除 - 破坏所需的块以完成任务。放置这种类型的块会减少进度。
- 耕作 - 使用锄头翻地。践踏土壤会减少进度。

任务稀有度
任务分为两种稀有度:普通(Common)和稀有(Rare)。你大部分时间都会进行普通任务。这些任务奖励不错,且通常不难完成。稀有任务以紫色标示,它们可能更具难度或危险性,但奖励也可能非常丰厚。当你开始为 NPC 接取任务时,前三次任务必定是普通任务。随后的任务会根据玩家当前的游戏进度,以特定概率决定其稀有度。在多人游戏中,该概率基于完成该 NPC 上一个任务的最后一名玩家的进度计算。例如:你已经去过末地,现在正接取家附近垂钓者(Angler)的任务。一个在该世界中毫无进度的朋友加入了你的游戏,但他不知何故在你之前完成了这个任务。那么这个垂钓者的下一个任务的稀有度将根据你朋友的进度而非你的进度来计算。那么在不同游戏阶段,获得不同稀有度任务的概率是多少呢?
全新玩家 - 前 3 个任务必定是普通任务。
完成前 3 个任务后:普通任务(95% 概率),稀有任务(5% 概率)。
找到第一颗钻石后:普通任务(90%),稀有任务(10%)
访问下界后:普通任务(80%),稀有任务(20%)
访问末地后:普通任务(70%),稀有任务(30%)
- 在当前用于 ModJam 和便于测试的版本中,稀有任务出现的频率更高*
任务 NPC

垂钓者 (Angler)
'那个似乎做什么都不对的老头。即使他弄坏了前两根鱼竿,你也不会不给他一根新鱼竿就离开吧?'

普通任务:
- 各种简单的任务,非常适合游戏早期和中期(例如,渔夫的鱼线损坏了,所以他让你给他找一些线绳)
稀有任务:
- 发光诱饵。NPC 要求你为他找到一个发光的凝块,用于制作发光诱饵。你必须找到并杀死“在深处游动的蓝绿色发光生物”才能获得它。完成此任务时,垂钓者除了给予奖励外,还会给你一些发光诱饵供你自己使用。为此,你需要在夜间钓鱼时将它在副手持有,这样你有 50% 的概率额外获得 1-3 条鱼。该物品是一次性的。
- 守卫者。垂钓者报告说守卫者已经到来。在此任务期间,从水中钓起物品会导致守卫者生成。你必须击杀指定数量的守卫者以完成任务。
- 天蓝匕首鱼。捕获许多这种鱼。在任务激活期间,下雨或雷暴时在任意地点捕获(50% 概率)。
- 猩红石斑鱼。捕获一种强壮的红鱼,它会损坏你的鱼竿并发出独特的声音。在任务激活期间,在任意地点捕获(20% 概率)。
- 棘背鲆。捕获并交付一种会对你造成 6 点伤害的多刺鱼类。在任务激活期间,在任意地点捕获(25% 概率)。
- 珍珠鲶鱼。捕获并交付一种能让你短暂失明的鱼。在任务激活期间,晴朗天气时在任意地点捕获(25% 概率)。
- 黑鳍笛鲷。捕获并交付一种会召唤幻翼求助的鱼。在任务激活期间,夜间在任意地点捕获(50% 概率)。
- 铜鱼。你需要捕获一种随时间氧化的鱼(此机制目前已被禁用)。在任务激活期间,在任意地点捕获(25% 概率)。

厨师 (Cook)
'一位准备喂饱世界上所有人的顶级大厨……当然,前提是有人给他带来正确的食材。'

/locate structure realmrpg_quests:cooks
- 可以在平原地区的厨师小屋中找到。该结构随机生成,周围可能有道路、麦田、谷仓、房屋、鸡舍、街灯和其他辅助建筑以适应地形。
- 总共有 12 个可重复任务(9 个普通,4 个稀有)。所有任务在游戏内均已包含文本行。
- 如果安装了其他模组,它可以请求来自其他模组的物品(Farmer's Delight,Upgrade Aquatic)
普通任务:
- 种类繁多的12项简单任务,非常适合游戏早期和中期(例如,厨师需要你提供几个棕色蘑菇来烹饪一顿饭,或者要求你翻耕土地)
稀有任务:
- 苦力怕果实。厨师让你为他寻找苦力怕果实,这可以通过击杀暴露在阳光下的苦力怕获得。这是一个在清晨出门战斗的好理由。
- 赭色海带。在此任务期间,海草有几率掉落赭色海带,这是厨师要求你获取的物品。
- 天鹅绒松露。挖掘任何泥土方块都有机会找到天鹅绒松露,并将其交给厨师。
- 高级餐点。厨师要求你准备一道复杂的菜肴(使用合成台)。如果安装了 Farmer's Delight,此任务的难度可能会因运气不同而变得更简单或更困难。

Monster Hunter
'一位击败过上百具骷髅的传奇英雄。但即便如此,他也将需要你的帮助。'

/locate structure realmrpg_quests:monster_hunters
- 可在森林中的“怪物猎人塔”中找到。该结构随机生成,周围可能伴有道路、仓库和其他辅助建筑,以适配地形。
- 总共有9个可重复完成的任务(6个普通,3个稀有)。目前所有任务文本均已简化。
- 如果安装了其他模组,它可以请求来自这些模组的物品(Farmer's Delight,Upgrade Aquatic)
普通任务:
- 种类繁多的9项简单任务,非常适合游戏中期和后期(例如,击杀一些僵尸,进行战斗训练并对苦力怕造成暴击等)
稀有任务:
- 灾厄村民的鼻子。怪物猎人提到他与灾厄村民有旧账要算。他要求你获取他们的鼻子……你知道该怎么弄到这些。(任何灾厄村民都适合此任务,包括卫道士、唤魔者等)
- 恶魂。NPC 要求你击败一只恶魂。
- 烈焰人。NPC 要求你击杀几只烈焰人。

Miner's House
'靠近地表的地下避难所'
/locate structure realmrpg_quests:miners
- 进入该结构的入口在地表较为罕见,通常出现在大多数草地生物群系和沙漠中。
- 矿工 NPC 目前已被从模组中移除,并由怪物猎人取代。

Lumberjack's House
'隐藏在树林中的一间森林小屋'
/locate structure realmrpg_quests:lumberjacks
- 该结构在森林和针叶林生物群系中较为罕见。
- 伐木工 NPC 目前已被从模组中移除,并由村民取代。
Other Characters

无头骷髅
'这位凋零骷髅似乎丢了脑袋。字面意义上的。'

- 可以在小型下界砖废墟中与普通的凋零骷髅一同找到。
- 他不会注意或攻击玩家。也许你应该尝试以某种方式帮助他?(可能会有几种不同的后果)

Piglin Gambler
'一个绝对不可疑的人,纯粹出于娱乐访客的欲望(好吧,以及为此赚取相当数量的黄金)'

- 只需支付少量的1个金锭费用,你就可以参与他的“罐子游戏”。
- 他会向你展示奖励藏在哪个罐子里,然后在你面前搅拌它们。
- 从三个罐子中选一个并获得奖励。或者选错并接受后果(后果可能各不相同,也可能不存在。)
- 他绝对没有作弊。你可以对此确信无疑。
Configs / Adding New Quests
你可能在想,我该如何在游戏中添加自己的任务?以下内容将详细说明所需的知识。
Configs
目前模组为任务本身添加了配置文件。位置位于你的 Minecraft 安装文件夹中(例如 minecraft/config/realmrpg/quests/)
How it works?
即使在进入你的世界之前,游戏也会创建 json 配置文件,前提是你的 Minecraft 游戏文件夹中尚不存在这些文件。如果配置文件已存在,那么在游戏中 NPC 将能够根据这些文件中的数据生成任务。例如,渔夫(Angler)的任务来自 angler.json 文件。你可以在游戏运行时直接编辑此文件,但这不会影响已经生成的任务。只有在当前任务完成后,下一个任务才会根据你的更改生成。
JSON 中的任务长什么样?
这是一个随机任务的示例。它具有普通稀有度,其 id 为 9。主要文本基于渔夫的垂钓任务。它将要求玩家交付随机数量的蜡烛(7 到 21 根),颜色也是随机的。它将给予玩家来自原版沙漠神殿宝箱的战利品。它还将奖励玩家 11 点经验值。
"questType_c9": "deliver",
"questText_c9": "quest.realmrpg_quests.angler.tackles",
"questRewardText_c9": "quest.realmrpg_quests.generic.reward",
"questTarget_c9": "minecraft:candles",
"questReward_c9": "minecraft:chests/desert_pyramid",
"questSpecialEvents_c9": "",
"questCustomName_c9": "",
"questTaskCustomName_c9": "",
"questTargetCustomName_c9": "",
"questTargetEnchanted_c9": false,
"questTargetMin_c9": 7,
"questTargetMax_c9": 21,
"questExp_c9": 11,
这一切意味着什么?
每个任务都由上述行组成。行的顺序不重要,但所有行对于任务的正常运行都是必需的。在每行的末尾,你会看到任务稀有度的首字母(c 或 r,分别代表 Common 和 Rare),以及任务 ID 的数字。这个 ID 在游戏选择下一个任务时很重要,检查的 ID 数量在 .json 文件开头附近的 commonQuestCount 和 rareQuestCount 行中指示。
例如,你想给渔夫添加一个普通任务。默认情况下,他的 json 文件中包含 "commonQuestCount": 15。你所需要做的就是复制并粘贴与任务 15 相关的所有行,并将它们末尾的数字更改为 16。然后只需将 commonQuestCount 更改为 16(这样游戏现在将检查所有 16 个可能的普通任务)。就这样,任务准备好了!你可以将任何行的值更改为你想要的任何内容。
然而,如果你觉得其中任何一行很复杂,下面你可以看到详细的解释:
questType
(取决于所需玩家操作的任务类型)
- 接受以下值之一:
deliver、craft、kill、crit、build、destroy、catch、till
- 你不能添加自己的新任务类型
questText
(NPC 在接受此任务时将告诉玩家的内容)
- 接受任何本地化条目
- 如果本地化条目包含 {Target} 或 {Count},它将被替换为目标名称和完成所需操作的计数。
- 替换示例:"Gather {Target} and bring me {Count} pieces" = "Gather Apple and bring me 12 pieces"
- 通用文本(交付):
quest.realmrpg_quests.generic.deliver
- 通用文本(狩猎):
quest.realmrpg_quests.generic.kill
questRewardText
(NPC 在完成此任务时将说的话)
- 接受任何本地化条目
- 基本奖励文本是
quest.realmrpg_quests.generic.reward
questTarget
(完成任务所需的内容)
- 对于交付和制作任务,它是 Item Tag,每次将从中选择一个随机物品。例如:
minecraft:candles
- 对于狩猎和训练任务,它是 Entity Tag,从中任何实体都适合完成任务。例如:
minecraft:skeletons
- 对于建造和破坏任务,它是 Block Tag,从中任何方块都适合完成任务。例如:
minecraft:coal_ores
- 对于钓鱼和耕作任务,该值并不重要,可以留空或设置为
none
questReward
(给予完成任务的玩家的奖励)
- 接受任何战利品表
- 示例(原版):
minecraft:chests/simple_dungeon
- 示例(模组):
realmrpg_quests:rewards/cook/generic
questSpecialEvents
(罕见任务期间发生的事件和检查)
- 主要在基础模组中硬编码。目前无法通过配置文件添加自定义事件。
- 你仍然可以制作当前稀有任务的“自定义版本”,使用不同的文本、奖励战利品表、经验值数量等。
- 检查现有的 JSON 配置文件并复制可能的值(例如来自 Angler 的示例:
scarlet_grouper)
- 留空或设置为
none,使任务显示为普通颜色。
- 插入任何其他值(即使是
blahblah),使该任务显示为紫色,如同稀有任务一样。
questCustomName
(在日志中显示的任务名称)
- 接受任何本地化条目。(例如,游戏内的
biome.minecraft.swamp 将显示为 Swamp)
- 如果留空或设置为
none,它将在游戏中替换为任务类型(例如 Delivery 或 Hunting)
questTaskCustomName
(在日志中显示的任务目标名称)
questTargetCustomName
(在日志中显示的任务目标名称)
- 接受任何本地化条目。
- 对于狩猎、训练、破坏或建造类任务,务必将此值设置为某个内容,以便在游戏中正确显示为目标。
questTargetEnchanted
(如果目标是物品,是否应为其附魔)
questTargetMin, questTargetMax
(如果目标是物品,是否应为其附魔)
- 完成所需的最小和最大操作次数(击杀 / 放置方块 / 物品数量)
- 不要将最小值设置得大于最大值,反之亦然
- 不要将这些值设为零或负数。
- 对于交付类任务,不要将值设置为超过 64,否则任务将无法完成。
questExp
(完成任务后获得的经验值数量)
- NPC 给予玩家的‘奖励经验球’中的经验点数
- 不要将此值设为零或负数。
这次 ModJam 给了我一个灵感:暂时放下所有正在进行的项目,尽快为我 RPG 系列制作一款小而精妙的模组。尽管我只能用大约一半的时间来参与比赛,但我尽力挖掘 MCreator 的潜力,并在模组开发中学到了许多新东西。我希望我的项目即使在当前未完成的状态下也能足够有趣,与其他参赛作品相媲美。我已经迫不及待想要看看其他人在这个月里都做了什么了!

Participant MCreator x CurseForge ModJam 2024
Requires GeckoLib & Curios API
About:
The mod adds a complete system of repeatable quests, almost like in MMORPGs. Traveling around the world you can encounter new structures with NPCs inside. Talk to them to recieve a procedurally-generated quest.
Use your Quest Journal (Default: J) to read info, or enable Quest Tracking Overlay (Default: K) when you have a quest, to finish it with more comfort.

Quests
'Optional tasks, by completing which you earn rewards'

How to Start?
- Find a new structure in the overworld with NPC inside. Talk with him to start a quest. You will see all the information you need in the chat. Most quests have a unique start and end phrase from the npcs. Some tasks are worth reading carefully, however, the most important words are always highlighted in yellow color (e.g. required item and it's amount).
- Open the Quest Journal by pressing J (default, can be changed in key bind settings). Here you will see what type of the quest it is. Feel free to hover your cursor over the different inscriptions, they may have useful hints. You can also track your current quest with Quest Tracking Overlay by pressing K (default, can be changed in key bind settings). You will see your progress at the left side of the screen.
- Complete the task and return to the NPC. Talk with him, and he will give you a random reward, ranging from emeralds to more rare and useful items.

More About Quests
- Quest system is JSON-based, meaning it can be configured by player, or even expanded with new quests (read more about it on the bottom of this page).
- Full compatibility with multiplayer with competitive element: whoever completes the task first gets the reward.
- The quest will be stopped if NPC dies, or other player completes this quest before you, or someone use the Oblivion Potion on this NPC.
- When you start a quest or it is interrupted while there is one, you will receive a notification in chat. It is distinguished by orange or red color and square brackets.
- One quest at a time principle. You can love it or hate it, but you won't be able to complete 30 quests with similar goals from different NPCs at the same time, since it would ruin the game balance.
- The same NPC never gives out the same quests in a row. You won't gather wood for Angler's bobbers twice in a row, but that doesn't change the fact that same quest could appear often.
- If you don't like current quest, or if you want to take the quest from another NPC, just click the Refuse button in your Quest Journal. When hovering over this button, a notification will appear that you will lose your progress. This is not important for Delivery-type quests, as no one will take away your items when you cancel the quest.
- Quest Journal also exists in form of an item, if you don't like using hotkey. Crafted with 3 Paper and 1 Emerald in inventory or crafting table.
- Potion of Oblivion is a useful item, that can be used on an NPC to skip current quest and start a new one.
- If you have already achieved the required progress, then by hovering over the Return to NPC text in Quest Journal, you will see the coordinates of your last meeting.
- In Quest Journal hover the cursor over left corner of a book to see the amount of quests you've completed.
Quest Types
Quest types refer to the actions a player will need to perform to complete a quest. There are currently 8 types of working quests in-game:
- Delivery - gather required items and deliver to NPC. Note: items will be consumed.
- Crafting - craft the required items to complete the task. Note: items will stay with you.
- Hunting - kill the specified creatures. Mob variants counts (if a Spider is specified, a Cave Spider will count as well).
- Training - deal critical hits (strike while jumping or falling) to specified creatures.
- Fishing - go fishing with the use of a fishing rod.
- Building - place the required blocks to complete the task. Breaking blocks of this type will reduce progress.
- Destruction - break the required blocks to complete the task. Placing blocks of this type will reduce progress.
- Tillage - use a hoe to till the ground. Trampling the soil will reduce progress.

Quest Rarities
A quest can be one of two rarities: Common or Rare. Common Quests is what you will be doing most of the time. These have nice rewards and are mostly not difficult to complete. Rare Quests are indicated with purple color, they can be more difficult or dangerous, but the reward for these may be very good. When you start doing quests for NPCs, the first three quests will always be Common. A subsequent quest will have a rarity with a probability that depends on the player's current game progress. In multiplayer, this probability is calculated for the last player who completed a quest for that NPC. Example: You've already visited the End and are now on a quest from an Angler near your house. A friend who has no progress in this world joins your game, but he somehow manages to complete this quest before you. The rarity of the next quest for this Angler will be calculated based on friend's progress, not yours. But what are chances for rarities at different game stages?
Brand new player - First 3 qusts are always Common.
After first 3 quests: Common (95% chance), Rare (5% chance).
After finding the first Diamond - Common (90%), Rare (10%)
After visiting the Nether - Common (80%), Rare (20%)
After visiting the End - Common (70%), Rare (30%)
- Rare quests always appear more often in the current builds for the ModJam and easier testing*
Quest NPCs

Angler
'The old man who can't seem to get anything right. You wouldn't leave him without a new fishing rod, even if he broke the last two, would you?'

/locate structure realmrpg_quests:anglers
- Can be found in Angler's House near rivers. The structure is randomly generated and may be surrounded by small bridges, docks and other additional buildings to fit the terrain.
- Has 24 repeatable quests in total (15 common, 9 rare). All quests already have written text lines in-game.
- Can ask for items from other mods, if those are installed (Create, Farmer's Delight, Aquaculture, Upgrade Aquatic)
Common Quests:
- A variety of 24 simple tasks perfect for early and mid-game (e.g. the fisherman has a damaged fishing line, so he asks you to get some String for him)
Rare Quests:
- Glow Bait. The NPC asks you to get him a glowing clot that will be used to create glowing bait. You will have to find and kill the 'Turquoise glowing things that swim in the depths' in order to get it. When completing this task, the Angler will give you some glowing bait in addition to the reward, which you can use yourself. To do this, you need to take it off-hand while fishing at night, and then you will have 50% chance to get 1-3 additional fish. This item is consumable.
- Guardians. Angler reports that the Guardians have arrived. During this quest, fishing out items will cause a guardian to spawn. You must kill required amount of them to complete the quest.
- Azure Daggerfin. Catch many of these fishes. Caught anywhere (50% chance) during rain or thunderstorm, while this quest is active.
- Scarlet Grouper. Catch a strong red fish, that damages your fishing rod producing a distinctive sound. Caught anywhere (20% chance), while this quest is active.
- Thornback Flounder. Catch and deliver a spiny fish that deals 6 damage to you. Caught anywhere (25% chance), while this quest is active.
- Pearlescent Catfish. Catch and deliver a fish that can blind you for a short amount of time. Caught anywhere (25% chance) during sunny day, while this quest is active.
- Blackfin Snapper. Catch and deliver a fish that calls for the help of Phantoms. Caught anywhere (50% chance) during night, while this quest is active.
- Copperfish. You need to catch a fish that can oxidize over time (this mechanic is currently disabled). Caught anywhere (25% chance), while this quest is active.

Cook
'A supreme chef who's ready to feed everyone in the world..... if someone brings him the right ingredients, of course.'

/locate structure realmrpg_quests:cooks
- Can be found in Cook's House in plains. The structure is randomly generated and may be surrounded by roads, wheat fields, barns, houses, chicken coops, street lanterns and other additional buildings to fit the terrain.
- Has 12 repeatable quests in total (9 common, 4 rare). All quests already have written text lines in-game.
- Can ask for items from other mods, if those are installed (Farmer's Delight, Upgrade Aquatic)
Common Quests:
- A variety of 12 simple tasks perfect for early and mid-game (e.g. the Cook need some Brown Mushrooms for cooking a meal, or asks you to till the soil)
Rare Quests:
- Creeper Fruit. The cook asks you to find Creeper Fruit for him, which can be obtained by killing a Creeper exposed to sunlight. A good reason to go fight early in the morning.
- Ochre Kelp. During this quest, sea grass has a chance to drop Ochre Kelp, which the cook asks you to get.
- Velvet Truffle. Dig any blocks of earth to be able to find a Velvet Truffle and deliver it to the cook.
- Advanced Meal. Cook asks you to prepare one of the complex dishes (using a crafting table). If Farmer's Delight is installed, this task can be either easier or more difficult depending on your luck.

Monster Hunter
'A legendary hero who has defeated more than a hundred skeletons. But even he will need your help.'

/locate structure realmrpg_quests:monster_hunters
- Can be found in Monster Hunter's Tower in forests. The structure is randomly generated and may be surrounded by roads, warehouses and other additional buildings to fit the terrain.
- Has 9 repeatable quests in total (6 common, 3 rare). All quests have simplified text for now.
- Can ask for items from other mods, if those are installed (Farmer's Delight, Upgrade Aquatic)
Common Quests:
- A variety of 9 simple tasks perfect for mid and late game (e.g. kill some zombies, go for combat training and deal critical strikes to creepers, etc)
Rare Quests:
- Illager Nose. Monster Hunter talks about having old scores to settle with the Illagers. He asks you to get their noses... and you know how get these. (Any illager is suitable for the task, including Vindicator, Evoker, etc)
- Ghast. NPC asks you to defeat a Ghast.
- Blaze. NPC asks you to kill several Blazes.

Miner's House
'An underground shelter near the surface'
/locate structure realmrpg_quests:miners
- Entrance to this structure can be found on surface rarely in most grassy biomes and in desert.
- Miner NPCis currently cut from the mod and replaced with Monster Hunter.

Lumberjack's House
'A forest cabin hidden among the trees'
/locate structure realmrpg_quests:lumberjacks
- This structure can be found in forest and taiga biomes rarely.
- Lumberjack NPC is currently cut from the mod and replaced with Villager.
Other Characters

Headless Skeleton
'This Wither Skeleton seem to have lost his head. Literally.'

- Can be found in small Nether Brick Ruins alongside regular Wither Skeletons.
- He doesn't notice or attack the player. Maybe you should try to help him somehow? (There can be several consequences)

Piglin Gambler
'Absolutely non-suspicious person, driven solely by the desire to entertain the visitor (well, and earn quite a bit of gold for that)'

- For a modest fee of 1 gold ingot you can participate in his Pot Game.
- He shows you which pot the reward lies in and then stirs them in front of you.
- Choose one pot out of three and get a reward. Or make a mistake and accept the consequences (they may be different or nonexistent.)
- He's definitely not cheating. You can be sure of that.
Configs / Adding New Quests
You're probably thinking, how should I add my own quests to the game? The following will detail the knowledge required to do so.
Configs
Currently mod adds config files for quests themselves. Location at your minecraft install folder (e.g minecraft/config/realmrpg/quests/)
How it works?
Even before entering your world, the game creates json config files, if there are none at your Minecraft game folder. If config already exists, then within the game NPCs will be able to generate quests based on data from these files. For example, an Angler will have quests from the file angler.json. You can edit this file right while the game is running, but this will not affect quests that have already been generated. Only after the current task is completed, the next one will be generated based on your changes.
How does the quest look like in JSON?
This is the example of a random quest. It has Common rarity, it's id is 9. Main text is based on Angler's tackles quest. It will require a player to Deliver a random amount of candles (from 7 to 21) of random color. It will give a player loot from vanilla desert temple chest. It will award the player with 11 points of exp.
"questType_c9": "deliver",
"questText_c9": "quest.realmrpg_quests.angler.tackles",
"questRewardText_c9": "quest.realmrpg_quests.generic.reward",
"questTarget_c9": "minecraft:candles",
"questReward_c9": "minecraft:chests/desert_pyramid",
"questSpecialEvents_c9": "",
"questCustomName_c9": "",
"questTaskCustomName_c9": "",
"questTargetCustomName_c9": "",
"questTargetEnchanted_c9": false,
"questTargetMin_c9": 7,
"questTargetMax_c9": 21,
"questExp_c9": 11,
What all this means?
Each quest consists of the lines shown above. Line order does not matter, but all the lines are needed for the quest to work. At the end of each line you see the first letter of quest rarity (c or r, meaning Common and Rare), as well as a number of quest ID. This ID is important when the game chooses the next quest, and the amount of checked IDs are indicated in commonQuestCount and rareQuestCount lines (almost in the beginning of .json file).
For example, you want to add a Common Quest to the Angler. By default he has "commonQuestCount": 15 in a json file. All you need to do is copy and paste all the lines associated with quest 15 and change the numbers at the end of them to 16. Then simply change commonQuestCount to 16 (so the game will now check all the 16 possible common quests). That's it, the quest is ready! You can change the values of any lines to whatever you want.
However, If any of these lines feel complicated for you, below you can see the detailed explanation:
questType
(type of the quest depending on required player actions)
- Accepts one of values:
deliver, craft, kill, crit, build, destroy, catch, till
- You can't add your own new quest types
questText
(what the NPC will say to the player upon receiving this quest)
- Accepts any localization entry
- If localization entry contains {Target} or {Count} it will be replaced with name of quest target and the count of required action to complete the quest.
- Replacement example: "Gather {Target} and bring me {Count} pieces" = "Gather Apple and bring me 12 pieces"
- Generic text (Delivery):
quest.realmrpg_quests.generic.deliver
- Generic text (Hunting):
quest.realmrpg_quests.generic.kill
questRewardText
(what the NPC will say upon completing this quest)
- Accepts any localization entry
- Basic reward text is
quest.realmrpg_quests.generic.reward
questTarget
(what is required to complete quest)
- For Delivery and Crafting quests it's an Item Tag from which one random item will be chosen each time. Example:
minecraft:candles
- For Hunting and Training quests it's an Entity Tag from which any entity is suitable to complete the quest. Example:
minecraft:skeletons
- For Building and Destruction quests it's a Block Tag from which any block is suitable to complete the quest. Example:
minecraft:coal_ores
- For Fishing and Tillage quests the value is not important and can be left empty or set to
none
questReward
(what will be given to player who completed the quest)
- Accepts any loot table
- Example (Vanilla):
minecraft:chests/simple_dungeon
- Example (Mod):
realmrpg_quests:rewards/cook/generic
questSpecialEvents
(events and checks that happens during Rare Quests)
- Mostly hardcoded in base mod. For now it's impossibe to add custom events via configs.
- You still can make 'your versions' of current rare quests with different text, reward loot table, exp amount and etc.
- Check existing json config files and copy possible values (example from Angler:
scarlet_grouper)
- Leave empty or set to
none to make quest having Common colors.
- Insert any other value (even
blahblah) to make this quest have purple colors, like Rare one.
questCustomName
(display name of the quest in Journal)
- Accepts any localization entry. (e.g.
biome.minecraft.swamp in-game will be displayed as Swamp)
- If left empty or set to
none, it will be replaced as quest type in-game (e.g. Delivery or Hunting)
questTaskCustomName
(display name of quest Task in Journal)
- Accepts any localization entry.
- Always set this value to so
questTargetCustomName
(display name of quest Target in Journal)
- Accepts any localization entry.
- Always set this value to something in case of Hunting, Training, Destruction or Building quest to display it as a Target in quest.
questTargetEnchanted
(should the quest Target be enchanted, if it's item)
- Currently useless. Will be used future Delivery quests with enchanted items.
questTargetMin, questTargetMax
(should the quest Target be enchanted, if it's item)
- Minimum and maximum value of required actions to complete quest (kills / placed blocks / amount of items)
- Do not set Min value larger than Max value and vice versa
- Do not set these values to zero or below.
- For Delivery type quests do not set value above 64, because quest will be impossible to complete.
questExp
(how much exp is given upon finishing the quest)
- Amount of exp point in the 'reward exp orb' that npc gives to the player
- Do not set this value to zero or below.
This ModJam has given me idea to take a break away from all current projects and try my best making a small yet extraordinary mod for my RPG Series as fast as I can. Despite the fact that I could only work roughly half the time of this contest, I tried to push MCreator to its limits and have learned so many new things in modding. I hope that my project even in it's current unfinished state turned out interesting enough to stand on par with the other participants. I can't wait to check out what others have made this month!
评论 0
登录后参与评分
还没有评论,来抢沙发吧