@bendyline/molen-tooling 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.md +15 -0
  3. package/README.md +91 -0
  4. package/dist/capture/THIRD-PARTY-NOTICES.md +223 -0
  5. package/dist/capture/basis/LICENSE.txt +55 -0
  6. package/dist/capture/basis/basis_transcoder.js +19 -0
  7. package/dist/capture/basis/basis_transcoder.wasm +0 -0
  8. package/dist/capture/capture.html +15 -0
  9. package/dist/capture/harness.js +4671 -0
  10. package/dist/capture/worldgen-preview.html +15 -0
  11. package/dist/capture/worldgen-preview.js +4617 -0
  12. package/dist/cli.d.mts +1 -0
  13. package/dist/cli.mjs +1276 -0
  14. package/dist/docs-src/guide/3d-art-guidelines.md +157 -0
  15. package/dist/docs-src/guide/3d-model-assets.md +286 -0
  16. package/dist/docs-src/guide/adaptive-performance.md +89 -0
  17. package/dist/docs-src/guide/agent-loop.md +156 -0
  18. package/dist/docs-src/guide/aircraft.md +225 -0
  19. package/dist/docs-src/guide/browser-mount.md +185 -0
  20. package/dist/docs-src/guide/building-interiors.md +175 -0
  21. package/dist/docs-src/guide/capability-authoring.md +69 -0
  22. package/dist/docs-src/guide/determinism.md +285 -0
  23. package/dist/docs-src/guide/entities.md +47 -0
  24. package/dist/docs-src/guide/examples.md +58 -0
  25. package/dist/docs-src/guide/experience-playback.md +57 -0
  26. package/dist/docs-src/guide/figures.md +164 -0
  27. package/dist/docs-src/guide/game-samples.md +100 -0
  28. package/dist/docs-src/guide/graphics-performance.md +167 -0
  29. package/dist/docs-src/guide/input.md +205 -0
  30. package/dist/docs-src/guide/materials.md +125 -0
  31. package/dist/docs-src/guide/project.md +157 -0
  32. package/dist/docs-src/guide/quickstart.md +63 -0
  33. package/dist/docs-src/guide/recognizable-places.md +158 -0
  34. package/dist/docs-src/guide/rendering-backends.md +231 -0
  35. package/dist/docs-src/guide/scripting.md +330 -0
  36. package/dist/docs-src/guide/sky.md +192 -0
  37. package/dist/docs-src/guide/source-bundles.md +42 -0
  38. package/dist/docs-src/guide/structure-library.md +114 -0
  39. package/dist/docs-src/guide/surface-rendering.md +203 -0
  40. package/dist/docs-src/guide/terrain.md +389 -0
  41. package/dist/docs-src/guide/three-surface.md +70 -0
  42. package/dist/docs-src/guide/vehicle-interiors.md +126 -0
  43. package/dist/docs-src/guide/vehicles.md +110 -0
  44. package/dist/docs-src/guide/weather.md +123 -0
  45. package/dist/docs-src/guide/worldgen.md +434 -0
  46. package/dist/docs-src/llms.txt +129 -0
  47. package/dist/docs-src/schemas/README.md +36 -0
  48. package/dist/docs-src/schemas/archstyle.md +2340 -0
  49. package/dist/docs-src/schemas/assert.md +169 -0
  50. package/dist/docs-src/schemas/asset.md +543 -0
  51. package/dist/docs-src/schemas/business-catalog.md +162 -0
  52. package/dist/docs-src/schemas/cameratrack.md +132 -0
  53. package/dist/docs-src/schemas/command.md +112 -0
  54. package/dist/docs-src/schemas/components.md +5826 -0
  55. package/dist/docs-src/schemas/delta.md +204 -0
  56. package/dist/docs-src/schemas/experience-play.md +452 -0
  57. package/dist/docs-src/schemas/figure.md +290 -0
  58. package/dist/docs-src/schemas/interior-catalog.md +230 -0
  59. package/dist/docs-src/schemas/keyframe.md +314 -0
  60. package/dist/docs-src/schemas/landmark-catalog.md +56 -0
  61. package/dist/docs-src/schemas/landmark.md +293 -0
  62. package/dist/docs-src/schemas/matgraph.md +1163 -0
  63. package/dist/docs-src/schemas/pack-index.md +82 -0
  64. package/dist/docs-src/schemas/pack-source.md +139 -0
  65. package/dist/docs-src/schemas/pack.md +225 -0
  66. package/dist/docs-src/schemas/pixelgrid.md +108 -0
  67. package/dist/docs-src/schemas/prefab.md +106 -0
  68. package/dist/docs-src/schemas/project.md +271 -0
  69. package/dist/docs-src/schemas/region-atlas.md +612 -0
  70. package/dist/docs-src/schemas/replay.md +807 -0
  71. package/dist/docs-src/schemas/scatter.md +541 -0
  72. package/dist/docs-src/schemas/scene.md +1152 -0
  73. package/dist/docs-src/schemas/source-bundle.md +266 -0
  74. package/dist/docs-src/schemas/stylepack.md +420 -0
  75. package/dist/docs-src/schemas/terrain-package.md +731 -0
  76. package/dist/docs-src/schemas/terrain.md +313 -0
  77. package/dist/docs-src/schemas/types.md +218 -0
  78. package/dist/docs-src/schemas/uvpaint.md +149 -0
  79. package/dist/docs-src/schemas/worldgen-batch.md +743 -0
  80. package/dist/index.d.mts +1271 -0
  81. package/dist/index.mjs +78 -0
  82. package/dist/mcp-BFnCWrg0.mjs +796 -0
  83. package/dist/ops-BGxhSP6w.mjs +7246 -0
  84. package/package.json +96 -0
