place_brick
Place a Lego part at exact stud coordinates and plate height, with rotation, while enforcing valid builds by preventing collisions, floating, or exceeding build area.
Instructions
Place a part with its minimum-x,y corner at stud (x,y), bottom at plate height z (z=0 on the ground; on top of a brick placed at z=0 means z=3). rotation is 0, 90, 180 or 270 (90/270 swap the footprint; slopes descend toward +y at 0 and rotate with the piece). Fails with an explanation if the placement collides, floats, or leaves the build area.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| z | Yes | ||
| part | Yes | ||
| color | No | red | |
| rotation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |