UNPKG

minecraft-data

Version:
1,612 lines (1,611 loc) 331 kB
{ "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", "lpVec3": "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" } ] ], "vec3i32": [ "container", [ { "name": "x", "type": "i32" }, { "name": "y", "type": "i32" }, { "name": "z", "type": "i32" } ] ], "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": "use_effects", "6": "custom_name", "7": "minimum_attack_charge", "8": "damage_type", "9": "item_name", "10": "item_model", "11": "lore", "12": "rarity", "13": "enchantments", "14": "can_place_on", "15": "can_break", "16": "attribute_modifiers", "17": "custom_model_data", "18": "tooltip_display", "19": "repair_cost", "20": "creative_slot_lock", "21": "enchantment_glint_override", "22": "intangible_projectile", "23": "food", "24": "consumable", "25": "use_remainder", "26": "use_cooldown", "27": "damage_resistant", "28": "tool", "29": "weapon", "30": "attack_range", "31": "enchantable", "32": "equippable", "33": "repairable", "34": "glider", "35": "tooltip_style", "36": "death_protection", "37": "blocks_attacks", "38": "piercing_weapon", "39": "kinetic_weapon", "40": "swing_animation", "41": "stored_enchantments", "42": "dyed_color", "43": "map_color", "44": "map_id", "45": "map_decorations", "46": "map_post_processing", "47": "charged_projectiles", "48": "bundle_contents", "49": "potion_contents", "50": "potion_duration_scale", "51": "suspicious_stew_effects", "52": "writable_book_content", "53": "written_book_content", "54": "trim", "55": "debug_stick_state", "56": "entity_data", "57": "bucket_entity_data", "58": "block_entity_data", "59": "instrument", "60": "provides_trim_material", "61": "ominous_bottle_amplifier", "62": "jukebox_playable", "63": "provides_banner_patterns", "64": "recipes", "65": "lodestone_tracker", "66": "firework_explosion", "67": "fireworks", "68": "profile", "69": "note_block_sound", "70": "banner_patterns", "71": "base_color", "72": "pot_decorations", "73": "container", "74": "block_state", "75": "bees", "76": "lock", "77": "container_loot", "78": "break_sound", "79": "villager/variant", "80": "wolf/variant", "81": "wolf/sound_variant", "82": "wolf/collar", "83": "fox/variant", "84": "salmon/size", "85": "parrot/variant", "86": "tropical_fish/pattern", "87": "tropical_fish/base_color", "88": "tropical_fish/pattern_color", "89": "mooshroom/variant", "90": "rabbit/variant", "91": "pig/variant", "92": "cow/variant", "93": "chicken/variant", "94": "zombie_nautilus/variant", "95": "frog/variant", "96": "horse/variant", "97": "painting/variant", "98": "llama/variant", "99": "axolotl/variant", "100": "cat/variant", "101": "cat/collar", "102": "sheep/color", "103": "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", "use_effects": [ "container", [ { "name": "can_sprint", "type": "bool" }, { "name": "interact_vibrations", "type": "bool" }, { "name": "speed_multiplier", "type": "f32" } ] ], "custom_name": "anonymousNbt", "minimum_attack_charge": "f32", "damage_type": [ "container", [ { "name": "hasHolder", "type": "bool" }, { "name": "damageType", "type": [ "switch", { "compareTo": "hasHolder", "fields": { "true": [ "registryEntryHolder", { "baseName": "damageTypeId", "otherwise": { "name": "data", "type": "DamageTypeData" } } ], "false": "string" } } ] } ] ], "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": [ "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" } ] ], "attack_range": [ "container", [ { "name": "minRange", "type": "f32" }, { "name": "maxRange", "type": "f32" }, { "name": "minCreativeRange", "type": "f32" }, { "name": "maxCreativeRange", "type": "f32" }, { "name": "hitboxMargin", "type": "f32" }, { "name": "mobFactor", "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" } ] } ] ], "piercing_weapon": [ "container", [ { "name": "dealsKnockback", "type": "bool" }, { "name": "dismounts", "type": "bool" }, { "name": "sound", "type": [ "option", "ItemSoundHolder" ] }, { "name": "hitSound", "type": [ "option", "ItemSoundHolder" ] } ] ], "kinetic_weapon": [ "container", [ { "name": "contactCooldownTicks", "type": "varint" }, { "name": "delayTicks", "type": "varint" }, { "name": "dismountConditions", "type": [ "option", "KineticWeaponCondition" ] }, { "name": "knockbackConditions", "type": [ "option", "KineticWeaponCondition" ] }, { "name": "damageConditions", "type": [ "option", "KineticWeaponCondition" ] }, { "name": "forwardMovement", "type": "f32" }, { "name": "damageMultiplier", "type": "f32" }, { "name": "sound", "type": [ "option", "ItemSoundHolder" ] }, { "name": "hitSound", "type": [ "option", "ItemSoundHolder" ] } ] ], "swing_animation": [ "container", [ { "name": "type", "type": [ "mapper", { "type": "varint", "mappings": { "0": "none", "1": "whack", "2": "stab" } } ] }, { "name": "duration", "type": "varint" } ] ], "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": [ "container", [ { "name": "type", "type": "varint" }, { "name": "data", "type": "anonymousNbt" } ] ], "block_entity_data": [ "container", [ { "name": "type", "type": "varint" }, { "name": "data", "type": "anonymousNbt" } ] ], "bucket_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", "GlobalPos" ] }, { "name": "tracked", "type": "bool" } ] ], "firework_explosion": "ItemFireworkExplosion", "fireworks": [ "container", [ { "name": "flightDuration", "type": "varint" }, { "name": "explosions", "type": [ "array", { "countType": "varint", "type": "ItemFireworkExplosion" } ] } ] ], "profile": "ResolvableProfile", "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" } } ], "zombie_nautilus/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" }