{"$schema":"http://json-schema.org/draft-07/schema#","title":"NTM 1.0.4 template pools","type":"object","properties":{"elements":{"type":"array","items":{"type":"object","properties":{"element":{"type":"object","properties":{"element_type":{"type":"string","anyOf":[{"enum":["hbm:conductor_template","hbm:legacy_piece","hbm:legacy_start","hbm:parent_overlap"]},{"type":"string"}]}},"required":["element_type"],"allOf":[{"if":{"properties":{"element_type":{"const":"hbm:conductor_template"}},"required":["element_type"]},"then":{"type":"object","properties":{"element_type":{"description":"hbm:conductor_template.","markdownDescription":"`hbm:conductor_template`."},"location":{"description":"Structure-template ID.","markdownDescription":"Structure-template ID."},"processors":{"description":"Vanilla processor-list ID or inline processor list.","markdownDescription":"Vanilla processor-list ID or inline processor list."},"projection":{"description":"rigid.","markdownDescription":"`rigid`."},"override_liquid_settings":{"description":"Optional vanilla liquid-setting override.","markdownDescription":"Optional vanilla liquid-setting override."},"conductors":{"description":"Nonempty list of template-local positions (x, y, z), each packed as x 2^38 + z 2^12 + y.\n\nRange: Each i64","markdownDescription":"Nonempty list of template-local positions (x, y, z), each packed as x 2^38 + z 2^12 + y.\n\nRange: Each `i64`"}},"required":["element_type","location","processors","projection","override_liquid_settings","conductors"]}},{"if":{"properties":{"element_type":{"const":"hbm:legacy_piece"}},"required":["element_type"]},"then":{"type":"object","properties":{"element_type":{"description":"hbm:legacy_piece.","markdownDescription":"`hbm:legacy_piece`."},"location":{"description":"Structure-template ID.","markdownDescription":"Structure-template ID."},"processors":{"description":"Vanilla processor-list ID or inline processor list.","markdownDescription":"Vanilla processor-list ID or inline processor list."},"projection":{"description":"Vanilla jigsaw projection: rigid or terrain_matching.","markdownDescription":"Vanilla jigsaw projection: rigid or terrain_matching."},"override_liquid_settings":{"description":"Optional vanilla liquid-setting override.","markdownDescription":"Optional vanilla liquid-setting override."},"height_offset":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"description":"Y offset added to the footprint's average terrain height; default 0.\n\nRange: i32","markdownDescription":"Y offset added to the footprint's average terrain height; default 0.\n\nRange: `i32`"},"align_to_terrain":{"type":"boolean","description":"Grounds this piece independently when placed by hbm:legacy_jigsaw; default false.","markdownDescription":"Grounds this piece independently when placed by `hbm:legacy_jigsaw`; default false."}},"required":["element_type","location","processors","projection"]}},{"if":{"properties":{"element_type":{"const":"hbm:legacy_start"}},"required":["element_type"]},"then":{"type":"object","properties":{"element_type":{"description":"hbm:legacy_start.","markdownDescription":"`hbm:legacy_start`."},"location":{"description":"Structure-template ID.","markdownDescription":"Structure-template ID."},"processors":{"description":"Vanilla processor-list ID or inline processor list.","markdownDescription":"Vanilla processor-list ID or inline processor list."},"projection":{"description":"Vanilla jigsaw projection: rigid or terrain_matching.","markdownDescription":"Vanilla jigsaw projection: rigid or terrain_matching."},"override_liquid_settings":{"description":"Optional vanilla liquid-setting override.","markdownDescription":"Optional vanilla liquid-setting override."},"size_limit":{"type":"number","minimum":1,"maximum":1024,"description":"Placed-piece count at which normal growth switches to fallbacks; includes the starting piece.\n\nRange: [1, 1024]","markdownDescription":"Placed-piece count at which normal growth switches to fallbacks; includes the starting piece.\n\nRange: [1, 1024]"},"range_limit":{"type":"number","minimum":1,"maximum":128,"description":"Horizontal distance at which a source piece switches to fallbacks. Uses the larger absolute X or Z displacement of its bounding-box center from the start position, in blocks.\n\nRange: [1, 128]","markdownDescription":"Horizontal distance at which a source piece switches to fallbacks. Uses the larger absolute X or Z displacement of its bounding-box center from the start position, in blocks.\n\nRange: [1, 128]"},"height_offset":{"type":"integer","minimum":-2147483648,"maximum":2147483647,"description":"Y offset applied by hbm:legacy_jigsaw after averaging terrain across the rotated footprint; default 0.\n\nRange: i32","markdownDescription":"Y offset applied by `hbm:legacy_jigsaw` after averaging terrain across the rotated footprint; default 0.\n\nRange: `i32`"},"align_to_terrain":{"type":"boolean","description":"Grounds this piece on its own footprint when placed by hbm:legacy_jigsaw; otherwise it moves with the first unaligned piece. Default false.","markdownDescription":"Grounds this piece on its own footprint when placed by `hbm:legacy_jigsaw`; otherwise it moves with the first unaligned piece. Default false."}},"required":["element_type","location","processors","projection","override_liquid_settings","size_limit","range_limit"]}},{"if":{"properties":{"element_type":{"const":"hbm:parent_overlap"}},"required":["element_type"]},"then":{"type":"object","properties":{"element_type":{"description":"Selects the hbm:parent_overlap pool element.","markdownDescription":"Selects the `hbm:parent_overlap` pool element."},"location":{"description":"Structure template placed by this pool element.","markdownDescription":"Structure template placed by this pool element."},"parent_overlap_connector":{"description":"Outgoing connector allowed to overlap its direct parent.","markdownDescription":"Outgoing connector allowed to overlap its direct parent."},"processors":{"description":"Processor list applied to the template.","markdownDescription":"Processor list applied to the template."},"projection":{"description":"Vanilla jigsaw placement projection.","markdownDescription":"Vanilla jigsaw placement projection."},"override_liquid_settings":{"description":"Optional vanilla liquid-setting override.","markdownDescription":"Optional vanilla liquid-setting override."}},"required":["element_type","location","parent_overlap_connector","processors","projection","override_liquid_settings"]}}]}}}}}}