UNPKG

minecraft-data

Version:
1,546 lines (1,545 loc) 269 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", "SoundEvent": [ "container", [ { "name": "soundName", "type": "string" }, { "name": "fixedRange", "type": [ "option", "f32" ] } ] ], "RecipeDisplay": [ "container", [ { "name": "type", "type": [ "mapper", { "type": "varint", "mappings": { "0": "crafting_shapeless", "1": "crafting_shaped", "2": "furnace", "3": "stonecutter", "4": "smithing" } } ] }, { "name": "data", "type": [ "switch", { "compareTo": "type", "fields": { "crafting_shapeless": [ "container", [ { "name": "ingredients", "type": [ "array", { "countType": "varint", "type": "SlotDisplay" } ] }, { "name": "result", "type": "SlotDisplay" }, { "name": "craftingStation", "type": "SlotDisplay" } ] ], "crafting_shaped": [ "container", [ { "name": "width", "type": "varint" }, { "name": "height", "type": "varint" }, { "name": "ingredients", "type": [ "array", { "countType": "varint", "type": "SlotDisplay" } ] }, { "name": "result", "type": "SlotDisplay" }, { "name": "craftingStation", "type": "SlotDisplay" } ] ], "furnace": [ "container", [ { "name": "ingredient", "type": "SlotDisplay" }, { "name": "fuel", "type": "SlotDisplay" }, { "name": "result", "type": "SlotDisplay" }, { "name": "craftingStation", "type": "SlotDisplay" }, { "name": "duration", "type": "varint" }, { "name": "experience", "type": "f32" } ] ], "stonecutter": [ "container", [ { "name": "ingredient", "type": "SlotDisplay" }, { "name": "result", "type": "SlotDisplay" }, { "name": "craftingStation", "type": "SlotDisplay" } ] ], "smithing": [ "container", [ { "name": "template", "type": "SlotDisplay" }, { "name": "base", "type": "SlotDisplay" }, { "name": "addition", "type": "SlotDisplay" }, { "name": "result", "type": "SlotDisplay" }, { "name": "craftingStation", "type": "SlotDisplay" } ] ] } } ] } ] ], "SlotDisplay": [ "container", [ { "name": "type", "type": [ "mapper", { "type": "varint", "mappings": { "0": "empty", "1": "any_fuel", "2": "item", "3": "item_stack", "4": "tag", "5": "smithing_trim", "6": "with_remainder", "7": "composite" } } ] }, { "name": "data", "type": [ "switch", { "compareTo": "type", "fields": { "empty": "void", "any_fuel": "void", "item": "varint", "item_stack": "Slot", "tag": "string", "simthing_trim": [ "container", [ { "name": "base", "type": "SlotDisplay" }, { "name": "material", "type": "SlotDisplay" }, { "name": "pattern", "type": "SlotDisplay" } ] ], "with_remainder": [ "container", [ { "name": "input", "type": "SlotDisplay" }, { "name": "remainder", "type": "SlotDisplay" } ] ], "composite": [ "array", { "countType": "varint", "type": "SlotDisplay" } ] } } ] } ] ], "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": "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": "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" } ] ], "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": [ "registryEntryHolder", { "baseName": "soundId", "otherwise": { "name": "data", "type": "SoundEvent" } } ] }, { "name": "makes_particles", "type": "bool" }, { "name": "effects", "type": [ "array", { "countType": "varint", "type": "ConsumeEffect" } ] } ] ], "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": [ "registryEntryHolder", { "baseName": "soundId", "otherwise": { "name": "data", "type": "SoundEvent" } } ] }, { "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" } ] ], "tooltip_style": "string", "death_protection": [ "container", [ { "name": "effects", "type": [ "array", { "countType": "varint", "type": "ConsumeEffect" } ] } ] ], "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": "potionId", "type": [ "option", "varint" ] }, { "name": "customColor", "type": [ "option", "varint" ] }, { "name": "customEffects", "type": [ "array", { "countType": "varint", "type": "PotionEffect" } ] }, { "name": "customName", "type": "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": "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": "position" } ] ] ] }, { "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",