your current location:首页 > news>Methods for custom tasks, adjustment of configuration files, and rare tasks to acquire the items required by the items r

Methods for custom tasks, adjustment of configuration files, and rare tasks to acquire the items required by the items r

2024-12-10 17:58:00|Myriagame |source:minecraft skins

Overview

Most of the content of this tutorial corresponds to the translation of the original author's required items & configuration file/ custom task method listed in the original post.question;

(The folding part of the Configs / Adding New Quests in the original post);

The number of items required for most tasks is not fixed, so this tutorial will not mention the content of the number of items related to the delivery;

Names such as no exact translation of items will not be translated.

Precautions

If there is a specific item that requires killing creatures in the rare task: this kind of item can only fall from (killed) creatures during the period of rare tasks;

(The same type of task is the same, the corresponding product will only appear during the period of acceptance);

Some tasks will require players to be completed within the specified game day!Need to pay attention!

Angler's rare task

Types Types Mission Objective Delivery

Kill the squid to get Glow Clot

Fishing in Azure Daggerfin;

50% probability when fishing on rainy days

Fishing scarlet group;

Under any conditions, there is a 20% probability of getting fishing

Successful fishing will immediately consume a lot of durability in the fishing rod

Fishing Thornback Flounder;

Under any conditions, there is a 25% probability of getting fishing

Successful fishing will cause 6 points to players ( ) damage

Fishing to pearlescent catfish;

Under any conditions, there is a 25% probability of getting fishing

Successful fishing this fish will make the player get blind effect for several seconds

Fishing in Blackfin Snapper;

A fish that may attract fantasy wings

There is a 50% probability of getting fishing at night

Copperfish

Just like a copper block, fish that will continue to oxidize with time (default)

Under any conditions, there is a 25% probability of getting fishing

-Hunting

During this task period:

After the player successfully caught the item with the fishing rod, the player has a probability of generating guardians

Killing therefore the guardian, it is enough

Cook's rare task

Types Types task target Delivery)

If you are afraid of killing in the sun, you can get Creeper FRUIT to destroy the seaweed (not kelp) to get Ochre Kelp to destroy any soil.

Make random dishes that need more complicated materials

Compatible with farmers: make the task difficult to become more unstable

Monster Hunter's rare task

Types Types Mission Objective Delivery

Killing any original disaster villagers will have a probability to obtain

Illager nose

-Hunting

Kill a evil soul and kill a few flames

How to customize / add new tasks

You can find the JSON file that determines the normal operation of each NPC task (Minecraft/Config/Realmrpg/Quests/);

For example, all the tasks contained in Angler are determined by angler.json.

You can edit this file during the operation of the game: this change will not affect the generated tasks that have been generated; only after the current task is completed, this file will generate the next task based on your changes.

Mission example

This is an example with a certain random task:

Each task is composed of each row in the following example (one line is not allowed), and its arrangement order can be disrupted.

Rare degree ID Quote Language text Requirement items Reward items Reward experience Ordinary 9quest.reamrpg_quests.angler.turches

7 ~ 21

Candle

Quote

Desert Temple Templar Template Watch

At 11 o'clock "questtype_c9": "deliver",

"Questtext_c9": "quest.realmrpg_quests.angler.tackles",, "

"Questrewardtext_c9": "quest.realmrpg_quests.gneric.reward",,

"Questtarget_c9": "Minecraft: Candles", "Minecraft: Candles",

"Questreward_c9": "Minecraft: chests/desert_pyramid",, "

"Questspecialevents_c9": "", "",,,

"QuestcustomName_c9": "", "",,,

"QuesttaskCustomname_c9": "", "",,,,

"QuesttargetCustomname_c9": "", "",,,,

"Questtargetenchant_c9": false, false,

"Questtargetmin_c9": 7, 7,

"QuesttargetMax_c9": 21,

"Quastexp_c9": 11,

Task Rareness & Mission ID

