your current location:首页 > news>Configuration file -REQ_*. JSON, the use conditions of custom objects, the killing conditions of monsters, the destructi

Configuration file -REQ_*. JSON, the use conditions of custom objects, the killing conditions of monsters, the destructi

2024-12-10 17:51:49|Myriagame |source:minecraft skins

Open the Config/PMMO folder, all of which are JSON folders, some of which are naming the beginning of "REQ_". These are configuration files that define the skills level requirements of various things.

For example: REQ_KILL.JSON defines the monster's killing conditions, req_break.json defines the damage conditions of the block, and the reQ_Tool.json defines the use of tools.Note: Before modifying JSON, you need to change the loaddefaultconfig option in the Requirements module of the PMMO-COMMON.TOML configuration file as false, otherwise the default JSON configuration file will be loaded.

The format of these REQ _*. JSON file is uniform, as shown below:

{{

"Modid: Objectid":

{{

"Skillid": Level

}

}

When there are multiple definitions:

{{

"Modid: Objectid":

{{

"Skillid": Level

},

"Modid: Objectid":

{{

"Skillid": Level, Level,

"Skillid": Level

}

}

Among them, Modid refers to the ID name of the MOD, Objectid refers to the ID of the object to be applied, Skillid refers to the skill ID, and level refers to the skill level required.

Define the killing conditions for example:

REQ_KILL.JSON file

{{

"Minecraft: Zombie":

{{

"Combat": 10

}

}

Here is a definition of combat skills to reach level 10 to kill zombies.

Example of conditional conditions for definition tools:

REQ_TOOL.JSON file

{{

"Minecraft: Diamond_pickaxe":

{{

"Mining": 40

}

}

Here is a definition of digging skills to reach 40 to use diamond picks.Mining or excavation?

Define equipment for equipment wearables:

REQ_WEAR.JSON file

{{

"Minecraft: Diamond_Boots":

{{

"Endurance": 40,

"Agility": 40

}

}

Here is a definition of level 40 tolerance and level 40 to be equipped with diamond boots.

Example of definition of square damage conditions:

REQ_BREAK.JSON file

{{

"Minecraft: Iron_ore":

{{

"Mining": 20

}

}

Here is a definition of level 20 mining skills to destroy iron ore.

After that, pushed.As for the ID names and object names of other mods, you need to find it yourself.