edit_parts
Modify Stormworks vehicle parts with atomic add, fill, remove, replace, move, rotate, paint, copy, mirror, repeat, and configure operations; preview changes by default, then commit to apply.
Instructions
Atomic part edits; defaults to preview only. Pass the revision from query_parts. Ops: add(part/parts), fill(bounds,color), remove/replace/move/rotate/paint/copy/mirror/repeat. Selection ops need select={ids/bounds/name/definition}. move/copy/repeat use delta in blocks; repeat count is additional copies; rotate uses a local-to-world matrix or r string and pivot; mirror uses axis and plane. replace needs part; paint needs color. Added parts use definition, position in blocks, rotation, optional mirror (1=x, 2=y, 4=z), color, name and scalar settings. Placement rotation accepts an effective mirrored matrix; use that or proper rotation plus mirror. Prebuilt engines default to max_force_scale=1 (100%). commit=true keeps one undo step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit | No | ||
| design | Yes | ||
| revision | Yes | ||
| operations | Yes |