your current location:首页 > news>CRI Stin Lib Minecraft

CRI Stin Lib Minecraft

2024-12-15 02:14:51|Myriagame |source:minecraft skins

This lib module allows developers to use code to create configuration and data for structural creation.

For ordinary players and integrated packagers, this module can create configuration for each structural module.

For module producers, this module can create configuration for certain structures, add data packets to the game, automatically loads packets in Fabric and Forge and has inspections.

At present, this module has been used by William Wythers' Overhauled Overworkd, Towns and Towers and Terralith as a front library.

The following is the way developers create configuration files:

First create a folder. This folder is placed in the file for this module.

For the integrated package producer, it is located in the .config/Cristellib/Data in the Minecraft folder;

For module producers, it is in the module directory /data /cristellib.

In this folder, a new folder is called Structure_configs.Some configuration files can be created in this folder, which will automatically add configuration files to the required structure/module.

Example of a JSON configuration file:

 {"name": "", "subpath": "", "header": "", "config_type": "", "comments": {"anch_cities": "A dark City at the Bottom of the World "," Buried_treases.spacing ":" Set the Spacing of the Buried Treasure Structure Set "}," Struction_Sets ": [[[": ["[": [[[": [": [["[": [[[[structure_Sets ": [[[": [["[": [["[": [[[[structure_Sets ": [[[[structure_Sets": [[[[structure_Sets ": [[[": [[": [[" [": [" {"Modid": "Minecraft", "Structure_Set": ["["Minecraft: Ancient_cities "," Minecraft: Buried_treases "]}, {" Modid ":" T_AND_T "," Structure_Set ": [TOWNS_AND_TOWERS: Towers", "TOWNS_AND_TOWERS: Towns"]}]} 
The field must be added.

"Subpath" specifies the name of the subfolder folder where the configuration file is located.For example, if you fill in "Cristellib" there, the configuration file will be generated in ./config/criberllib/.

"Config_type" specified configuration item is used for ground objects or used to enable/disabled structures (enable_disable).

"Structure_Sets" needs to put every structure you want to configure in it."MODID" specifies which module should search the structure file in which module, "Structure_set" contains the ID of each structure.

Other optional fields.

"Name" change the name of the configuration file itself."Header" is a comment text on the top of the file.

"Comments" is a indicator that indicates the position of some of the comments in it.