minecraft-data
Version:
Provide easy access to minecraft data in node.js
1,685 lines • 289 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",
"bitflags": "native",
"container": "native",
"switch": "native",
"void": "native",
"array": "native",
"restBuffer": "native",
"anonymousNbt": "native",
"anonOptionalNbt": "native",
"registryEntryHolder": "native",
"registryEntryHolderSet": "native",
"ByteArray": [
"buffer",
{
"countType": "varint"
}
],
"string": [
"pstring",
{
"countType": "varint"
}
],
"vec2f": [
"container",
[
{
"name": "x",
"type": "f32"
},
{
"name": "y",
"type": "f32"
}
]
],
"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"
}
]
],
"vec3i": [
"container",
[
{
"name": "x",
"type": "varint"
},
{
"name": "y",
"type": "varint"
},
{
"name": "z",
"type": "varint"
}
]
],
"IDSet": [
"registryEntryHolderSet",
{
"base": {
"name": "name",
"type": "string"
},
"otherwise": {
"name": "ids",
"type": "varint"
}
}
],
"ContainerID": "varint",
"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": "item_model",
"8": "lore",
"9": "rarity",
"10": "enchantments",
"11": "can_place_on",
"12": "can_break",
"13": "attribute_modifiers",
"14": "custom_model_data",
"15": "tooltip_display",
"16": "repair_cost",
"17": "creative_slot_lock",
"18": "enchantment_glint_override",
"19": "intangible_projectile",
"20": "food",
"21": "consumable",
"22": "use_remainder",
"23": "use_cooldown",
"24": "damage_resistant",
"25": "tool",
"26": "weapon",
"27": "enchantable",
"28": "equippable",
"29": "repairable",
"30": "glider",
"31": "tooltip_style",
"32": "death_protection",
"33": "blocks_attacks",
"34": "stored_enchantments",
"35": "dyed_color",
"36": "map_color",
"37": "map_id",
"38": "map_decorations",
"39": "map_post_processing",
"40": "potion_duration_scale",
"41": "charged_projectiles",
"42": "bundle_contents",
"43": "potion_contents",
"44": "suspicious_stew_effects",
"45": "writable_book_content",
"46": "written_book_content",
"47": "trim",
"48": "debug_stick_state",
"49": "entity_data",
"50": "bucket_entity_data",
"51": "block_entity_data",
"52": "instrument",
"53": "provides_trim_material",
"54": "ominous_bottle_amplifier",
"55": "jukebox_playable",
"56": "provides_banner_patterns",
"57": "recipes",
"58": "lodestone_tracker",
"59": "firework_explosion",
"60": "fireworks",
"61": "profile",
"62": "note_block_sound",
"63": "banner_patterns",
"64": "base_color",
"65": "pot_decorations",
"66": "container",
"67": "block_state",
"68": "bees",
"69": "lock",
"70": "container_loot",
"71": "break_sound",
"72": "villager/variant",
"73": "wolf/variant",
"74": "wolf/sound_variant",
"75": "wolf/collar",
"76": "fox/variant",
"77": "salmon/size",
"78": "parrot/variant",
"79": "tropical_fish/pattern",
"80": "tropical_fish/base_color",
"81": "tropical_fish/pattern_color",
"82": "mooshroom/variant",
"83": "rabbit/variant",
"84": "pig/variant",
"85": "cow/variant",
"86": "chicken/variant",
"87": "frog/variant",
"88": "horse/variant",
"89": "painting/variant",
"90": "llama/variant",
"91": "axolotl/variant",
"92": "cat/variant",
"93": "cat/collar",
"94": "sheep/color",
"95": "shulker/color"
}
}
],
"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": "void",
"custom_name": "anonymousNbt",
"item_name": "anonymousNbt",
"item_model": "string",
"lore": [
"array",
{
"countType": "varint",
"type": "anonymousNbt"
}
],
"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"
}
]
]
}
]
}
]
],
"stored_enchantments": [
"container",
[
{
"name": "enchantments",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "id",
"type": "varint"
},
{
"name": "level",
"type": "varint"
}
]
]
}
]
}
]
],
"can_place_on": [
"container",
[
{
"name": "predicates",
"type": [
"array",
{
"countType": "varint",
"type": "ItemBlockPredicate"
}
]
}
]
],
"can_break": [
"container",
[
{
"name": "predicates",
"type": [
"array",
{
"countType": "varint",
"type": "ItemBlockPredicate"
}
]
}
]
],
"attribute_modifiers": [
"container",
[
{
"name": "attributes",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "typeId",
"type": "varint"
},
{
"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",
"10": "saddle"
}
}
]
}
]
]
}
]
},
{
"name": "display",
"type": [
"container",
[
{
"name": "type",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "default",
"1": "hidden",
"2": "override"
}
}
]
},
{
"name": "component",
"type": [
"switch",
{
"compareTo": "type",
"fields": {
"override": "anonymousNbt"
}
}
]
}
]
]
}
]
],
"custom_model_data": [
"container",
[
{
"name": "floats",
"type": [
"array",
{
"countType": "varint",
"type": "f32"
}
]
},
{
"name": "flags",
"type": [
"array",
{
"countType": "varint",
"type": "bool"
}
]
},
{
"name": "strings",
"type": [
"array",
{
"countType": "varint",
"type": "string"
}
]
},
{
"name": "colors",
"type": [
"array",
{
"countType": "varint",
"type": "i32"
}
]
}
]
],
"tooltip_display": [
"container",
[
{
"name": "hideTooltip",
"type": "bool"
},
{
"name": "hiddenComponents",
"type": [
"array",
{
"countType": "varint",
"type": "varint"
}
]
}
]
],
"repair_cost": "varint",
"creative_slot_lock": "void",
"enchantment_glint_override": "bool",
"intangible_projectile": "void",
"blocks_attacks": [
"container",
[
{
"name": "blockDelaySeconds",
"type": "f32"
},
{
"name": "disableCooldownScale",
"type": "f32"
},
{
"name": "damageReductions",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "horizontalBlockingAngle",
"type": "f32"
},
{
"name": "type",
"type": [
"option",
"IDSet"
]
},
{
"name": "base",
"type": "f32"
},
{
"name": "factor",
"type": "f32"
}
]
]
}
]
},
{
"name": "itemDamage",
"type": [
"container",
[
{
"name": "threshold",
"type": "f32"
},
{
"name": "base",
"type": "f32"
},
{
"name": "factor",
"type": "f32"
}
]
]
},
{
"name": "bypassedBy",
"type": [
"option",
"string"
]
},
{
"name": "blockSound",
"type": [
"option",
"ItemSoundHolder"
]
},
{
"name": "disableSound",
"type": [
"option",
"ItemSoundHolder"
]
}
]
],
"food": [
"container",
[
{
"name": "nutrition",
"type": "varint"
},
{
"name": "saturationModifier",
"type": "f32"
},
{
"name": "canAlwaysEat",
"type": "bool"
}
]
],
"consumable": [
"container",
[
{
"name": "consume_seconds",
"type": "f32"
},
{
"name": "animation",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "none",
"1": "eat",
"2": "drink",
"3": "block",
"4": "bow",
"5": "spear",
"6": "crossbow",
"7": "spyglass",
"8": "toot_horn",
"9": "brush",
"10": "bundle"
}
}
]
},
{
"name": "sound",
"type": "ItemSoundHolder"
},
{
"name": "makes_particles",
"type": "bool"
},
{
"name": "effects",
"type": [
"array",
{
"countType": "varint",
"type": "ItemConsumeEffect"
}
]
}
]
],
"use_remainder": "Slot",
"use_cooldown": [
"container",
[
{
"name": "seconds",
"type": "f32"
},
{
"name": "cooldownGroup",
"type": [
"option",
"string"
]
}
]
],
"damage_resistant": "string",
"tool": [
"container",
[
{
"name": "rules",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "blocks",
"type": "IDSet"
},
{
"name": "speed",
"type": [
"option",
"f32"
]
},
{
"name": "correctDropForBlocks",
"type": [
"option",
"bool"
]
}
]
]
}
]
},
{
"name": "defaultMiningSpeed",
"type": "f32"
},
{
"name": "damagePerBlock",
"type": "varint"
},
{
"name": "canDestroyBlocksInCreative",
"type": "bool"
}
]
],
"weapon": [
"container",
[
{
"name": "itemDamagePerAttack",
"type": "varint"
},
{
"name": "disableBlockingForSeconds",
"type": "f32"
}
]
],
"enchantable": "varint",
"equippable": [
"container",
[
{
"name": "slot",
"type": [
"mapper",
{
"type": "varint",
"mappings": {
"0": "main_hand",
"1": "off_hand",
"2": "feet",
"3": "legs",
"4": "chest",
"5": "head",
"6": "body",
"7": "saddle"
}
}
]
},
{
"name": "sound",
"type": "ItemSoundHolder"
},
{
"name": "model",
"type": [
"option",
"string"
]
},
{
"name": "cameraOverlay",
"type": [
"option",
"string"
]
},
{
"name": "allowedEntities",
"type": [
"option",
"IDSet"
]
},
{
"name": "dispensable",
"type": "bool"
},
{
"name": "swappable",
"type": "bool"
},
{
"name": "damageable",
"type": "bool"
},
{
"name": "equipOnInteract",
"type": "bool"
},
{
"name": "shearable",
"type": "bool"
},
{
"name": "shearingSound",
"type": "ItemSoundHolder"
}
]
],
"repairable": [
"container",
[
{
"name": "items",
"type": "IDSet"
}
]
],
"glider": "void",
"tooltip_style": "string",
"death_protection": [
"container",
[
{
"name": "effects",
"type": [
"array",
{
"countType": "varint",
"type": "ItemConsumeEffect"
}
]
}
]
],
"dyed_color": "i32",
"map_color": "i32",
"map_id": "varint",
"map_decorations": "anonymousNbt",
"map_post_processing": "varint",
"potion_duration_scale": "f32",
"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": "potionId",
"type": [
"option",
"varint"
]
},
{
"name": "customColor",
"type": [
"option",
"i32"
]
},
{
"name": "customEffects",
"type": [
"array",
{
"countType": "varint",
"type": "ItemPotionEffect"
}
]
},
{
"name": "customName",
"type": [
"option",
"string"
]
}
]
],
"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": "ItemBookPage"
}
]
}
]
],
"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": "ItemWrittenBookPage"
}
]
},
{
"name": "resolved",
"type": "bool"
}
]
],
"trim": [
"container",
[
{
"name": "material",
"type": [
"registryEntryHolder",
{
"baseName": "materialId",
"otherwise": {
"name": "data",
"type": "ArmorTrimMaterial"
}
}
]
},
{
"name": "pattern",
"type": [
"registryEntryHolder",
{
"baseName": "patternId",
"otherwise": {
"name": "data",
"type": "ArmorTrimPattern"
}
}
]
}
]
],
"debug_stick_state": "anonymousNbt",
"entity_data": "anonymousNbt",
"bucket_entity_data": "anonymousNbt",
"block_entity_data": "anonymousNbt",
"instrument": [
"container",
[
{
"name": "hasHolder",
"type": "bool"
},
{
"name": "data",
"type": [
"switch",
{
"compareTo": "hasHolder",
"fields": {
"true": [
"registryEntryHolder",
{
"baseName": "instrumentId",
"otherwise": {
"name": "data",
"type": "InstrumentData"
}
}
],
"false": "string"
}
}
]
}
]
],
"provides_trim_material": [
"container",
[
{
"name": "hasHolder",
"type": "bool"
},
{
"name": "material",
"type": [
"switch",
{
"compareTo": "hasHolder",
"fields": {
"true": [
"registryEntryHolder",
{
"baseName": "materialId",
"otherwise": {
"name": "data",
"type": "ArmorTrimMaterial"
}
}
],
"false": "string"
}
}
]
}
]
],
"ominous_bottle_amplifier": "varint",
"jukebox_playable": [
"container",
[
{
"name": "hasHolder",
"type": "bool"
},
{
"name": "song",
"type": [
"switch",
{
"compareTo": "hasHolder",
"fields": {
"true": [
"registryEntryHolder",
{
"baseName": "songId",
"otherwise": {
"name": "data",
"type": "JukeboxSongData"
}
}
],
"false": "string"
}
}
]
}
]
],
"provides_banner_patterns": "string",
"recipes": "anonymousNbt",
"lodestone_tracker": [
"container",
[
{
"name": "globalPosition",
"type": [
"option",
[
"container",
[
{
"name": "dimension",
"type": "string"
},
{
"name": "position",
"type": "position"
}
]
]
]
},
{
"name": "tracked",
"type": "bool"
}
]
],
"firework_explosion": "ItemFireworkExplosion",
"fireworks": [
"container",
[
{
"name": "flightDuration",
"type": "varint"
},
{
"name": "explosions",
"type": [
"array",
{
"countType": "varint",
"type": "ItemFireworkExplosion"
}
]
}
]
],
"profile": [
"container",
[
{
"name": "name",
"type": [
"option",
"string"
]
},
{
"name": "uuid",
"type": [
"option",
"UUID"
]
},
{
"name": "properties",
"type": [
"array",
{
"countType": "varint",
"type": [
"container",
[
{
"name": "name",
"type": "string"
},
{
"name": "value",
"type": "string"
},
{
"name": "signature",
"type": [
"option",
"string"
]
}
]
]
}
]
}
]
],
"note_block_sound": "string",
"banner_patterns": [
"container",
[
{
"name": "layers",
"type": [
"array",
{
"countType": "varint",
"type": "BannerPatternLayer"
}
]
}
]
],
"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": "name",
"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",
"break_sound": "ItemSoundHolder",
"villager/variant": "varint",
"wolf/variant": "varint",
"wolf/sound_variant": "varint",
"wolf/collar": "varint",
"fox/variant": "varint",
"salmon/size": "varint",
"parrot/variant": "varint",
"tropical_fish/pattern": "varint",
"tropical_fish/base_color": "varint",
"tropical_fish/pattern_color": "varint",
"mooshroom/variant": "varint",
"rabbit/variant": "varint",
"pig/variant": "varint",
"cow/variant": "varint",
"chicken/variant": [
"registryEntryHolder",
{
"baseName": "variantId",
"otherwise": {
"name": "variantData",
"type": "string"
}
}
],
"frog/variant": "varint",
"horse/variant": "varint",
"painting/variant": [
"registryEntryHolder",
{
"baseName": "variantId",
"otherwise": {
"name": "data",
"type": "EntityMetadataPaintingVariant"
}
}
],
"llama/variant": "varint",
"axolotl/variant": "varint",
"cat/variant": "varint",
"cat/collar": "varint",
"sheep/color": "varint",
"shulker/color": "varint"
}
}
]
}
]
],
"ItemSoundEvent": [
"container",
[
{
"name": "soundName",
"type": "string"
},
{
"name": "fixedRange",
"type": [
"option",
"f32"
]
}
]
],
"ItemSoundHolder": [
"registryEntryHolder",
{
"baseName": "soundId",
"otherwise": {
"name": "data",
"type": "ItemSoundEvent"
}
}
],
"ItemFireworkExplosion": [
"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"
}
]
],
"ItemEffectDetail": [
"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",
"ItemEffectDetail"
]
}
]
],
"ItemPotionEffect": [
"container",
[
{
"name": "id",
"type": "varint"
},
{
"name": "details",
"type": "ItemEffectDetail"
}
]
],
"ItemBlockProperty": [
"container",
[
{
"name": "name",
"type": "string"
},
{
"name": "isExactMatch",
"type": "bool"
},
{
"name": "value",
"type": [
"switch",
{
"compareTo": "isExactMatch",
"fields": {
"true": [
"container",
[
{
"name": "exactValue",
"type": "string"
}
]
],
"false": [
"container",
[
{
"name": "minValue",
"type": "string"
},
{
"name": "maxValue",
"type": "string"
}
]
]
}
}
]
}
]
],
"ExactComponentMatcher": [
"array",
{
"countType": "varint",
"type": "SlotComponent"
}
],
"DataComponentMatchers": [
"container",
[
{
"name": "exactMatchers",
"type": "ExactComponentMatcher"
},
{
"name": "partialMatchers",
"type": [
"array",
{
"countType": "varint",
"type": "varint"
}
]
}
]
],
"ItemBlockPredicate": [
"container",
[
{
"name": "blockSet",
"type": [
"option",
[
"registryEntryHolderSet",
{
"base": {
"name": "name",
"type": "string"
},
"otherwise": {
"name": "blockIds",
"type": "varint"
}
}
]
]
},
{
"name": "properties",
"type": [
"option",
[
"array",
{
"countType": "varint",
"type": "ItemBlockProperty"
}
]
]
},
{
"name": "nbt",
"type": "anonOptionalNbt"
},
{
"name": "components",
"type": "DataComponentMatchers"
}
]
],
"ItemBookPage": [
"container",
[
{
"name": "content",
"type": "string"
},
{
"name": "filteredContent",
"type": [
"option",
"string"
]
}
]
],
"ItemWrittenBookPage": [
"container",
[
{
"name": "content",
"type": "anonymousNbt"
},
{
"name": "filteredContent",
"type": "anonOptionalNbt"
}
]
],
"ItemConsumeEffect": [
"container",
[
{
"name": "type",
"type": [
"mapper",
{
"ty