minecraft-data
Version:
Provide easy access to minecraft data in node.js
1,853 lines • 190 kB
JSON
{
"types": {
"string": [
"pstring",
{
"countType": "varint"
}
],
"ByteArray": [
"buffer",
{
"countType": "varint"
}
],
"SignedByteArray": [
"buffer",
{
"countType": "zigzag32"
}
],
"LittleString": [
"pstring",
{
"countType": "li32"
}
],
"LatinString": [
"pstring",
{
"countType": "varint",
"encoding": "latin1"
}
],
"varint64": "native",
"zigzag32": "native",
"zigzag64": "native",
"uuid": "native",
"byterot": "native",
"bitflags": "native",
"restBuffer": "native",
"encapsulated": "native",
"nbt": "native",
"lnbt": "native",
"nbtLoop": "native",
"enum_size_based_on_values_len": "native",
"MapInfo": "native",
"BehaviourPackInfos": [
"array",
{
"countType": "li16",
"type": [
"container",
[
{
"name": "uuid",
"type": "string"
},
{
"name": "version",
"type": "string"
},
{
"name": "size",
"type": "lu64"
},
{
"name": "content_key",
"type": "string"
},
{
"name": "sub_pack_name",
"type": "string"
},
{
"name": "content_identity",
"type": "string"
},
{
"name": "has_scripts",
"type": "bool"
}
]
]
}
],
"TexturePackInfos": [
"array",
{
"countType": "li16",
"type": [
"container",
[
{
"name": "uuid",
"type": "string"
},
{
"name": "version",
"type": "string"
},
{
"name": "size",
"type": "lu64"
},
{
"name": "content_key",
"type": "string"
},
{
"name": "sub_pack_name",
"type": "string"
},
{
"name": "content_identity",
"type": "string"
},
{
"name": "has_scripts",
"type": "bool"
},
{
"name": "rtx_enabled",
"type": "bool"
}
]
]
}
],
"ResourcePackIdVersions": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "uuid",
"type": "string"
},
{
"name": "version",
"type": "string"
},
{
"name": "name",
"type": "string"
}
]
]
}
],
"ResourcePackIds": [
"array",
{
"countType": "li16",
"type": "string"
}
],
"Experiment": [
"container",
[
{
"name": "name",
"type": "string"
},
{
"name": "enabled",
"type": "bool"
}
]
],
"Experiments": [
"array",
{
"countType": "li32",
"type": "Experiment"
}
],
"GameMode": [
"mapper",
{
"type": "zigzag32",
"mappings": {
"0": "survival",
"1": "creative",
"2": "adventure",
"3": "survival_spectator",
"4": "creative_spectator",
"5": "fallback"
}
}
],
"GameRule": [
"container",
[
{
"name": "name",
"type": "string"
},
{
"name": "type",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"1": "bool",
"2": "int",
"3": "float"
}
}
]
},
{
"name": "value",
"type": [
"switch",
{
"compareTo": "type",
"fields": {
"bool": "bool",
"int": "zigzag32",
"float": "lf32"
}
}
]
}
]
],
"GameRules": [
"array",
{
"countType": "varint",
"type": "GameRule"
}
],
"Blob": [
"container",
[
{
"name": "hash",
"type": "lu64"
},
{
"name": "payload",
"type": "ByteArray"
}
]
],
"BlockPalette": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "name",
"type": "string"
},
{
"name": "state",
"type": "nbt"
}
]
]
}
],
"Itemstates": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "name",
"type": "string"
},
{
"name": "runtime_id",
"type": "li16"
},
{
"name": "component_based",
"type": "bool"
}
]
]
}
],
"Item": [
"container",
[
{
"name": "network_id",
"type": "zigzag32"
},
{
"anon": true,
"type": [
"switch",
{
"compareTo": "network_id",
"fields": {
"0": "void"
},
"default": [
"container",
[
{
"name": "auxiliary_value",
"type": "zigzag32"
},
{
"name": "has_nbt",
"type": [
"mapper",
{
"type": "lu16",
"mappings": {
"0": "false",
"65535": "true"
}
}
]
},
{
"name": "nbt",
"type": [
"switch",
{
"compareTo": "has_nbt",
"fields": {
"true": [
"container",
[
{
"name": "version",
"type": "u8"
},
{
"name": "nbt",
"type": "nbt"
}
]
]
},
"default": "void"
}
]
},
{
"name": "can_place_on",
"type": [
"array",
{
"countType": "zigzag32",
"type": "string"
}
]
},
{
"name": "can_destroy",
"type": [
"array",
{
"countType": "zigzag32",
"type": "string"
}
]
}
]
]
}
]
},
{
"anon": true,
"type": [
"switch",
{
"compareTo": "network_id",
"fields": {
"355": [
"container",
[
{
"name": "blocking_tick",
"type": "zigzag64"
}
]
]
}
}
]
}
]
],
"vec3i": [
"container",
[
{
"name": "x",
"type": "zigzag32"
},
{
"name": "y",
"type": "zigzag32"
},
{
"name": "z",
"type": "zigzag32"
}
]
],
"vec3u": [
"container",
[
{
"name": "x",
"type": "varint"
},
{
"name": "y",
"type": "varint"
},
{
"name": "z",
"type": "varint"
}
]
],
"vec3f": [
"container",
[
{
"name": "x",
"type": "lf32"
},
{
"name": "y",
"type": "lf32"
},
{
"name": "z",
"type": "lf32"
}
]
],
"vec2f": [
"container",
[
{
"name": "x",
"type": "lf32"
},
{
"name": "z",
"type": "lf32"
}
]
],
"MetadataDictionary": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "key",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "index",
"1": "health",
"2": "variant",
"3": "color",
"4": "nametag",
"5": "owner_eid",
"6": "target_eid",
"7": "air",
"8": "potion_color",
"9": "potion_ambient",
"10": "jump_duration",
"11": "hurt_time",
"12": "hurt_direction",
"13": "paddle_time_left",
"14": "paddle_time_right",
"15": "experience_value",
"16": "minecart_display_block",
"17": "minecart_display_offset",
"18": "minecart_has_display",
"20": "old_swell",
"21": "swell_dir",
"22": "charge_amount",
"23": "enderman_held_runtime_id",
"24": "entity_age",
"26": "player_flags",
"27": "player_index",
"28": "player_bed_position",
"29": "fireball_power_x",
"30": "fireball_power_y",
"31": "fireball_power_z",
"32": "aux_power",
"33": "fish_x",
"34": "fish_z",
"35": "fish_angle",
"36": "potion_aux_value",
"37": "lead_holder_eid",
"38": "scale",
"39": "interactive_tag",
"40": "npc_skin_id",
"41": "url_tag",
"42": "max_airdata_max_air",
"43": "mark_variant",
"44": "container_type",
"45": "container_base_size",
"46": "container_extra_slots_per_strength",
"47": "block_target",
"48": "wither_invulnerable_ticks",
"49": "wither_target_1",
"50": "wither_target_2",
"51": "wither_target_3",
"52": "aerial_attack",
"53": "boundingbox_width",
"54": "boundingbox_height",
"55": "fuse_length",
"56": "rider_seat_position",
"57": "rider_rotation_locked",
"58": "rider_max_rotation",
"59": "rider_min_rotation",
"60": "area_effect_cloud_radius",
"61": "area_effect_cloud_waiting",
"62": "area_effect_cloud_particle_id",
"63": "shulker_peek_id",
"64": "shulker_attach_face",
"65": "shulker_attached",
"66": "shulker_attach_pos",
"67": "trading_player_eid",
"68": "trading_career",
"69": "has_command_block",
"70": "command_block_command",
"71": "command_block_last_output",
"72": "command_block_track_output",
"73": "controlling_rider_seat_number",
"74": "strength",
"75": "max_strength",
"76": "spell_casting_color",
"77": "limited_life",
"78": "armor_stand_pose_index",
"79": "ender_crystal_time_offset",
"80": "always_show_nametag",
"81": "color_2",
"82": "name_author",
"83": "score_tag",
"84": "balloon_attached_entity",
"85": "pufferfish_size",
"86": "bubble_time",
"87": "agent",
"88": "sitting_amount",
"89": "sitting_amount_previous",
"90": "eating_counter",
"91": "flags_extended",
"92": "laying_amount",
"93": "laying_amount_previous",
"94": "duration",
"95": "spawn_time",
"96": "change_rate",
"97": "change_on_pickup",
"98": "pickup_count",
"99": "interact_text",
"100": "trade_tier",
"101": "max_trade_tier",
"102": "trade_experience",
"103": "skin_id",
"104": "spawning_frames",
"105": "command_block_tick_delay",
"106": "command_block_execute_on_first_tick",
"107": "ambient_sound_interval",
"108": "ambient_sound_interval_range",
"109": "ambient_sound_event_name",
"110": "fall_damage_multiplier",
"111": "name_raw_text",
"112": "can_ride_target",
"113": "low_tier_cured_discount",
"114": "high_tier_cured_discount",
"115": "nearby_cured_discount",
"116": "nearby_cured_discount_timestamp",
"117": "hitbox",
"118": "is_buoyant",
"119": "buoyancy_data"
}
}
]
},
{
"name": "type",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "byte",
"1": "short",
"2": "int",
"3": "float",
"4": "string",
"5": "compound",
"6": "vec3i",
"7": "long",
"8": "vec3f"
}
}
]
},
{
"name": "value",
"type": [
"switch",
{
"compareTo": "type",
"fields": {
"byte": "i8",
"short": "li16",
"int": "zigzag32",
"float": "lf32",
"string": "string",
"compound": "nbt",
"vec3i": "vec3i",
"long": "zigzag64",
"vec3f": "vec3f"
}
}
]
}
]
]
}
],
"Link": [
"container",
[
{
"name": "ridden_entity_id",
"type": "zigzag64"
},
{
"name": "rider_entity_id",
"type": "zigzag64"
},
{
"name": "type",
"type": "u8"
},
{
"name": "immediate",
"type": "bool"
},
{
"name": "rider_initiated",
"type": "bool"
}
]
],
"Links": [
"array",
{
"countType": "varint",
"type": "Link"
}
],
"EntityAttributes": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "name",
"type": "string"
},
{
"name": "min",
"type": "lf32"
},
{
"name": "value",
"type": "lf32"
},
{
"name": "max",
"type": "lf32"
}
]
]
}
],
"Rotation": [
"container",
[
{
"name": "yaw",
"type": "byterot"
},
{
"name": "pitch",
"type": "byterot"
},
{
"name": "head_yaw",
"type": "byterot"
}
]
],
"BlockCoordinates": [
"container",
[
{
"name": "x",
"type": "zigzag32"
},
{
"name": "y",
"type": "varint"
},
{
"name": "z",
"type": "zigzag32"
}
]
],
"PlayerAttributes": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "min",
"type": "lf32"
},
{
"name": "max",
"type": "lf32"
},
{
"name": "current",
"type": "lf32"
},
{
"name": "default",
"type": "lf32"
},
{
"name": "name",
"type": "string"
}
]
]
}
],
"Transaction": [
"container",
[
{
"name": "legacy_request_id",
"type": "zigzag32"
},
{
"name": "legacy_transactions",
"type": [
"switch",
{
"compareTo": "legacy_request_id",
"fields": {
"0": "void"
},
"default": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "container_id",
"type": "u8"
},
{
"name": "changed_slots",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "slot_id",
"type": "u8"
}
]
]
}
]
}
]
]
}
]
}
]
},
{
"name": "transaction_type",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "normal",
"1": "inventory_mismatch",
"2": "item_use",
"3": "item_use_on_entity",
"4": "item_release"
}
}
]
},
{
"name": "network_ids",
"type": "bool"
},
{
"name": "inventory_actions",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "source_type",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "container",
"1": "global",
"2": "world_interaction",
"3": "creative",
"100": "craft_slot",
"99999": "craft"
}
}
]
},
{
"anon": true,
"type": [
"switch",
{
"compareTo": "source_type",
"fields": {
"container": [
"container",
[
{
"name": "inventory_id",
"type": "varint"
}
]
],
"creative": [
"container",
[
{
"name": "inventory_id",
"type": "varint"
}
]
],
"world_interaction": [
"container",
[
{
"name": "flags",
"type": "varint"
}
]
],
"craft": [
"container",
[
{
"name": "action",
"type": "varint"
}
]
],
"craft_slot": [
"container",
[
{
"name": "action",
"type": "varint"
}
]
]
},
"default": "void"
}
]
},
{
"name": "slot",
"type": "varint"
},
{
"name": "old_item",
"type": "Item"
},
{
"name": "new_item",
"type": "Item"
},
{
"name": "new_item_stack_id",
"type": [
"switch",
{
"compareTo": "../network_ids",
"fields": {
"true": "zigzag32"
},
"default": "void"
}
]
}
]
]
}
]
},
{
"name": "transaction_data",
"type": [
"switch",
{
"compareTo": "transaction_type",
"fields": {
"normal": "void",
"inventory_mismatch": "void",
"item_use": [
"container",
[
{
"name": "action_type",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "click_block",
"1": "click_air",
"2": "break_block"
}
}
]
},
{
"name": "block_position",
"type": "BlockCoordinates"
},
{
"name": "face",
"type": "varint"
},
{
"name": "hotbar_slot",
"type": "varint"
},
{
"name": "held_item",
"type": "Item"
},
{
"name": "player_pos",
"type": "vec3f"
},
{
"name": "click_pos",
"type": "vec3f"
},
{
"name": "block_runtime_id",
"type": "varint"
}
]
],
"item_use_on_entity": [
"container",
[
{
"name": "entity_runtime_id",
"type": "varint64"
},
{
"name": "action_type",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "interact",
"1": "attack"
}
}
]
},
{
"name": "hotbar_slot",
"type": "zigzag32"
},
{
"name": "held_item",
"type": "Item"
},
{
"name": "player_pos",
"type": "vec3f"
},
{
"name": "click_pos",
"type": "vec3f"
}
]
],
"item_release": [
"container",
[
{
"name": "action_type",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "release",
"1": "consume"
}
}
]
},
{
"name": "hotbar_slot",
"type": "zigzag32"
},
{
"name": "held_item",
"type": "Item"
},
{
"name": "head_pos",
"type": "vec3f"
}
]
]
}
}
]
}
]
],
"ItemStack": [
"container",
[
{
"name": "runtime_id",
"type": "zigzag32"
},
{
"name": "item",
"type": "Item"
}
]
],
"ItemStacks": [
"array",
{
"countType": "varint",
"type": "ItemStack"
}
],
"RecipeIngredient": [
"container",
[
{
"name": "network_id",
"type": "zigzag32"
},
{
"anon": true,
"type": [
"switch",
{
"compareTo": "network_id",
"fields": {
"0": "void"
},
"default": [
"container",
[
{
"name": "network_data",
"type": "zigzag32"
},
{
"name": "count",
"type": "zigzag32"
}
]
]
}
]
}
]
],
"PotionTypeRecipes": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "input_item_id",
"type": "zigzag32"
},
{
"name": "input_item_meta",
"type": "zigzag32"
},
{
"name": "ingredient_id",
"type": "zigzag32"
},
{
"name": "ingredient_meta",
"type": "zigzag32"
},
{
"name": "output_item_id",
"type": "zigzag32"
},
{
"name": "output_item_meta",
"type": "zigzag32"
}
]
]
}
],
"PotionContainerChangeRecipes": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "input_item_id",
"type": "zigzag32"
},
{
"name": "ingredient_id",
"type": "zigzag32"
},
{
"name": "output_item_id",
"type": "zigzag32"
}
]
]
}
],
"Recipes": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "type",
"type": [
"mapper",
{
"type": "zigzag32",
"mappings": {
"0": "shapeless",
"1": "shaped",
"2": "furnace",
"3": "furnace_with_metadata",
"4": "multi",
"5": "shulker_box",
"6": "shapeless_chemistry",
"7": "shaped_chemistry"
}
}
]
},
{
"name": "recipe",
"type": [
"switch",
{
"compareTo": "type",
"fields": {
"shapeless": [
"container",
[
{
"name": "recipe_id",
"type": "LatinString"
},
{
"name": "input",
"type": [
"array",
{
"countType": "varint",
"type": "RecipeIngredient"
}
]
},
{
"name": "output",
"type": [
"array",
{
"countType": "varint",
"type": "Item"
}
]
},
{
"name": "uuid",
"type": "uuid"
},
{
"name": "block",
"type": "string"
},
{
"name": "priority",
"type": "zigzag32"
},
{
"name": "network_id",
"type": "zigzag32"
}
]
],
"shulker_box": [
"container",
[
{
"name": "recipe_id",
"type": "LatinString"
},
{
"name": "input",
"type": [
"array",
{
"countType": "varint",
"type": "RecipeIngredient"
}
]
},
{
"name": "output",
"type": [
"array",
{
"countType": "varint",
"type": "Item"
}
]
},
{
"name": "uuid",
"type": "uuid"
},
{
"name": "block",
"type": "string"
},
{
"name": "priority",
"type": "zigzag32"
},
{
"name": "network_id",
"type": "zigzag32"
}
]
],
"shapeless_chemistry": [
"container",
[
{
"name": "recipe_id",
"type": "LatinString"
},
{
"name": "input",
"type": [
"array",
{
"countType": "varint",
"type": "RecipeIngredient"
}
]
},
{
"name": "output",
"type": [
"array",
{
"countType": "varint",
"type": "Item"
}
]
},
{
"name": "uuid",
"type": "uuid"
},
{
"name": "block",
"type": "string"
},
{
"name": "priority",
"type": "zigzag32"
},
{
"name": "network_id",
"type": "zigzag32"
}
]
],
"shaped": [
"container",
[
{
"name": "recipe_id",
"type": "LatinString"
},
{
"name": "width",
"type": "zigzag32"
},
{
"name": "height",
"type": "zigzag32"
},
{
"name": "input",
"type": [
"array",
{
"count": "width",
"type": [
"array",
{
"count": "height",
"type": "RecipeIngredient"
}
]
}
]
},
{
"name": "output",
"type": [
"array",
{
"countType": "varint",
"type": "Item"
}
]
},
{
"name": "uuid",
"type": "uuid"
},
{
"name": "block",
"type": "string"
},
{
"name": "priority",
"type": "zigzag32"
},
{
"name": "network_id",
"type": "zigzag32"
}
]
],
"shaped_chemistry": [
"container",
[
{
"name": "recipe_id",
"type": "LatinString"
},
{
"name": "width",
"type": "zigzag32"
},
{
"name": "height",
"type": "zigzag32"
},
{
"name": "input",
"type": [
"array",
{
"count": "width",
"type": [
"array",
{
"count": "height",
"type": "RecipeIngredient"
}
]
}
]
},
{
"name": "output",
"type": [
"array",
{
"countType": "varint",
"type": "Item"
}
]
},
{
"name": "uuid",
"type": "uuid"
},
{
"name": "block",
"type": "string"
},
{
"name": "priority",
"type": "zigzag32"
},
{
"name": "network_id",
"type": "zigzag32"
}
]
],
"furnace": [
"container",
[
{
"name": "input_id",
"type": "zigzag32"
},
{
"name": "output",
"type": "Item"
},
{
"name": "block",
"type": "string"
}
]
],
"furnace_with_metadata": [
"container",
[
{
"name": "input_id",
"type": "zigzag32"
},
{
"name": "input_meta",
"type": "zigzag32"
},
{
"name": "output",
"type": "Item"
},
{
"name": "block",
"type": "string"
}
]
],
"multi": [
"container",
[
{
"name": "uuid",
"type": "uuid"
},
{
"name": "network_id",
"type": "zigzag32"
}
]
]
}
}
]
}
]
]
}
],
"SkinImage": [
"container",
[
{
"name": "width",
"type": "li32"
},
{
"name": "height",
"type": "li32"
},
{
"name": "data",
"type": "string"
}
]
],
"Skin": [
"container",
[
{
"name": "skin_id",
"type": "string"
},
{
"name": "skin_resource_pack",
"type": "string"
},
{
"name": "skin_data",
"type": "SkinImage"
},
{
"name": "animations",
"type": [
"array",
{
"countType": "li32",
"type": [
"container",
[
{
"name": "skin_image",
"type": "SkinImage"
},
{
"name": "animation_type",
"type": "li32"
},
{
"name": "animation_frames",
"type": "lf32"
},
{
"name": "expression_type",
"type": "lf32"
}
]
]
}
]
},
{
"name": "cape_data",
"type": "SkinImage"
},
{
"name": "geometry_data",
"type": "string"
},
{
"name": "animation_data",
"type": "string"
},
{
"name": "premium",
"type": "string"
},
{
"name": "persona",
"type": "bool"
},
{
"name": "cape_on_classic",
"type": "bool"
},
{
"name": "cape_id",
"type": "string"
},
{
"name": "full_skin_id",
"type": "string"
},
{
"name": "arm_size",
"type": "string"
},
{
"name": "skin_color",
"type": "string"
},
{
"name": "personal_pieces",
"type": [
"array",
{
"countType": "li32",
"type": [
"container",
[
{
"name": "piece_id",
"type": "string"
},
{
"name": "piece_type",
"type": "string"
},
{
"name": "pack_id",
"type": "string"
},
{
"name": "is_default_piece",
"type": "bool"
},
{
"name": "product_id",
"type": "string"
}
]
]
}
]
},
{
"name": "piece_tint_colors",
"type": [
"array",
{
"countType": "li32",
"type": [
"container",
[
{
"name": "piece_type",
"type": "string"
},
{
"name": "colors",
"type": [
"array",
{
"countType": "li32",
"type": "string"
}
]
}
]
]
}
]
}
]
],
"PlayerRecords": [
"container",
[
{
"name": "type",
"type": [
"mapper",
{
"type": "u8",
"mappings": {
"0": "add",
"1": "remove"
}
}
]
},
{
"name": "records_count",
"type": "varint"
},
{
"name": "records",
"type": [
"array",
{
"count": "records_count",
"type": [
"switch",
{
"compareTo": "type",
"fields": {
"add": [
"container",
[
{
"name": "uuid",
"type": "uuid"
},
{
"name": "entity_unique_id",
"type": "zigzag64"
},
{
"name": "username",
"type": "string"
},
{
"name": "xbox_user_id",
"type": "string"
},
{
"name": "platform_chat_id",
"type": "string"
},
{
"name": "build_platform",
"type": "li32"
},
{
"name": "skin_data",
"type": "Skin"
},
{
"name": "is_teacher",
"type": "bool"
},
{
"name": "is_host",
"type": "bool"
}
]
],
"remove": [
"container",
[
{
"name": "uuid",
"type": "uuid"
}
]
]
}
}
]
}
]
},
{
"name": "verified",
"type": [
"array",
{
"count": "records_count",
"type": "bool"
}
]
}
]
],
"ScoreEntries": [
"container",
[
{
"name": "type",
"type": [
"mapper",
{
"type": "u8",
"mappings": {
"0": "change",
"1": "remove"
}
}
]
},
{
"name": "entries",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "scoreboard_id",
"type": "zigzag64"
},
{
"name": "objective_name",
"type": "string"
},
{
"name": "score",
"type": "li32"
},
{
"anon": true,
"type": [
"switch",
{
"compareTo": "type",
"fields": {
"remove": [
"container",
[
{
"name": "entry_