@@ -0,0 +1,266 @@
1
+ # Logical source bundle (`molen/source-bundle@1`)
2
+
3
+ Portable authoring-time manifest for one logical thing: definitions, editable models or recipes, generators, behavior scripts, textures, sounds, and documentation under one directory.
4
+
5
+ ## Example
6
+
7
+ ```json
8
+ {
9
+ "format": "molen/source-bundle@1",
10
+ "id": "example.vehicle.roadster",
11
+ "kind": "vehicle",
12
+ "title": "Roadster",
13
+ "order": 10,
14
+ "files": {
15
+ "definitions": [
16
+ "entity.types.json"
17
+ ],
18
+ "models": [
19
+ {
20
+ "path": "models/source.glb",
21
+ "assetId": "example.vehicle.roadster",
22
+ "output": "assets/example/vehicle/roadster/asset.json",
23
+ "pipeline": "import",
24
+ "sha256": "sha256:0000000000000000000000000000000000000000000000000000000000000000"
25
+ }
26
+ ],
27
+ "generators": [
28
+ {
29
+ "id": "model",
30
+ "path": "models/generate.mjs"
31
+ }
32
+ ],
33
+ "scripts": [
34
+ {
35
+ "id": "interactions",
36
+ "path": "scripts/interactions.ts"
37
+ }
38
+ ],
39
+ "textures": [],
40
+ "sounds": [],
41
+ "documents": [
42
+ "README.md"
43
+ ]
44
+ }
45
+ }
46
+ ```
47
+
48
+ ## JSON Schema
49
+
50
+ ```json
51
+ {
52
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
53
+ "type": "object",
54
+ "properties": {
55
+ "format": {
56
+ "type": "string",
57
+ "const": "molen/source-bundle@1",
58
+ "description": "Format envelope; always 'molen/source-bundle@1'."
59
+ },
60
+ "id": {
61
+ "type": "string",
62
+ "pattern": "^[a-z][a-z0-9_.-]*$",
63
+ "description": "Stable logical content id, normally the runtime entity or asset id."
64
+ },
65
+ "kind": {
66
+ "type": "string",
67
+ "pattern": "^[a-z][a-z0-9-]*$",
68
+ "description": "Open content class such as 'entity', 'vehicle', or 'worldgen-structure'."
69
+ },
70
+ "title": {
71
+ "type": "string",
72
+ "minLength": 1,
73
+ "description": "Human-readable content name."
74
+ },
75
+ "order": {
76
+ "type": "integer",
77
+ "minimum": 0,
78
+ "maximum": 9007199254740991,
79
+ "description": "Optional stable presentation or build order within an owning collection."
80
+ },
81
+ "files": {
82
+ "type": "object",
83
+ "properties": {
84
+ "definitions": {
85
+ "default": [],
86
+ "type": "array",
87
+ "items": {
88
+ "type": "string",
89
+ "minLength": 1,
90
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.(?:\\/|$)).+$"
91
+ },
92
+ "description": "Bundle-relative JSON definitions, manifests, recipes, or configuration files."
93
+ },
94
+ "models": {
95
+ "default": [],
96
+ "type": "array",
97
+ "items": {
98
+ "type": "object",
99
+ "properties": {
100
+ "path": {
101
+ "type": "string",
102
+ "minLength": 1,
103
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.(?:\\/|$)).+$",
104
+ "description": "Bundle-relative editable model or model recipe path."
105
+ },
106
+ "assetId": {
107
+ "type": "string",
108
+ "pattern": "^[a-z][a-z0-9_.-]*$",
109
+ "description": "Runtime asset id produced from this source model, when applicable."
110
+ },
111
+ "output": {
112
+ "type": "string",
113
+ "minLength": 1,
114
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.(?:\\/|$)).+$",
115
+ "description": "Owning-project-relative output path of the generated molen/asset@1 sidecar, when applicable."
116
+ },
117
+ "pipeline": {
118
+ "type": "string",
119
+ "enum": [
120
+ "copy",
121
+ "import"
122
+ ],
123
+ "description": "'copy' when the editable GLB is already canonical; 'import' when molen asset import derives the runtime model."
124
+ },
125
+ "sha256": {
126
+ "type": "string",
127
+ "pattern": "^sha256:[0-9a-f]{64}$",
128
+ "description": "Optional pinned authoring-source hash for binary model masters."
129
+ }
130
+ },
131
+ "required": [
132
+ "path"
133
+ ],
134
+ "additionalProperties": false
135
+ },
136
+ "description": "Editable model masters and procedural model recipes."
137
+ },
138
+ "generators": {
139
+ "default": [],
140
+ "type": "array",
141
+ "items": {
142
+ "type": "object",
143
+ "properties": {
144
+ "id": {
145
+ "type": "string",
146
+ "pattern": "^[a-z][a-z0-9_.-]*$",
147
+ "description": "Stable role/name for this file inside the logical source bundle."
148
+ },
149
+ "path": {
150
+ "type": "string",
151
+ "minLength": 1,
152
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.(?:\\/|$)).+$",
153
+ "description": "Bundle-relative source path; it may not escape the bundle."
154
+ }
155
+ },
156
+ "required": [
157
+ "id",
158
+ "path"
159
+ ],
160
+ "additionalProperties": false
161
+ },
162
+ "description": "Authoring programs used to create, verify, or transform owned source files."
163
+ },
164
+ "scripts": {
165
+ "default": [],
166
+ "type": "array",
167
+ "items": {
168
+ "type": "object",
169
+ "properties": {
170
+ "id": {
171
+ "type": "string",
172
+ "pattern": "^[a-z][a-z0-9_.-]*$",
173
+ "description": "Stable role/name for this file inside the logical source bundle."
174
+ },
175
+ "path": {
176
+ "type": "string",
177
+ "minLength": 1,
178
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.(?:\\/|$)).+$",
179
+ "description": "Bundle-relative source path; it may not escape the bundle."
180
+ }
181
+ },
182
+ "required": [
183
+ "id",
184
+ "path"
185
+ ],
186
+ "additionalProperties": false
187
+ },
188
+ "description": "Deterministic behavior scripts owned by this logical thing."
189
+ },
190
+ "textures": {
191
+ "default": [],
192
+ "type": "array",
193
+ "items": {
194
+ "type": "object",
195
+ "properties": {
196
+ "id": {
197
+ "type": "string",
198
+ "pattern": "^[a-z][a-z0-9_.-]*$",
199
+ "description": "Stable role/name for this file inside the logical source bundle."
200
+ },
201
+ "path": {
202
+ "type": "string",
203
+ "minLength": 1,
204
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.(?:\\/|$)).+$",
205
+ "description": "Bundle-relative source path; it may not escape the bundle."
206
+ }
207
+ },
208
+ "required": [
209
+ "id",
210
+ "path"
211
+ ],
212
+ "additionalProperties": false
213
+ },
214
+ "description": "Authoring texture sources owned by this logical thing."
215
+ },
216
+ "sounds": {
217
+ "default": [],
218
+ "type": "array",
219
+ "items": {
220
+ "type": "object",
221
+ "properties": {
222
+ "id": {
223
+ "type": "string",
224
+ "pattern": "^[a-z][a-z0-9_.-]*$",
225
+ "description": "Stable role/name for this file inside the logical source bundle."
226
+ },
227
+ "path": {
228
+ "type": "string",
229
+ "minLength": 1,
230
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.(?:\\/|$)).+$",
231
+ "description": "Bundle-relative source path; it may not escape the bundle."
232
+ }
233
+ },
234
+ "required": [
235
+ "id",
236
+ "path"
237
+ ],
238
+ "additionalProperties": false
239
+ },
240
+ "description": "Authoring audio sources owned by this logical thing."
241
+ },
242
+ "documents": {
243
+ "default": [],
244
+ "type": "array",
245
+ "items": {
246
+ "type": "string",
247
+ "minLength": 1,
248
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.(?:\\/|$)).+$"
249
+ },
250
+ "description": "Bundle-relative provenance, briefs, verification reports, and previews."
251
+ }
252
+ },
253
+ "additionalProperties": false,
254
+ "description": "Every source file owned by the logical thing. Shared engine code and generated runtime outputs are intentionally excluded."
255
+ }
256
+ },
257
+ "required": [
258
+ "format",
259
+ "id",
260
+ "kind",
261
+ "title",
262
+ "files"
263
+ ],
264
+ "additionalProperties": false
265
+ }
266
+ ```
@@ -0,0 +1,420 @@
1
+ # Style pack manifest (`molen/stylepack@1`)
2
+
3
+ Index of a shippable look: archstyles, scatter rules, materials, prop assets, an optional interior catalog, default style rules, imports, and attribution. One directory is one pack; the version feeds every seed.
4
+
5
+ ## Example
6
+
7
+ ```json
8
+ {
9
+ "format": "molen/stylepack@1",
10
+ "name": "molen-worldgen-default",
11
+ "version": "2026.09.0",
12
+ "title": "Molen default world styles",
13
+ "doc": "Regional architecture and vegetation looks for outlines and labeled polygons.",
14
+ "namespace": "molen.worldgen",
15
+ "styles": {
16
+ "molen.worldgen.pnw.house": "styles/pnw/house.archstyle.json",
17
+ "molen.worldgen.generic.house": "styles/generic/house.archstyle.json",
18
+ "molen.worldgen.generic.commercial": "styles/generic/commercial.archstyle.json",
19
+ "molen.worldgen.generic.box": "styles/generic/box.archstyle.json"
20
+ },
21
+ "scatter": {
22
+ "molen.worldgen.scatter.global": "scatter/global.scatter.json"
23
+ },
24
+ "materials": {
25
+ "molen.worldgen.material.siding_lap": "materials/siding-lap.matgraph.json"
26
+ },
27
+ "assets": {
28
+ "molen.worldgen.prop.chimney.brick": "assets/prop/chimney/brick/asset.json"
29
+ },
30
+ "interiors": "interiors/catalog.json",
31
+ "defaults": {
32
+ "style": "molen.worldgen.generic.box",
33
+ "scatter": "molen.worldgen.scatter.global",
34
+ "rules": [
35
+ {
36
+ "when": {
37
+ "class": [
38
+ "commercial",
39
+ "retail",
40
+ "industrial",
41
+ "office",
42
+ "apartments"
43
+ ]
44
+ },
45
+ "style": "molen.worldgen.generic.commercial"
46
+ },
47
+ {
48
+ "when": {
49
+ "class": [
50
+ "house",
51
+ "residential",
52
+ "yes",
53
+ "building"
54
+ ],
55
+ "areaMax": 600
56
+ },
57
+ "style": "molen.worldgen.generic.house"
58
+ }
59
+ ]
60
+ },
61
+ "imports": [
62
+ {
63
+ "namespace": "molen.entities",
64
+ "note": "The molen.entities content pack: trees, shrub, boulder."
65
+ }
66
+ ],
67
+ "attribution": [
68
+ {
69
+ "text": "Molen default world styles",
70
+ "license": "MIT"
71
+ }
72
+ ]
73
+ }
74
+ ```
75
+
76
+ ## JSON Schema
77
+
78
+ ```json
79
+ {
80
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
81
+ "type": "object",
82
+ "properties": {
83
+ "format": {
84
+ "type": "string",
85
+ "const": "molen/stylepack@1",
86
+ "description": "Format envelope; always 'molen/stylepack@1'."
87
+ },
88
+ "name": {
89
+ "type": "string",
90
+ "pattern": "^[a-z][a-z0-9-]*$",
91
+ "description": "Pack name, e.g. 'molen-worldgen-default'."
92
+ },
93
+ "version": {
94
+ "type": "string",
95
+ "minLength": 1,
96
+ "description": "Pack version string, e.g. '2026.09.0'; participates in every seed."
97
+ },
98
+ "title": {
99
+ "type": "string"
100
+ },
101
+ "doc": {
102
+ "type": "string"
103
+ },
104
+ "namespace": {
105
+ "type": "string",
106
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
107
+ "description": "Namespace every id in the pack lives under, e.g. 'molen.worldgen'."
108
+ },
109
+ "styles": {
110
+ "type": "object",
111
+ "propertyNames": {
112
+ "type": "string"
113
+ },
114
+ "additionalProperties": {
115
+ "type": "string",
116
+ "minLength": 1,
117
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.(?:\\/|$)).+$"
118
+ },
119
+ "description": "Archstyle id to pack-relative molen/archstyle@1 path."
120
+ },
121
+ "scatter": {
122
+ "default": {},
123
+ "type": "object",
124
+ "propertyNames": {
125
+ "type": "string"
126
+ },
127
+ "additionalProperties": {
128
+ "type": "string",
129
+ "minLength": 1,
130
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.(?:\\/|$)).+$"
131
+ },
132
+ "description": "Scatter id to pack-relative molen/scatter@1 path."
133
+ },
134
+ "materials": {
135
+ "default": {},
136
+ "type": "object",
137
+ "propertyNames": {
138
+ "type": "string"
139
+ },
140
+ "additionalProperties": {
141
+ "type": "string",
142
+ "minLength": 1,
143
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.(?:\\/|$)).+$"
144
+ },
145
+ "description": "Material id to pack-relative matgraph/pixelgrid document path (resolves matgraph:<id>)."
146
+ },
147
+ "assets": {
148
+ "default": {},
149
+ "type": "object",
150
+ "propertyNames": {
151
+ "type": "string"
152
+ },
153
+ "additionalProperties": {
154
+ "type": "string",
155
+ "minLength": 1,
156
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.(?:\\/|$)).+$"
157
+ },
158
+ "description": "Asset id to pack-relative molen/asset@1 sidecar path (props)."
159
+ },
160
+ "interiors": {
161
+ "type": "string",
162
+ "minLength": 1,
163
+ "pattern": "^(?![A-Za-z]:|[/\\\\])(?!.*\\\\)(?!.*(?:^|\\/)\\.\\.(?:\\/|$)).+$",
164
+ "description": "Pack-relative molen/interior-catalog@1 path: layouts for enterable buildings. Without one, the pack generates no interiors."
165
+ },
166
+ "defaults": {
167
+ "type": "object",
168
+ "properties": {
169
+ "style": {
170
+ "type": "string",
171
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
172
+ "description": "Archstyle used when no rule matches."
173
+ },
174
+ "scatter": {
175
+ "type": "string",
176
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
177
+ "description": "Scatter rule set used when a binding names none."
178
+ },
179
+ "rules": {
180
+ "default": [],
181
+ "type": "array",
182
+ "items": {
183
+ "type": "object",
184
+ "properties": {
185
+ "when": {
186
+ "type": "object",
187
+ "properties": {
188
+ "class": {
189
+ "minItems": 1,
190
+ "type": "array",
191
+ "items": {
192
+ "type": "string",
193
+ "minLength": 1
194
+ },
195
+ "description": "Match when any label equals or contains one of these words; \"house\" matches \"semidetached_house\" but not \"warehouse\"."
196
+ },
197
+ "notClass": {
198
+ "minItems": 1,
199
+ "type": "array",
200
+ "items": {
201
+ "type": "string",
202
+ "minLength": 1
203
+ },
204
+ "description": "Reject when any label matches one of these words."
205
+ },
206
+ "contextClass": {
207
+ "minItems": 1,
208
+ "type": "array",
209
+ "items": {
210
+ "type": "string",
211
+ "minLength": 1
212
+ },
213
+ "description": "Match the surrounding label (e.g. the land class); 'none' matches an absent context."
214
+ },
215
+ "notContextClass": {
216
+ "minItems": 1,
217
+ "type": "array",
218
+ "items": {
219
+ "type": "string",
220
+ "minLength": 1
221
+ },
222
+ "description": "Reject when the surrounding label matches."
223
+ },
224
+ "areaMin": {
225
+ "type": "number",
226
+ "minimum": 0,
227
+ "description": "Minimum footprint area in m²."
228
+ },
229
+ "areaMax": {
230
+ "type": "number",
231
+ "minimum": 0,
232
+ "description": "Maximum footprint area in m²."
233
+ },
234
+ "heightMin": {
235
+ "type": "number",
236
+ "minimum": 0,
237
+ "description": "Minimum known height in meters; never matches an unknown height."
238
+ },
239
+ "heightMax": {
240
+ "type": "number",
241
+ "minimum": 0,
242
+ "description": "Maximum known height in meters; never matches an unknown height."
243
+ },
244
+ "hasHeight": {
245
+ "type": "boolean",
246
+ "description": "Require (true) or forbid (false) a known source height."
247
+ },
248
+ "levelsMin": {
249
+ "type": "number",
250
+ "minimum": 0,
251
+ "description": "Minimum floor count; roof choices also use resolved estimates."
252
+ },
253
+ "levelsMax": {
254
+ "type": "number",
255
+ "minimum": 0,
256
+ "description": "Maximum floor count; roof choices also use resolved estimates."
257
+ },
258
+ "elongationMin": {
259
+ "type": "number",
260
+ "minimum": 1,
261
+ "description": "Minimum long/short axis ratio of the oriented bounding box (>= 1)."
262
+ },
263
+ "elongationMax": {
264
+ "type": "number",
265
+ "minimum": 1,
266
+ "description": "Maximum long/short axis ratio of the oriented bounding box (>= 1)."
267
+ },
268
+ "rectangularityMin": {
269
+ "type": "number",
270
+ "minimum": 0,
271
+ "maximum": 1,
272
+ "description": "Minimum area / (width * depth), 0..1."
273
+ },
274
+ "rectangularityMax": {
275
+ "type": "number",
276
+ "minimum": 0,
277
+ "maximum": 1,
278
+ "description": "Maximum area / (width * depth), 0..1."
279
+ },
280
+ "verticesMax": {
281
+ "type": "integer",
282
+ "minimum": 3,
283
+ "maximum": 9007199254740991,
284
+ "description": "Maximum outline vertex count after cleaning."
285
+ },
286
+ "holes": {
287
+ "type": "boolean",
288
+ "description": "Require (true) or forbid (false) holes (courtyards)."
289
+ },
290
+ "wingsMin": {
291
+ "type": "integer",
292
+ "minimum": 0,
293
+ "maximum": 9007199254740991,
294
+ "description": "Minimum roof wing count (archstyle rules only)."
295
+ },
296
+ "wingsMax": {
297
+ "type": "integer",
298
+ "minimum": 0,
299
+ "maximum": 9007199254740991,
300
+ "description": "Maximum roof wing count (archstyle rules only)."
301
+ }
302
+ },
303
+ "additionalProperties": false,
304
+ "description": "Conditions; omit for a catch-all rule."
305
+ },
306
+ "style": {
307
+ "type": "string",
308
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
309
+ "description": "Archstyle id to apply, e.g. 'molen.worldgen.pnw.house'."
310
+ },
311
+ "variants": {
312
+ "minItems": 1,
313
+ "maxItems": 120,
314
+ "type": "array",
315
+ "items": {
316
+ "type": "object",
317
+ "properties": {
318
+ "style": {
319
+ "type": "string",
320
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$"
321
+ },
322
+ "weight": {
323
+ "type": "number",
324
+ "exclusiveMinimum": 0
325
+ }
326
+ },
327
+ "required": [
328
+ "style",
329
+ "weight"
330
+ ],
331
+ "additionalProperties": false
332
+ },
333
+ "description": "Optional weighted styles sampled from stable building identity. Without identity, use style."
334
+ }
335
+ },
336
+ "required": [
337
+ "style"
338
+ ],
339
+ "additionalProperties": false
340
+ },
341
+ "description": "Ordered style rules evaluated after any world binding rules."
342
+ }
343
+ },
344
+ "required": [
345
+ "style"
346
+ ],
347
+ "additionalProperties": false
348
+ },
349
+ "imports": {
350
+ "default": [],
351
+ "type": "array",
352
+ "items": {
353
+ "type": "object",
354
+ "properties": {
355
+ "namespace": {
356
+ "type": "string",
357
+ "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
358
+ "description": "External asset namespace the pack may reference, e.g. 'molen.entities'."
359
+ },
360
+ "package": {
361
+ "type": "string",
362
+ "description": "Informational: where the namespace comes from, e.g. a content pack id."
363
+ },
364
+ "note": {
365
+ "type": "string"
366
+ }
367
+ },
368
+ "required": [
369
+ "namespace"
370
+ ],
371
+ "additionalProperties": false
372
+ },
373
+ "description": "Namespaces of external asset libraries the pack references."
374
+ },
375
+ "attribution": {
376
+ "minItems": 1,
377
+ "type": "array",
378
+ "items": {
379
+ "type": "object",
380
+ "properties": {
381
+ "text": {
382
+ "type": "string",
383
+ "minLength": 1,
384
+ "description": "Attribution text to display."
385
+ },
386
+ "license": {
387
+ "type": "string",
388
+ "minLength": 1,
389
+ "description": "License identifier, e.g. 'MIT'."
390
+ },
391
+ "sourceUrl": {
392
+ "type": "string",
393
+ "format": "uri"
394
+ },
395
+ "licenseUrl": {
396
+ "type": "string",
397
+ "format": "uri"
398
+ }
399
+ },
400
+ "required": [
401
+ "text",
402
+ "license"
403
+ ],
404
+ "additionalProperties": false
405
+ },
406
+ "description": "Content attributions (at least one)."
407
+ }
408
+ },
409
+ "required": [
410
+ "format",
411
+ "name",
412
+ "version",
413
+ "namespace",
414
+ "styles",
415
+ "defaults",
416
+ "attribution"
417
+ ],
418
+ "additionalProperties": false
419
+ }
420
+ ```