manage_terrain
Modify Roblox terrain by filling shapes, clearing regions, replacing materials, managing colors, reading/writing voxels, generating procedural terrain, and smoothing surfaces.
Instructions
[PRO] Terrain operations: fill shapes, clear regions, replace materials, manage colors, read/write voxels, generate procedural terrain, smooth terrain.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | [PRO] Terrain action. fill_block/fill_ball/fill_cylinder/fill_wedge: fill shapes with material. clear_region/clear_bounds: clear terrain. replace_material: swap materials in region. colors_get/colors_set: manage material colors. read_voxel: single voxel. read_voxels/write_voxels: bulk voxels. generate: procedural terrain. smooth: smooth terrain. | |
| material | No | Terrain material name (e.g., Grass, Rock, Water, Sand, Slate, Concrete). Used by: fill_*, replace_material, colors_get, colors_set. | |
| center | No | Center position as Vector3. Used by: fill_ball. | |
| position | No | Position as Vector3. Used by: read_voxel. | |
| cframe | No | Position and rotation for fill shapes. Used by: fill_block, fill_cylinder, fill_wedge. | |
| size | No | Size in studs. Used by: fill_block, fill_wedge. | |
| radius | No | Radius in studs. Used by: fill_ball, fill_cylinder. | |
| height | No | Height in studs. Used by: fill_cylinder. | |
| region | No | Rectangular region with min/max corners. Used by: clear_region, replace_material, read_voxels, write_voxels, generate, smooth. | |
| min | No | Minimum corner for bounds-based clear. Used by: clear_bounds. | |
| max | No | Maximum corner for bounds-based clear. Used by: clear_bounds. | |
| sourceMaterial | No | Material to replace. Used by: replace_material. | |
| targetMaterial | No | Replacement material. Used by: replace_material. | |
| color | No | RGB color (0-255). Used by: colors_set. | |
| resolution | No | Voxel resolution (studs per voxel). Used by: read_voxels, write_voxels. Default: 4. | |
| materials | No | 3D array of material names [x][y][z]. Used by: write_voxels. | |
| occupancy | No | 3D array of occupancy values [x][y][z] (0-1). Used by: write_voxels. | |
| baseHeight | No | Base terrain height in studs. Used by: generate. Default: 32. | |
| amplitude | No | Height variation amplitude in studs. Used by: generate. Default: 24. | |
| frequency | No | Noise frequency (0.001-0.1). Used by: generate. Default: 0.01. | |
| seed | No | Random seed for terrain generation. Used by: generate. | |
| layers | No | Material layers by height. Used by: generate. Each: {material, maxHeight}. | |
| intensity | No | Smoothing intensity (0-1). Used by: smooth. Default: 0.5. |