UNPKG

minecraft-data

Version:
1,757 lines (1,756 loc) 259 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", "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" } ] ], "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": "hide_additional_tooltip", "16": "hide_tooltip", "17": "repair_cost", "18": "creative_slot_lock", "19": "enchantment_glint_override", "20": "intangible_projectile", "21": "food", "22": "consumable", "23": "use_remainder", "24": "use_cooldown", "25": "damage_resistant", "26": "tool", "27": "enchantable", "28": "equippable", "29": "repairable", "30": "glider", "31": "tooltip_style", "32": "death_protection", "33": "stored_enchantments", "34": "dyed_color", "35": "map_color", "36": "map_id", "37": "map_decorations", "38": "map_post_processing", "39": "charged_projectiles", "40": "bundle_contents", "41": "potion_contents", "42": "suspicious_stew_effects", "43": "writable_book_content", "44": "written_book_content", "45": "trim", "46": "debug_stick_state", "47": "entity_data", "48": "bucket_entity_data", "49": "block_entity_data", "50": "instrument", "51": "ominous_bottle_amplifier", "52": "jukebox_playable", "53": "recipes", "54": "lodestone_tracker", "55": "firework_explosion", "56": "fireworks", "57": "profile", "58": "note_block_sound", "59": "banner_patterns", "60": "base_color", "61": "pot_decorations", "62": "container", "63": "block_state", "64": "bees", "65": "lock", "66": "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", "item_model": "string", "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": "ItemBlockPredicate" } ] }, { "name": "showTooltip", "type": "bool" } ] ], "can_break": [ "container", [ { "name": "predicates", "type": [ "array", { "countType": "varint", "type": "ItemBlockPredicate" } ] }, { "name": "showTooltip", "type": "bool" } ] ], "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" } } ] } ] ] } ] }, { "name": "showTooltip", "type": "bool" } ] ], "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" } ] } ] ], "hide_additional_tooltip": "void", "hide_tooltip": "void", "repair_cost": "varint", "creative_slot_lock": "void", "enchantment_glint_override": "bool", "intangible_projectile": "anonymousNbt", "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" } } ] }, { "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" } ] ], "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" } } ] }, { "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" } ] ], "repairable": [ "container", [ { "name": "items", "type": "IDSet" } ] ], "glider": "void", "tooltip_style": "string", "death_protection": [ "container", [ { "name": "effects", "type": [ "array", { "countType": "varint", "type": "ItemConsumeEffect" } ] } ] ], "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": "i32" }, { "name": "showTooltip", "type": "bool" } ] ], "map_color": "i32", "map_id": "varint", "map_decorations": "anonymousNbt", "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": "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" } } ] }, { "name": "showInTooltip", "type": "bool" } ] ], "debug_stick_state": "anonymousNbt", "entity_data": "anonymousNbt", "bucket_entity_data": "anonymousNbt", "block_entity_data": "anonymousNbt", "instrument": [ "registryEntryHolder", { "baseName": "instrumentId", "otherwise": { "name": "data", "type": "InstrumentData" } } ], "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" } } ] }, { "name": "showInTooltip", "type": "bool" } ] ], "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" } } ] } ] ], "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" } ] ] } } ] } ] ], "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" } ] ], "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", { "type": "varint", "mappings": { "0": "apply_effects", "1": "remove_effects", "2": "clear_all_effects", "3": "teleport_randomly", "4": "play_sound" } } ] }, { "anon": true, "type": [ "switch", { "compareTo": "type", "fields": { "apply_effects": [ "container", [ { "name": "effects", "type": [ "array", { "countType": "varint", "type": "ItemPotionEffect" } ] }, { "name": "probability", "type": "f32" } ] ], "remove_effects": [ "container", [ { "name": "effects", "type": "IDSet" } ] ], "clear_all_effects": "void", "teleport_randomly": [ "container", [ { "name": "diameter", "type": "f32" } ] ], "play_sound": [ "container", [ { "name": "sound", "type": "ItemSoundHolder" } ] ] } } ] } ] ], "ArmorTrimMaterial": [ "container", [ { "name": "assetName", "type": "string" }, { "name": "ingredientId", "type": "varint" }, { "name": "overrideArmorAssets", "type": [ "array", { "countType": "varint", "type": [ "container", [ { "name": "key", "type": "string" }, { "name": "value", "type": "string" } ] ] } ] }, { "name": "description", "type": "anonymousNbt" } ] ], "ArmorTrimPattern": [ "container", [ { "name": "assetId", "type": "string" }, { "name": "templateItemId", "type": "varint" }, { "name": "description", "type": "anonymousNbt" }, { "name": "decal", "type": "bool" } ] ], "InstrumentData": [ "container", [ { "name": "soundEvent", "type": "ItemSoundHolder" }, { "name": "useDuration", "type": "f32" }, { "name": "range", "type": "f32" }, { "name": "description", "type": "anonymousNbt" } ] ], "JukeboxSongData": [ "container", [ { "name": "soundEvent", "type": "ItemSoundHolder" }, { "name": "description", "type": "anonymousNbt" }, { "name": "lengthInSeconds", "type": "f32" }, { "name": "comparatorOutput", "type": "varint" } ] ], "BannerPattern": [ "container", [ { "name": "assetId", "type": "string" }, { "name": "translationKey", "type": "string" } ] ], "BannerPatternLayer": [ "container", [ { "name": "pattern", "type": "ItemSoundHolder" }, { "name": "colorId", "type": "varint" } ] ], "Slot": [ "container", [ { "name": "itemCount", "type": "varint" }, { "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" } ] ] } ] } ] ] } ] } ] ], "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": "trail", "47": "item_slime", "48": "item_cobweb", "49": "item_snowball", "50": "large_smoke", "51": "lava", "52": "mycelium", "53": "note", "54": "poof", "55": "portal", "56": "rain", "57": "smoke", "58": "white_smoke", "59": "sneeze", "60": "spit", "61": "squid_ink", "62": "sweep_attack", "63": "totem_of_undying", "64": "underwater", "65": "splash", "66": "witch", "67": "bubble_pop", "68": "current_down", "69": "bubble_column_up", "70": "nautilus", "71": "dolphin", "72": "campfire_cosy_smoke", "73": "campfire_signal_smoke", "74": "dripping_honey", "75": "falling_honey", "76": "landing_honey", "77": "falling_nectar", "78": "falling_spore_blossom", "79": "ash", "80": "crimson_spore", "81": "warped_spore", "82": "spore_blossom_air", "83": "dripping_obsidian_tear", "84": "falling_obsidian_tear", "85": "landing_obsidian_tear", "86": "reverse_portal", "87": "white_ash", "88": "small_flame", "89": "snowflake", "90": "dripping_dripstone_lava", "91": "falling_dripstone_lava", "92": "dripping_dripstone_water", "93": "falling_dripstone_water", "94": "glow_squid_ink", "95": "glow", "96": "wax_on", "97": "wax_off", "98": "electric_spark", "99": "scrape",