your current location:首页 > news>What is the use of Minecraft packet?

What is the use of Minecraft packet?

2024-12-17 06:01:03|Myriagame |source:minecraft skins

Articles directory

This feature is unique to the Java version.

The Data Pack system provides a new way for players to further customize its Minecraft experience.Datrays can be used to cover or add new progress, dimensions, functions, functions, loot tables, predicate words, formulas, structures and labels without any code modification.

Behavior

The packet can be placed in the world's .minecraft/saves//DataPacks folder.The packet can be a subfolder or .zip file in the datapacks folder.After putting it in the folder, the data packet will be enabled for the world when loading or reloading the world.

The data packet will load its data in the order of loading.This sequence is stored in the level.dat, and you can view or modify through the /datapack command.

Content folder structure

(Data Package Name) Pack.mcmetapack.pngdata Advancements (Surgery Name) .jsonfunctions (Function name) .mcfunctionLoot_tables (Table name) .jsonpredicates ) .jsonStructures (structural name) .nbtRecipes (formula name) .jsonitem_modifiers (name modifier name) .jsontagsblocks (Tag Name) .jsonEntity_Types (Tag name) .jsonitems .jsonfluids .jsonFunctions (label name) .jsondishness_type (dimensional type name) .jsondimension (dimensional name) .jsonworldGen biome (生物群系).jsonconfigured_carver(雕刻器).jsonconfigured_feature(地物).json Configured_Struction_feature (Structural features) .json Configured_surface_builder (surface generator) .json noise_settings (noise settings) .json processor_list (square processor) .json Template_pool (Puzzle pool) .json
Data can also have multiple different (Name space) Directory.

Pack.mcmeta

When a Pack.mcmeta file containing the data of JSON format data in the root directory can be recognized as a packet by Minecraft.

: Root object.PACK: Storage of data packet information.Pack_format: Data packet version.If this value does not match the demand value, this data packet will display warnings, and it needs to be confirmed when loading.This value in 17W43A-17W47B is 3 , this value is 4 at 1.13 (17W48A)-1.14.4 (19W46B), at 1.15 (1.15-PRE1)-1.16.1 (1.16.2-PRE3) This value is 5 , and this value is 6 at 1.16.2 (1.16.2-RC1)-1.16.5 (20W45A), which is 6 .This value at 1.17 (20W46A)-1.17.1 (1.18-EXP7) is 7 , and this value is 8 at 1.18 (21W37A and above).Description: a primitive json text.Under the data packet list, when the cursor moves to the corresponding packet, the description is displayed here.

1.18.1 PACK.MCMETA file in the original packet::

{"Pack": {"PACK_FORMAT": 8, "Description": "The Default Data for Minecraft"}}

data

One or more "naming space" directory is stored in this directory.The following folders can be included in the "Naming Space" directory: Advancements , Dimension , Dimension_type , Functions , , > Loot_tables , Predicates , Structures , Recipes and Tags .The naming space is used to distinguish data, and the name of the name only recognizes the - and _ .In order to prevent conflicts between packets, it is recommended to try not to use the same name space when making data packets.At the same time, only when you want to cover the original data, you can use the Minecraft as a data packet.Progress, functions, loot tables, predicate, structure, formula, and label files can be placed directly into the corresponding folder. Of course, it is also allowed to be allowed and recognizable in the sub -folder under the corresponding folder.

Packet template

File structure of the original data packet:

Pack.mcmeta (Required) Pack.pngdatamineCraftadaDVANTSLOOT_TABLECIPESSTRUTURUTURUTURUTURUTURESTAGS