UNPKG

minecraft-data

Version:
1,582 lines (1,581 loc) 268 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", "container": "native", "switch": "native", "void": "native", "array": "native", "restBuffer": "native", "anonymousNbt": "native", "anonOptionalNbt": "native", "registryEntryHolder": "native", "registryEntryHolderSet": "native", "arrayWithLengthOffset": "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" } } ], "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": "jukebox_playable", "43": "recipes", "44": "lodestone_tracker", "45": "firework_explosion", "46": "fireworks", "47": "profile", "48": "note_block_sound", "49": "banner_patterns", "50": "base_color", "51": "pot_decorations", "52": "container", "53": "block_state", "54": "bees", "55": "lock", "56": "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", "jukebox_playable": [ "container", [ { "name": "directMode", "type": "bool" }, { "anon": true, "type": [ "switch", { "compareTo": "directMode", "fields": { "true": [ "container", [ { "name": "jukeboxSongName", "type": "string" }, { "name": "jukeboxSongType", "type": "varint" }, { "anon": true, "type": [ "switch", { "compareTo": "jukeboxSongType", "fields": { "0": [ "container", [ { "name": "soundEvent", "type": [ "container", [ { "name": "soundEventType", "type": "varint" }, { "anon": true, "type": [ "switch", { "compareTo": "soundEventType", "fields": { "0": [ "container", [ { "name": "soundName", "type": "string" }, { "name": "fixedRange", "type": [ "option", "f32" ] } ] ] } } ] } ] ] } ] ] } } ] }, { "name": "description", "type": "anonymousNbt" }, { "name": "duration", "type": "f32" }, { "name": "output", "type": "varint" } ] ], "false": [ "container", [ { "name": "songLocation", "type": "string" } ] ] } } ] }, { "name": "showInTooltip", "type": "bool" } ] ], "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",