minecraft-data
Version:
Provide easy access to minecraft data in node.js
1,672 lines (1,671 loc) • 255 kB
JSON
{
"types": {
"varint": "native",
"varlong": "native",
"optvarint": "varint",
"pstring": "native",
"buffer": "native",
"u8": "native",
"u16": "native",
"u32": "native",
"u64": "native",
"i8": "native",
"i16": "native",
"i32": "native",
"i64": "native",
"bool": "native",
"f32": "native",
"f64": "native",
"UUID": "native",
"option": "native",
"entityMetadataLoop": "native",
"topBitSetTerminatedArray": "native",
"bitfield": "native",
"container": "native",
"switch": "native",
"void": "native",
"array": "native",
"restBuffer": "native",
"anonymousNbt": "native",
"anonOptionalNbt": "native",
"arrayWithLengthOffset": "native",
"ByteArray": [
"buffer",
{
"countType": "varint"
}
],
"string": [
"pstring",
{
"countType": "varint"
}
],
"vec3f": [
"container",
[
{
"name": "x",
"type": "f32"
},
{
"name": "y",
"type": "f32"
},
{
"name": "z",
"type": "f32"
}
]
],
"vec4f": [
"container",
[
{
"name": "x",
"type": "f32"
},
{
"name": "y",
"type": "f32"
},
{
"name": "z",
"type": "f32"
},
{
"name": "w",
"type": "f32"
}
]
],
"vec3f64": [
"container",
[
{
"name": "x",
"type": "f64"
},
{
"name": "y",
"type": "f64"
},
{
"name": "z",
"type": "f64"
}
]
],
"SlotComponentType": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "custom_data",
"1": "max_stack_size",
"2": "max_damage",
"3": "damage",
"4": "unbreakable",
"5": "custom_name",
"6": "item_name",
"7": "lore",
"8": "rarity",
"9": "enchantments",
"10": "can_place_on",
"11": "can_break",
"12": "attribute_modifiers",
"13": "custom_model_data",
"14": "hide_additional_tooltip",
"15": "hide_tooltip",
"16": "repair_cost",
"17": "creative_slot_lock",
"18": "enchantment_glint_override",
"19": "intangible_projectile",
"20": "food",
"21": "fire_resistant",
"22": "tool",
"23": "stored_enchantments",
"24": "dyed_color",
"25": "map_color",
"26": "map_id",
"27": "map_decorations",
"28": "map_post_processing",
"29": "charged_projectiles",
"30": "bundle_contents",
"31": "potion_contents",
"32": "suspicious_stew_effects",
"33": "writable_book_content",
"34": "written_book_content",
"35": "trim",
"36": "debug_stick_state",
"37": "entity_data",
"38": "bucket_entity_data",
"39": "block_entity_data",
"40": "instrument",
"41": "ominous_bottle_amplifier",
"42": "recipes",
"43": "lodestone_tracker",
"44": "firework_explosion",
"45": "fireworks",
"46": "profile",
"47": "note_block_sound",
"48": "banner_patterns",
"49": "base_color",
"50": "pot_decorations",
"51": "container",
"52": "block_state",
"53": "bees",
"54": "lock",
"55": "container_loot"
}
}
],
"SlotComponent": [
"container",
[
{
"name": "type",
"type": "SlotComponentType"
},
{
"name": "data",
"type": [
"switch",
{
"compareTo": "type",
"fields": {
"custom_data": "anonymousNbt",
"max_stack_size": "varint",
"max_damage": "varint",
"damage": "varint",
"unbreakable": "bool",
"custom_name": "anonymousNbt",
"item_name": "anonymousNbt",
"lore": [
"array",
{
"countType": "varint",
"type": "anonOptionalNbt"
}
],
"rarity": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "common",
"1": "uncommon",
"2": "rare",
"3": "epic"
}
}
],
"enchantments": [
"container",
[
{
"name": "enchantments",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "id",
"type": "varint"
},
{
"name": "level",
"type": "varint"
}
]
]
}
]
},
{
"name": "showTooltip",
"type": "bool"
}
]
],
"can_place_on": [
"container",
[
{
"name": "predicates",
"type": [
"array",
{
"countType": "varint",
"type": "BlockPredicate"
}
]
},
{
"name": "showTooltip",
"type": "bool"
}
]
],
"can_break": [
"container",
[
{
"name": "predicates",
"type": [
"array",
{
"countType": "varint",
"type": "BlockPredicate"
}
]
},
{
"name": "showTooltip",
"type": "bool"
}
]
],
"attribute_modifiers": [
"container",
[
{
"name": "attributes",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "typeId",
"type": "varint"
},
{
"name": "uniqueId",
"type": "UUID"
},
{
"name": "name",
"type": "string"
},
{
"name": "value",
"type": "f64"
},
{
"name": "operation",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "add",
"1": "multiply_base",
"2": "multiply_total"
}
}
]
},
{
"name": "slot",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "any",
"1": "main_hand",
"2": "off_hand",
"3": "hand",
"4": "feet",
"5": "legs",
"6": "chest",
"7": "head",
"8": "armor",
"9": "body"
}
}
]
}
]
]
}
]
},
{
"name": "showTooltip",
"type": "bool"
}
]
],
"custom_model_data": "varint",
"hide_additional_tooltip": "void",
"hide_tooltip": "void",
"repair_cost": "varint",
"creative_slot_lock": "void",
"enchantment_glint_override": "bool",
"intangible_projectile": "void",
"food": [
"container",
[
{
"name": "nutrition",
"type": "varint"
},
{
"name": "saturationModifier",
"type": "f32"
},
{
"name": "canAlwaysEat",
"type": "bool"
},
{
"name": "secondsToEat",
"type": "f32"
},
{
"name": "usingConvertsTo",
"type": "Slot"
},
{
"name": "effects",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "effect",
"type": "varint"
},
{
"name": "probability",
"type": "f32"
}
]
]
}
]
}
]
],
"fire_resistant": "void",
"tool": [
"container",
[
{
"name": "rules",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "blocks",
"type": [
"array",
{
"countType": "varint",
"type": "BlockSet"
}
]
},
{
"name": "hasSpeed",
"type": "bool"
},
{
"name": "speed",
"type": "f32"
},
{
"name": "hasCorrectDropForBlocks",
"type": "bool"
},
{
"name": "correctDropForBlocks",
"type": "bool"
}
]
]
}
]
},
{
"name": "defaultMiningSpeed",
"type": "f32"
},
{
"name": "damagePerBlock",
"type": "varint"
}
]
],
"stored_enchantments": [
"container",
[
{
"name": "enchantments",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "id",
"type": "varint"
},
{
"name": "level",
"type": "varint"
}
]
]
}
]
},
{
"name": "showInTooltip",
"type": "bool"
}
]
],
"dyed_color": [
"container",
[
{
"name": "color",
"type": "varint"
},
{
"name": "showTooltip",
"type": "bool"
}
]
],
"map_color": "varint",
"map_id": "varint",
"map_decorations": "anonOptionalNbt",
"map_post_processing": "varint",
"charged_projectiles": [
"container",
[
{
"name": "projectiles",
"type": [
"array",
{
"countType": "varint",
"type": "Slot"
}
]
}
]
],
"bundle_contents": [
"container",
[
{
"name": "contents",
"type": [
"array",
{
"countType": "varint",
"type": "Slot"
}
]
}
]
],
"potion_contents": [
"container",
[
{
"name": "hasPotionId",
"type": "bool"
},
{
"name": "potionId",
"type": "optvarint"
},
{
"name": "hasCustomColor",
"type": "bool"
},
{
"name": "customColor",
"type": "optvarint"
},
{
"name": "customEffects",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "effect",
"type": "varint"
},
{
"name": "details",
"type": "EffectDetail"
}
]
]
}
]
}
]
],
"suspicious_stew_effects": [
"container",
[
{
"name": "effects",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "effect",
"type": "varint"
},
{
"name": "duration",
"type": "varint"
}
]
]
}
]
}
]
],
"writable_book_content": [
"container",
[
{
"name": "pages",
"type": [
"array",
{
"countType": "varint",
"type": "BookPage"
}
]
}
]
],
"written_book_content": [
"container",
[
{
"name": "rawTitle",
"type": "string"
},
{
"name": "filteredTitle",
"type": [
"option",
"string"
]
},
{
"name": "author",
"type": "string"
},
{
"name": "generation",
"type": "varint"
},
{
"name": "pages",
"type": [
"array",
{
"countType": "varint",
"type": "BookPage"
}
]
},
{
"name": "resolved",
"type": "bool"
}
]
],
"trim": [
"container",
[
{
"name": "materialType",
"type": "varint"
},
{
"anon": true,
"type": [
"switch",
{
"compareTo": "materialType",
"fields": {
"0": [
"container",
[
{
"name": "assetName",
"type": "string"
},
{
"name": "ingredientId",
"type": "varint"
},
{
"name": "itemModelIndex",
"type": "f32"
},
{
"name": "numberOfOverrides",
"type": "optvarint"
},
{
"name": "override",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "armorMaterialType",
"type": "varint"
},
{
"name": "overridenAssetName",
"type": "string"
}
]
]
}
]
},
{
"name": "description",
"type": "string"
}
]
]
}
}
]
},
{
"name": "trimPatternType",
"type": "varint"
},
{
"anon": true,
"type": [
"switch",
{
"compareTo": "trimPatternType",
"fields": {
"0": [
"container",
[
{
"name": "assetName",
"type": "string"
},
{
"name": "templateItem",
"type": "varint"
},
{
"name": "description",
"type": "string"
},
{
"name": "decal",
"type": "bool"
}
]
]
}
}
]
},
{
"name": "showInTooltip",
"type": "bool"
}
]
],
"debug_stick_state": "anonymousNbt",
"entity_data": "anonymousNbt",
"bucket_entity_data": "anonymousNbt",
"block_entity_data": "anonymousNbt",
"instrument": [
"container",
[
{
"name": "instrumentType",
"type": "varint"
},
{
"anon": true,
"type": [
"switch",
{
"compareTo": "instrumentType",
"fields": {
"0": [
"container",
[
{
"name": "soundEvent",
"type": "string"
},
{
"name": "useDuration",
"type": "f32"
},
{
"name": "range",
"type": "f32"
}
]
]
}
}
]
}
]
],
"ominous_bottle_amplifier": "varint",
"recipes": "anonymousNbt",
"lodestone_tracker": [
"container",
[
{
"name": "globalPosition",
"type": [
"option",
[
"container",
[
{
"name": "dimension",
"type": "string"
},
{
"name": "position",
"type": "vec3f"
}
]
]
]
},
{
"name": "tracked",
"type": "bool"
}
]
],
"firework_explosion": "FireworkExplosion",
"fireworks": [
"container",
[
{
"name": "flightDuration",
"type": "varint"
},
{
"name": "explosions",
"type": [
"array",
{
"countType": "varint",
"type": "FireworkExplosion"
}
]
}
]
],
"profile": [
"container",
[
{
"name": "hasName",
"type": "bool"
},
{
"name": "name",
"type": "string"
},
{
"name": "hasUniqueId",
"type": "bool"
},
{
"name": "uniqueId",
"type": "UUID"
},
{
"name": "properties",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "property",
"type": "string"
},
{
"name": "value",
"type": "string"
},
{
"name": "hasSignature",
"type": "bool"
},
{
"name": "signature",
"type": "string"
}
]
]
}
]
}
]
],
"note_block_sound": "string",
"banner_patterns": [
"container",
[
{
"name": "layers",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "patternType",
"type": "varint"
},
{
"anon": true,
"type": [
"switch",
{
"compareTo": "patternType",
"fields": {
"0": [
"container",
[
{
"name": "assetId",
"type": "string"
},
{
"name": "translationKey",
"type": "string"
}
]
]
}
}
]
},
{
"name": "color",
"type": "varint"
}
]
]
}
]
}
]
],
"base_color": "varint",
"pot_decorations": [
"container",
[
{
"name": "decorations",
"type": [
"array",
{
"countType": "varint",
"type": "varint"
}
]
}
]
],
"container": [
"container",
[
{
"name": "contents",
"type": [
"array",
{
"countType": "varint",
"type": "Slot"
}
]
}
]
],
"block_state": [
"container",
[
{
"name": "properties",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "property",
"type": "string"
},
{
"name": "value",
"type": "string"
}
]
]
}
]
}
]
],
"bees": [
"container",
[
{
"name": "bees",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "nbtData",
"type": "anonymousNbt"
},
{
"name": "ticksInHive",
"type": "varint"
},
{
"name": "minTicksInHive",
"type": "varint"
}
]
]
}
]
}
]
],
"lock": "anonymousNbt",
"container_loot": "anonymousNbt"
}
}
]
}
]
],
"Slot": [
"container",
[
{
"name": "itemCount",
"type": "i8"
},
{
"anon": true,
"type": [
"switch",
{
"compareTo": "itemCount",
"fields": {
"0": "void"
},
"default": [
"container",
[
{
"name": "itemId",
"type": "varint"
},
{
"name": "addedComponentCount",
"type": "varint"
},
{
"name": "removedComponentCount",
"type": "varint"
},
{
"name": "components",
"type": [
"array",
{
"count": "addedComponentCount",
"type": "SlotComponent"
}
]
},
{
"name": "removeComponents",
"type": [
"array",
{
"count": "removedComponentCount",
"type": [
"container",
[
{
"name": "type",
"type": "SlotComponentType"
}
]
]
}
]
}
]
]
}
]
}
]
],
"FireworkExplosion": [
"container",
[
{
"name": "shape",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "small_ball",
"1": "large_ball",
"2": "star",
"3": "creeper",
"4": "burst"
}
}
]
},
{
"name": "colors",
"type": [
"array",
{
"countType": "varint",
"type": "i32"
}
]
},
{
"name": "fadeColors",
"type": [
"array",
{
"countType": "varint",
"type": "i32"
}
]
},
{
"name": "hasTrail",
"type": "bool"
},
{
"name": "hasTwinkle",
"type": "bool"
}
]
],
"BookPage": [
"container",
[
{
"name": "content",
"type": "string"
},
{
"name": "filteredContent",
"type": [
"option",
"string"
]
}
]
],
"EffectDetail": [
"container",
[
{
"name": "amplifier",
"type": "varint"
},
{
"name": "duration",
"type": "varint"
},
{
"name": "ambient",
"type": "bool"
},
{
"name": "showParticles",
"type": "bool"
},
{
"name": "showIcon",
"type": "bool"
},
{
"name": "hiddenEffect",
"type": [
"option",
"EffectDetail"
]
}
]
],
"BlockSet": [
"container",
[
{
"name": "type",
"type": "varint"
},
{
"name": "name",
"type": [
"switch",
{
"compareTo": "type",
"fields": {
"0": "string"
},
"default": "void"
}
]
},
{
"name": "blockIds",
"type": [
"switch",
{
"compareTo": "type",
"fields": {
"0": "void"
},
"default": [
"arrayWithLengthOffset",
{
"count": "type",
"type": "varint",
"lengthOffset": -1
}
]
}
]
}
]
],
"BlockProperty": [
"container",
[
{
"name": "name",
"type": "string"
},
{
"name": "isExactMatch",
"type": "bool"
},
{
"name": "exactValue",
"type": [
"option",
"string"
]
},
{
"name": "minValue",
"type": [
"option",
"string"
]
},
{
"name": "maxValue",
"type": [
"option",
"string"
]
}
]
],
"BlockPredicate": [
"container",
[
{
"name": "blockSet",
"type": [
"option",
[
"array",
{
"countType": "varint",
"type": "BlockSet"
}
]
]
},
{
"name": "properties",
"type": [
"option",
[
"array",
{
"countType": "varint",
"type": "BlockProperty"
}
]
]
},
{
"name": "nbt",
"type": "anonOptionalNbt"
}
]
],
"Particle": [
"container",
[
{
"name": "type",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "angry_villager",
"1": "block",
"2": "block_marker",
"3": "bubble",
"4": "cloud",
"5": "crit",
"6": "damage_indicator",
"7": "dragon_breath",
"8": "dripping_lava",
"9": "falling_lava",
"10": "landing_lava",
"11": "dripping_water",
"12": "falling_water",
"13": "dust",
"14": "dust_color_transition",
"15": "effect",
"16": "elder_guardian",
"17": "enchanted_hit",
"18": "enchant",
"19": "end_rod",
"20": "entity_effect",
"21": "explosion_emitter",
"22": "explosion",
"23": "gust",
"24": "small_gust",
"25": "gust_emitter_large",
"26": "gust_emitter_small",
"27": "sonic_boom",
"28": "falling_dust",
"29": "firework",
"30": "fishing",
"31": "flame",
"32": "infested",
"33": "cherry_leaves",
"34": "sculk_soul",
"35": "sculk_charge",
"36": "sculk_charge_pop",
"37": "soul_fire_flame",
"38": "soul",
"39": "flash",
"40": "happy_villager",
"41": "composter",
"42": "heart",
"43": "instant_effect",
"44": "item",
"45": "vibration",
"46": "item_slime",
"47": "item_cobweb",
"48": "item_snowball",
"49": "large_smoke",
"50": "lava",
"51": "mycelium",
"52": "note",
"53": "poof",
"54": "portal",
"55": "rain",
"56": "smoke",
"57": "white_smoke",
"58": "sneeze",
"59": "spit",
"60": "squid_ink",
"61": "sweep_attack",
"62": "totem_of_undying",
"63": "underwater",
"64": "splash",
"65": "witch",
"66": "bubble_pop",
"67": "current_down",
"68": "bubble_column_up",
"69": "nautilus",
"70": "dolphin",
"71": "campfire_cosy_smoke",
"72": "campfire_signal_smoke",
"73": "dripping_honey",
"74": "falling_honey",
"75": "landing_honey",
"76": "falling_nectar",
"77": "falling_spore_blossom",
"78": "ash",
"79": "crimson_spore",
"80": "warped_spore",
"81": "spore_blossom_air",
"82": "dripping_obsidian_tear",
"83": "falling_obsidian_tear",
"84": "landing_obsidian_tear",
"85": "reverse_portal",
"86": "white_ash",
"87": "small_flame",
"88": "snowflake",
"89": "dripping_dripstone_lava",
"90": "falling_dripstone_lava",
"91": "dripping_dripstone_water",
"92": "falling_dripstone_water",
"93": "glow_squid_ink",
"94": "glow",
"95": "wax_on",
"96": "wax_off",
"97": "electric_spark",
"98": "scrape",
"99": "shriek",
"100": "egg_crack",
"101": "dust_plume",
"102": "trial_spawner_detected_player",
"103": "trial_spawner_detected_player_ominous",
"104": "vault_connection",
"105": "dust_pillar",
"106": "ominous_spawning",
"107": "raid_omen",
"108": "trial_omen"
}
}
]
},
{
"name": "data",
"type": [
"switch",
{
"compareTo": "type",
"fields": {
"block": "varint",
"block_marker": "varint",
"falling_dust": "varint",
"dust_pillar": "varint",
"dust": [
"container",
[
{
"name": "red",
"type": "f32"
},
{
"name": "green",
"type": "f32"
},
{
"name": "blue",
"type": "f32"
},
{
"name": "scale",
"type": "f32"
}
]
],
"dust_color_transition": [
"container",
[
{
"name": "fromRed",
"type": "f32"
},
{
"name": "fromGreen",
"type": "f32"
},
{
"name": "fromBlue",
"type": "f32"
},
{
"name": "scale",
"type": "f32"
},
{
"name": "toRed",
"type": "f32"
},
{
"name": "toGreen",
"type": "f32"
},
{
"name": "toBlue",
"type": "f32"
}
]
],
"entity_effect": "i32",
"item": "Slot",
"sculk_charge": "f32",
"shriek": "varint",
"vibration": [
"container",
[
{
"name": "position",
"type": "string"
},
{
"name": "entityId",
"type": "varint"
}
]
]
}
}
]
}
]
],
"ingredient": [
"array",
{
"countType": "varint",
"type": "Slot"
}
],
"position": [
"bitfield",
[
{
"name": "x",
"size": 26,
"signed": true
},
{
"name": "z",
"size": 26,
"signed": true
},
{
"name": "y",
"size": 12,
"signed": true
}
]
],
"soundSource": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "master",
"1": "music",
"2": "record",
"3": "weather",
"4": "block",
"5": "hostile",
"6": "neutral",
"7": "player",
"8": "ambient",
"9": "voice"
}
}
],
"packedChunkPos": [
"container",
[
{
"name": "z",
"type": "i32"
},
{
"name": "x",
"type": "i32"
}
]
],
"previousMessages": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "id",
"type": "varint"
},
{
"name": "signature",
"type": [
"switch",
{
"compareTo": "id",
"fields": {
"0": [
"buffer",
{
"count": 256
}
]
},
"default": "void"
}
]
}
]
]
}
],
"entityMetadataEntry": [
"container",
[
{
"name": "key",
"type": "u8"
},
{
"name": "type",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "byte",
"1": "int",
"2": "long",
"3": "float",
"4": "string",
"5": "component",
"6": "optional_component",
"7": "item_stack",
"8": "boolean",
"9": "rotations",
"10": "block_pos",
"11": "optional_block_pos",
"12": "direction",
"13": "optional_uuid",
"14": "block_state",
"15": "optional_block_state",
"16": "compound_tag",
"17": "particle",
"18": "particles",
"19": "villager_data",
"20": "optional_unsigned_int",
"21": "pose",
"22": "cat_variant",
"23": "wolf_variant",
"24": "frog_variant",
"25": "optional_global_pos",
"26": "painting_variant",
"27": "sniffer_state",
"28": "armadillo_state",