Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Blocks Extractor

Guillaume R edited this page Apr 21, 2018 · 1 revision

The blocks extractor is activated with the --blocks option. It generates two JSON files that describe the blocks of the requested game version:

  • blocks_classic_ids.json
  • blocks_full_ids.json

Classic ids

Each line contains a JSON object representing a block. The blocks variants are not saved, for instance there is only one type of wool: the basic one.

Example:

{"numeric_id": 1, "string_id": "minecraft:stone", "nice_name": "Stone", "is_transparent": false, "is_flammable": false, "is_renewable": true, "luminance": 0, "hardness": 1.5, "blast_resistance": 30.0, "max_stack": 64, "tool": "pickaxe"}

Full ids

Each line contains a JSON representing a block. The block variants are saved as different blocks. Each block is given a "full id", calculated with full_id = numeric_id << 4 | minecraft_metadata.

Example:

{"numeric_id": 91, "string_id": "minecraft:lit_pumpkin$0", "nice_name": "minecraft:lit_pumpkin, Jack o'lantern facing south", "is_transparent": false, "is_flammable": false, "is_renewable": true, "luminance": 0, "hardness": 1.0, "blast_resistance": 5.0, "max_stack": 64, "tool": "axe", "full_id": 1456}
{"numeric_id": 91, "string_id": "minecraft:lit_pumpkin$1", "nice_name": "minecraft:lit_pumpkin, Jack o'lantern facing west", "is_transparent": false, "is_flammable": false, "is_renewable": true, "luminance": 0, "hardness": 1.0, "blast_resistance": 5.0, "max_stack": 64, "tool": "axe", "full_id": 1457}
{"numeric_id": 91, "string_id": "minecraft:lit_pumpkin$2", "nice_name": "minecraft:lit_pumpkin, Jack o'lantern facing north", "is_transparent": false, "is_flammable": false, "is_renewable": true, "luminance": 0, "hardness": 1.0, "blast_resistance": 5.0, "max_stack": 64, "tool": "axe", "full_id": 1458}
{"numeric_id": 91, "string_id": "minecraft:lit_pumpkin$3", "nice_name": "minecraft:lit_pumpkin, Jack o'lantern facing east", "is_transparent": false, "is_flammable": false, "is_renewable": true, "luminance": 0, "hardness": 1.0, "blast_resistance": 5.0, "max_stack": 64, "tool": "axe", "full_id": 1459}
Clone this wiki locally