translate_entity
Move an entity by a specified offset, shifting brush geometry and the origin property, then save the .map file for automatic reload in TrenchBroom.
Instructions
Move an entity by a delta: shifts all brush geometry (keeping textures locked in Valve format) and/or the origin property. Writes the file; TrenchBroom-HL reloads it automatically, but asks first - and defaults to KEEPING the editor version - if the document has unsaved edits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"map_path": "<map_path>",
"index": "<index>",
"delta": "<delta>"
},
"name": "translate_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delta | Yes | Offset [dx dy dz] | |
| index | Yes | ||
| map_path | Yes | Absolute path to the .map file |