Skip to main content
POST
/
terrain
/
edit
raise/lower/flatten/smooth at a position
curl --request POST \
  --url http://localhost:3917/terrain/edit \
  --header 'Content-Type: application/json' \
  --data '
{
  "x": 123,
  "z": 123,
  "amount": 123,
  "op": "<string>",
  "radius": 123
}
'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json
x
number<float>
required
z
number<float>
required
amount
number<float>
op
string

Brush operation: "raise", "lower", "flatten", "smooth"

radius
number<float>

Response

200 - application/json

Heightmap brush applied to the first terrain entity; ok is false with a message if no terrain exists or the op is unknown.

ok
boolean
required
message
string | null