There will be a lowercase letter + a combination of a number at the end of each line (such as C9 in the above example);

The rare task is determined by the lowercase letters (C = normal, R = rare), and the task ID is determined by the numbers that follow the letters (every row involved in a mission must have consistent values);

*Example: If you want to add 16 ordinary tasks to Angler, you can copy all the task entries in the C15 in the JSON file and change the C15 to C16;

Then, you can refer to the following content and change the content of non -peers according to your needs.

The underlying logic of different lines

Questtype: Determine the behavior (task type) required by the player in this task, and can only select one of the categories from the 8 categories in the following 8 categories;

deliver

Delivery item CRAFT

Production item Kill Hunting and Hunter Crit

Try to cause crit damage to specific creatures

(Jump) Build

Construction and placing block Destroy

Destroy the damage block Catch

Fishing rod fishing till cultivation effect hoe cultivated land

questtext: What will NPC say when delivering the player task;

Compatible with any localized file (cited in the corresponding JSON entry in the language file); if the voice file contains {target} & {count}, they will automatically replace the name of the task type & complete the number required for the task;

*Example: "Gather {target} and bring me {count} pieces" = "gather apple and bring me 12 pieces"

GM (Delivery): quest.realmrpg_quests.gneric.deliver

General text (hunting class): quest.realmrpg_quests.gneric.kill

Questrewardtext: Determine what NPC will say after the player completes the task;

Compatible with any localization file (in -line citations in the corresponding JSON entry in the language file);

GM (reward class): quest.realmrpg_quests.gneric.reward

questtarget: What do you need to complete the task

specified

Types type < / th> The ID < / th> delivery / making item ID / tag

Example: Minecraft: Candles Hunting / Trial Biological ID / Tag

Example: Minecraft: Skeletons Construction / Destroy Block ID / Tag

Example: Minecraft: COAL_ORES fishing / farming can be left without filling without filling

questreward: What will I get?

Compatible with any original / from other MODs

Example (Original Tables): Minecraft: Chests/SIMPLE_DUNGEON

Example (MOD Table): Realmrpg_quests: Rewards/Cook/GENERIC

Questspecialevents: Check events in rare tasks;

Notice!Because all new events are implemented hard coding!Therefore, players are currently unable to design new events through configuration files!

You can still use different texts, rewarding items / experience values, etc. to make "your elaborate rare tasks";

Or copy the existing event items in the existing JSON file to your new task (such as the Scarlet_grouper event in Angler);

Leave this value / set this value to NONE, this task will have white marking with the same task as ordinary tasks;

Set this value to Blahblah to mark it in the same purple (can also be changed to other colors according to this).

QuestcustomName: The main title displayed in the task log in the task log;

Compatible with any localized file (citations in the corresponding JSON entry in the language file);

If this value is left short, the name of the type of task is automatically displayed (delivered, hunting, etc.);

QuesttaskCustomName: The subtitle displayed in the task log in the task log;

Compatible with any localization file (in -line citations in the corresponding JSON entry in the language file);

Example: GUI.RealmRPG_QUESTS.TASK_ACTION_CATCH_SUNNY_DAY

QuesttargetCustomname: The name displayed in the task log in the task log;

Compatible with any localization file (in -line citations in the corresponding JSON entry in the language file);

In the task of hunting, trial, construction, and destruction, this value will be fixed as the original target specified by the task.

QuesttarGetenchanted: Whether to accept magic attachment items as the task goal;

As of MOD 0.1.1: No effect, follow -up will allow players to deliver magic items in the delivery task;

Questtargetmin & QuesttargetMax: The maximum value / minimum value of the amount required for this task (range range);

Please set this value in conjunction with the maximum stacked quantity of the item (because each delivery task can only be delivered one set of items, do not set the impossible task of 17 last shadow pearls);

questexp: The experience value that can be obtained by this task (point);

This value cannot be set to 0.