craftos_network_update
Update a running network by moving computers, toggling wired modem connections, or unloading/loading chunks to test how programs handle disconnections and reloads.
Instructions
Change a network from craftos_network_create while it runs: move a computer, right-click a wired modem to switch its computer on or off the network, or unload/load a computer's chunk. The changes given are applied in that order; the other computers keep running. Use it to test how programs cope with a computer moving away, dropping off the cable or reloading.
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": {
"network": "<network>",
"computer": "<computer>"
},
"name": "craftos_network_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | With modem: true connects the computer to the cable network, false disconnects it. | |
| modem | No | Wired modem's peripheral name, used with on. | |
| loaded | No | false unloads the computer's chunk (it stops; on 2.2.36 linked computers get peripheral_detach for its peripherals), true loads it again (it boots afresh). | |
| network | Yes | Id from craftos_network_create. | |
| computer | Yes | The computer's name. | |
| position | No | New block position; only the fields given change. |