UNPKG

minecraft-data

Version:
1,959 lines (1,958 loc) 330 kB
{ "types": { "string": [ "pstring", { "countType": "varint" } ], "ByteArray": [ "buffer", { "countType": "varint" } ], "SignedByteArray": [ "buffer", { "countType": "zigzag32" } ], "LittleString": [ "pstring", { "countType": "li32" } ], "LatinString": [ "pstring", { "countType": "varint", "encoding": "latin1" } ], "ShortArray": [ "buffer", { "countType": "li16" } ], "ShortString": [ "pstring", { "countType": "li16" } ], "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" }, { "name": "addon_pack", "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": "addon_pack", "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", "6": "spectator" } } ], "GameRule": [ "container", [ { "name": "name", "type": "string" }, { "name": "editable", "type": "bool" }, { "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" } ] ], "BlockProperties": [ "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" } ] ] } ], "ItemExtraDataWithBlockingTick": [ "container", [ { "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": "lnbt" } ] ] }, "default": "void" } ] }, { "name": "can_place_on", "type": [ "array", { "countType": "li32", "type": "ShortString" } ] }, { "name": "can_destroy", "type": [ "array", { "countType": "li32", "type": "ShortString" } ] }, { "name": "blocking_tick", "type": "li64" } ] ], "ItemExtraDataWithoutBlockingTick": [ "container", [ { "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": "lnbt" } ] ] }, "default": "void" } ] }, { "name": "can_place_on", "type": [ "array", { "countType": "li32", "type": "ShortString" } ] }, { "name": "can_destroy", "type": [ "array", { "countType": "li32", "type": "ShortString" } ] } ] ], "ItemLegacy": [ "container", [ { "name": "network_id", "type": "zigzag32" }, { "anon": true, "type": [ "switch", { "compareTo": "network_id", "fields": { "0": "void" }, "default": [ "container", [ { "name": "count", "type": "lu16" }, { "name": "metadata", "type": "varint" }, { "name": "block_runtime_id", "type": "zigzag32" }, { "name": "extra", "type": [ "switch", { "compareTo": "network_id", "fields": { "/ShieldItemID": [ "encapsulated", { "lengthType": "varint", "type": "ItemExtraDataWithBlockingTick" } ] }, "default": [ "encapsulated", { "lengthType": "varint", "type": "ItemExtraDataWithoutBlockingTick" } ] } ] } ] ] } ] } ] ], "Item": [ "container", [ { "name": "network_id", "type": "zigzag32" }, { "anon": true, "type": [ "switch", { "compareTo": "network_id", "fields": { "0": "void" }, "default": [ "container", [ { "name": "count", "type": "lu16" }, { "name": "metadata", "type": "varint" }, { "name": "has_stack_id", "type": "u8" }, { "name": "stack_id", "type": [ "switch", { "compareTo": "has_stack_id", "fields": { "0": "void" }, "default": "zigzag32" } ] }, { "name": "block_runtime_id", "type": "zigzag32" }, { "name": "extra", "type": [ "switch", { "compareTo": "network_id", "fields": { "/ShieldItemID": [ "encapsulated", { "lengthType": "varint", "type": "ItemExtraDataWithBlockingTick" } ] }, "default": [ "encapsulated", { "lengthType": "varint", "type": "ItemExtraDataWithoutBlockingTick" } ] } ] } ] ] } ] } ] ], "vec3i": [ "container", [ { "name": "x", "type": "zigzag32" }, { "name": "y", "type": "zigzag32" }, { "name": "z", "type": "zigzag32" } ] ], "vec3li": [ "container", [ { "name": "x", "type": "li32" }, { "name": "y", "type": "li32" }, { "name": "z", "type": "li32" } ] ], "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" } ] ], "Vec3fopts": [ "container", [ { "name": "x", "type": [ "option", "lf32" ] }, { "name": "y", "type": [ "option", "lf32" ] }, { "name": "z", "type": [ "option", "lf32" ] } ] ], "Vec2fopts": [ "container", [ { "name": "x", "type": [ "option", "lf32" ] }, { "name": "y", "type": [ "option", "lf32" ] } ] ], "MetadataDictionary": [ "array", { "countType": "varint", "type": [ "container", [ { "name": "key", "type": [ "mapper", { "type": "varint", "mappings": { "0": "flags", "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", "19": "horse_type", "20": "creeper_swell", "21": "creeper_swell_direction", "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": "wither_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": "rider_seat_rotation_offset", "61": "area_effect_cloud_radius", "62": "area_effect_cloud_waiting", "63": "area_effect_cloud_particle_id", "64": "shulker_peek_id", "65": "shulker_attach_face", "66": "shulker_attached", "67": "shulker_attach_pos", "68": "trading_player_eid", "69": "trading_career", "70": "has_command_block", "71": "command_block_command", "72": "command_block_last_output", "73": "command_block_track_output", "74": "controlling_rider_seat_number", "75": "strength", "76": "max_strength", "77": "evoker_spell_casting_color", "78": "limited_life", "79": "armor_stand_pose_index", "80": "ender_crystal_time_offset", "81": "always_show_nametag", "82": "color_2", "83": "name_author", "84": "score_tag", "85": "balloon_attached_entity", "86": "pufferfish_size", "87": "bubble_time", "88": "agent", "89": "sitting_amount", "90": "sitting_amount_previous", "91": "eating_counter", "92": "flags_extended", "93": "laying_amount", "94": "laying_amount_previous", "95": "area_effect_cloud_duration", "96": "area_effect_cloud_spawn_time", "97": "area_effect_cloud_change_rate", "98": "area_effect_cloud_change_on_pickup", "99": "area_effect_cloud_pickup_count", "100": "interact_text", "101": "trade_tier", "102": "max_trade_tier", "103": "trade_experience", "104": "skin_id", "105": "spawning_frames", "106": "command_block_tick_delay", "107": "command_block_execute_on_first_tick", "108": "ambient_sound_interval", "109": "ambient_sound_interval_range", "110": "ambient_sound_event_name", "111": "fall_damage_multiplier", "112": "name_raw_text", "113": "can_ride_target", "114": "low_tier_cured_discount", "115": "high_tier_cured_discount", "116": "nearby_cured_discount", "117": "nearby_cured_discount_timestamp", "118": "hitbox", "119": "is_buoyant", "120": "freezing_effect_strength", "121": "buoyancy_data", "122": "goat_horn_count", "123": "update_properties", "124": "movement_sound_distance_offset", "125": "heartbeat_interval_ticks", "126": "heartbeat_sound_event", "127": "player_last_death_position", "128": "player_last_death_dimension", "129": "player_has_died", "130": "collision_box", "131": "visible_mob_effects" } } ] }, { "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": "key", "fields": { "flags": "MetadataFlags1", "flags_extended": "MetadataFlags2" }, "default": [ "switch", { "compareTo": "type", "fields": { "byte": "i8", "short": "li16", "int": "zigzag32", "float": "lf32", "string": "string", "compound": "nbt", "vec3i": "vec3i", "long": "zigzag64", "vec3f": "vec3f" } } ] } ] } ] ] } ], "MetadataFlags1": [ "bitflags", { "type": "zigzag64", "big": true, "flags": [ "onfire", "sneaking", "riding", "sprinting", "action", "invisible", "tempted", "inlove", "saddled", "powered", "ignited", "baby", "converting", "critical", "can_show_nametag", "always_show_nametag", "no_ai", "silent", "wallclimbing", "can_climb", "swimmer", "can_fly", "walker", "resting", "sitting", "angry", "interested", "charged", "tamed", "orphaned", "leashed", "sheared", "gliding", "elder", "moving", "breathing", "chested", "stackable", "showbase", "rearing", "vibrating", "idling", "evoker_spell", "charge_attack", "wasd_controlled", "can_power_jump", "can_dash", "linger", "has_collision", "affected_by_gravity", "fire_immune", "dancing", "enchanted", "show_trident_rope", "container_private", "transforming", "spin_attack", "swimming", "bribed", "pregnant", "laying_egg", "rider_can_pick", "transition_sitting", "eating", "laying_down" ] } ], "MetadataFlags2": [ "bitflags", { "type": "zigzag64", "big": true, "flags": [ "sneezing", "trusting", "rolling", "scared", "in_scaffolding", "over_scaffolding", "fall_through_scaffolding", "blocking", "transition_blocking", "blocked_using_shield", "blocked_using_damaged_shield", "sleeping", "wants_to_wake", "trade_interest", "door_breaker", "breaking_obstruction", "door_opener", "illager_captain", "stunned", "roaring", "delayed_attacking", "avoiding_mobs", "avoiding_block", "facing_target_to_range_attack", "hidden_when_invisible", "is_in_ui", "stalking", "emoting", "celebrating", "admiring", "celebrating_special", "unknown95", "ram_attack", "playing_dead", "in_ascendable_block", "over_descendable_block", "croaking", "eat_mob", "jump_goal_jump", "emerging", "sniffing", "digging", "sonic_boom", "has_dash_cooldown", "push_towards_closest_space", "scenting", "rising", "feeling_happy", "searching", "crawling", "timer_flag_1", "timer_flag_2", "timer_flag_3", "body_rotation_blocked" ] } ], "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" }, { "name": "angular_velocity", "type": "lf32" } ] ], "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" } ] ] } ], "EntityProperties": [ "container", [ { "name": "ints", "type": [ "array", { "countType": "varint", "type": [ "container", [ { "name": "index", "type": "varint" }, { "name": "value", "type": "zigzag32" } ] ] } ] }, { "name": "floats", "type": [ "array", { "countType": "varint", "type": [ "container", [ { "name": "index", "type": "varint" }, { "name": "value", "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" }, { "name": "modifiers", "type": [ "array", { "countType": "varint", "type": [ "container", [ { "name": "id", "type": "string" }, { "name": "name", "type": "string" }, { "name": "amount", "type": "lf32" }, { "name": "operation", "type": "li32" }, { "name": "operand", "type": "li32" }, { "name": "serializable", "type": "bool" } ] ] } ] } ] ] } ], "TransactionUseItem": [ "container", [ { "name": "action_type", "type": [ "mapper", { "type": "varint", "mappings": { "0": "click_block", "1": "click_air", "2": "break_block" } } ] }, { "name": "trigger_type", "type": [ "mapper", { "type": "varint", "mappings": { "0": "unknown", "1": "player_input", "2": "simulation_tick" } } ] }, { "name": "block_position", "type": "BlockCoordinates" }, { "name": "face", "type": "zigzag32" }, { "name": "hotbar_slot", "type": "zigzag32" }, { "name": "held_item", "type": "Item" }, { "name": "player_pos", "type": "vec3f" }, { "name": "click_pos", "type": "vec3f" }, { "name": "block_runtime_id", "type": "varint" }, { "name": "client_prediction", "type": [ "mapper", { "type": "varint", "mappings": { "0": "failure", "1": "success" } } ] } ] ], "TransactionActions": [ "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": "WindowIDVarint" } ] ], "craft": [ "container", [ { "name": "action", "type": "varint" } ] ], "world_interaction": [ "container", [ { "name": "flags", "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" } ] ] } ], "TransactionLegacy": [ "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" } ] ] } ] } ] ] } ] } ] } ] ], "Transaction": [ "container", [ { "name": "legacy", "type": "TransactionLegacy" }, { "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": "actions", "type": "TransactionActions" }, { "name": "transaction_data", "type": [ "switch", { "compareTo": "transaction_type", "fields": { "normal": "void", "inventory_mismatch": "void", "item_use": "TransactionUseItem", "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" } ] ] } } ] } ] ], "ItemStacks": [ "array", { "countType": "varint", "type": "Item" } ], "RecipeIngredient": [ "container", [ { "name": "type", "type": [ "mapper", { "type": "u8", "mappings": { "0": "invalid", "1": "int_id_meta", "2": "molang", "3": "item_tag", "4": "string_id_meta", "5": "complex_alias" } } ] }, { "anon": true, "type": [ "switch", { "compareTo": "type", "fields": { "int_id_meta": [ "container", [ { "name": "network_id", "type": "li16" }, { "name": "metadata", "type": [ "switch", { "compareTo": "network_id", "fields": { "0": "void" }, "default": "li16" } ] } ] ], "molang": [ "container", [ { "name": "expression", "type": "string" }, { "name": "version", "type": "u8" } ] ], "item_tag": [ "container", [ { "name": "tag", "type": "string" } ] ], "string_id_meta": [ "container", [ { "name": "name", "type": "string" }, { "name": "metadata", "type": "li16" } ] ], "complex_alias": [ "container", [ { "name": "name", "type": "string" } ] ] } } ] }, { "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", "8": "smithing_transform", "9": "smithing_trim" } } ] }, { "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": "ItemLegacy" } ] }, { "name": "uuid", "type": "uuid" }, { "name": "block", "type": "string" }, { "name": "priority", "type": "zigzag32" }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" }, { "name": "network_id", "type": "varint" } ] ], "shulker_box": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, { "name": "input", "type": [ "array", { "countType": "varint", "type": "RecipeIngredient" } ] }, { "name": "output", "type": [ "array", { "countType": "varint", "type": "ItemLegacy" } ] }, { "name": "uuid", "type": "uuid" }, { "name": "block", "type": "string" }, { "name": "priority", "type": "zigzag32" }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" }, { "name": "network_id", "type": "varint" } ] ], "shapeless_chemistry": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, { "name": "input", "type": [ "array", { "countType": "varint", "type": "RecipeIngredient" } ] }, { "name": "output", "type": [ "array", { "countType": "varint", "type": "ItemLegacy" } ] }, { "name": "uuid", "type": "uuid" }, { "name": "block", "type": "string" }, { "name": "priority", "type": "zigzag32" }, { "name": "unlocking_requirement", "type": "RecipeUnlockingRequirement" }, { "name": "network_id", "type": "varint" } ] ], "shaped": [ "container", [ { "name": "recipe_id", "type": "LatinString" }, { "name": "width", "type": "zigzag32" },