The Save Object is the input and output of this program. It represents the decoded/decompressed contents of the save.Strings can be UCS-2 or UTF-8. UUIDs follow the spec. Thesave_time field is 8 bytes (Little Endian) instead of a long.Unsigned ints, while unlikely, may overflow.
{version:short,map:string,author:{id:uuid,name:string},host:{id:uuid,name:string}// (v8+ only)description:string,save_time:UTCas8bytes,brick_count:int,mods:stringarray,brick_assets:[string],// --- See bottom of page for known bricks ---colors:[[byte,byte,byte,byte], ...],physical_materials:[string],// BPMC_Defaultmaterials:[string],// --- Known available materials// BMC_Ghost// BMC_Ghost_Fail// BMC_Plastic// BMC_Glass// BMC_TranslucentPlastic// BMC_Glow// BMC_Metallic// BMC_Hologrambrick_owners:[{id:uuid,name:string,displayName:string,// (v14+ only)bricks:int// (v8+ only)}, ...],components:{[componentName]:{version:int,brick_indices:[int, ...],properties:{[name]:[value], ...},}, ...},wires:[{source:{component:string,// component namebrick_index:int,// index of the brick in `bricks`port:string,// port name},target:{component:string,// component namebrick_index:int,// index of the brick in `bricks`port:string,// port name},}]bricks:[{asset_name_index:int,size:[uint,uint,uint],// must be [0, 0, 0] for all B_ prefixed brick_assets// must NOT be [0, 0, 0] for all PB_ prefixed brick_assets// 1x1 brick has size [5, 5, 6]// 1x1F plate has size [5, 5, 2]position:[int,int,int],direction:0-5,// --- Directions (facing axis) ---// 0: X Positive// 1: X Negative// 2: Y Positive// 3: Y Negative// 4: Z Positive// 5: Z Negativerotation:0-3,// --- Rotations (along the facing axis) ---// 0: 0 Deg// 1: 90 Deg// 2: 180 Deg// 3: 270 Degcollision:{player:bool,weapon:bool,interaction:bool,tool:bool,physics:bool,// disable physics collision},// or boolvisibility:bool,material_index:uint,physical_index:uint,material_intensity:0-10,color:uintor[byte,byte,byte,byte]or(v9)->[byte,byte,byte],owner_index:uint,components:{[componentName]:{[propName]:[propVal], ...}, ...},}, ...],}