your current location:首页 > news>Export data format [RR] recipe rendering (recipe render) Minecraft Game

Export data format [RR] recipe rendering (recipe render) Minecraft Game

2024-12-05 23:06:05|Myriagame |source:minecraft skins

This tutorial is set by the author to use the CC By-NC-SA protocol.

Note: This tutorial is best to review and recite the full text by batch import tool developers.

Clear: If the following content is not specified, the default refers to Minecraft 1.20.1 version

Will ensure that all the data versions exported under all MINECRAFT versions are the same,

When a data version is not used by any version, it is deleted


Export notes

Exported by recipe renderr v2.2.10,

Targetmod mincrapt@1.20.1,

Environment Minecraft@1.20.1+Fabric@0.14.22

Note: The lower line is a variable area

The reason for adding annotations: In order to facilitate the webmaster obtained an authoritative introduction information from the export packet without providing detailed information.


item.jsons

Version item_v4

 {{

"ID": Path -type string, the registration name of the item,

"EN": String, name in the English environment,

"Zh": string, name in the Chinese environment,

"TABS": Name string, the name in the Chinese environment of the item bar of the item,

"Tags": Seveled path -type string,

"Stacksize": integer, maximum stacked quantity, must not be stacked to 0,

"Durability": integer, the durability of this item is 0 durability,

"Nut": integer, full food, 20 is 10 chicken legs,

"SAT": Floating point, saturation, 20.0 is 10 golden chicken legs (apple skin MOD),

"ICO32": String, 32X pictures, when there is a reference for the "##'prefix era, otherwise it will be a picture64 encoding picture,

"ICO128": String, picture of 128X, when there is a reference of the "##'prefix era, otherwise it will be a picture 64 encoded picture

}

Instance

 {"ID": "Minecraft: Painting", "EN": "Painting", "zh": "painting", "tabs": "[function block],"tags ": []", "Stacksize": 64, "Durability": 0,

"Nut": 0, "SAT": 0.0, "ICO32": "#Attachment/ico32/Painting_1.png", "ICO128": "#Attachment/ico128/Painting_1.png"}


Entity.jsons

Version Entity_V2

 {{

"ID": Path -type string, the registered name of the entity, "EN": string, name in the English environment, name in the English environment,

"Zh": string, name in the Chinese environment,

"ICO128": String, picture of 128X, when the "##'prefix era is referenced, otherwise it will be a picture64 encoding picture,

"ICO32": String, 32X picture, when there is a reference for the "##'prefix era, otherwise it will be a picture of Base64

}

Example:

 {"ID": "Minecraft: Ender_dragon", "zh": "End", "EN": "ENDER DRAGON",

"ICO128": "#Attachment/Entity/Ender_dragon.png", "ICO32": "#Attachment/Entity32/Ender_dragon.png"}

enchantment.jsons


Version enchantment_v1

 {{

"ID": path -type string, the registered name of the enchantment,

"EN": String, name in the English environment,

"Zh": string, name in the Chinese environment,

"SUPPORT": Extract -type string, the type of items supported by the enchanting, see the table below

"Min": integer, enchanting level lower limit,

"Max": integer, enchanting level limit

}

Review of value comments on Armor_feet Boot Bow Bow Armor_Legs Legy WEARABLE wearable (including armor, spleen, skull) Armor_chest chestbow cross crossbow Armor_head helmet Vanishable disappear curses A RMOR's full set of armor can be found_rop fishing rodDigger ax, hoe, pick, 锹

weapon sword

Trident Trident

Breakable has durability items

Example:

 {"ID": "Minecraft: Sharpness", "EN": "Sharpness", "ZH": "sharp", "suport": "weapon", "min":1, "max": 5} 

Due to the update of the data packet, the module cannot obtain the specific type from the code because the data packet is updated.

 {{

"ID": path -type string, the registered name of the enchantment,

"EN": String, name in the English environment, "zh": string, name in the Chinese environment,

"Min": integer, enchanting level lower limit,

"Max": integer, enchanting level limit

}

effect.jsons

Version Effect_v1


 {{

"ID": Path -type string, registration name of this effect,

"EN": String, name in the English environment,

"Zh": string, name in the Chinese environment,

"ICO": String, when there is a reference of the "#" prefix era, otherwise it will be a picture of Base64 encoding

}

Example:

 {"id": "minecraft: poison", "en": "point", "zh": "poison", "ico": "#Attachment/effect/poison.png "} 

biome.jsons

Version biome_v1


 {{

"ID": path -type string, the registration name of the biological group,

"Name": string, English name calculated based on the algorithm

}

Because the i18N value of the biological group is not stored in MC, its name cannot be obtained.

Example: Plain

 {"ID": "Minecraft: Plains", "name": "plains"} 

Dimension.jsons

Version dimension_v1


 {{

"ID": Path -type string, the registered name of this dimension,

"Name": string, English name calculated based on the algorithm

}

Because the I18N value of the dimension is not stored in MC, its name cannot be obtained.

Example:

 {"id": "minecraft: the_end", "name": "the end"} 

recipe.jsons

There is no fixed format, but there must be a key "Type" in JSON corresponding to a path -type string, which can correspond to an analytical rule.


Recipe_types/*. Java (only below 1.21) Due to the update of 1.21 data packets, CODEC is uniformly used for codecs.

/recipe_types/Directory will exist in a file corresponding to this value (the colon is replaced with a downwalk line, the suffix is ​​".java"), which is used to referenceThis file is the derivative class of the recipe after the compilation, and the use method and key name can be judged preliminary according to the FROMJSON method and key name in the dee -sequentialization class.However, due to the reasons of counter -compilation, but due to confusion, the exported results will be unsatisfactory, especially when the original type is exported, it is basically unavailable, but it can be used as an extremely authoritative reference material.

The gap between the export of the development environment and the distribution environment

The back -sequentialization class of the module under the distribution environment

Worldly Export

The exported file is a JSONObject

There must be the following keys


 {{

"Format_version": integer, export tool version number,

"Minecraft_version": String, Minecraft Version Number

... ...

}

Version V1

 {{

"Format_version": 1,

"Minecraft_version": ...

"Dimension": Path -type string, the registered name of this dimension,

"SAMPLE": integer, number of sampling blocks,

"ENTRIES": [[

{// This is a single entry

"ID": path string, registered name, registered name,

"Where": See the following where format,

},

Elastic

]

}

where format

The value of where is a string type, consisting of multiple entries.A single entry consists of the following format, and the tail is ended by the segment.The number of layers is arranged from small to large.When the intermediate default layer counts, the default probability is 0.

 Y layer (integer): probability (single floating point number, unit:%, range: [0F, 100F]);