# Machine settings

IC10 limits, fluid barrel faces and the ZIRNOX overhaul.

Registry: `leafia:machine_config`. Files: `data/leafia/leafia/machine_config/<group>.json`. See [Cursed settings](https://movblock.mov/ntm-next/wiki/cursed/settings.md) for loading, replacement and validation.

## ic10

| Field | Meaning and default | Range |
| - | - | - |
| `max_register_index` | Highest IC10 register index; registers are `r0` to `r<value>`, plus the `sp` and `ra` aliases. Read when an IC10 program is created; default `64`. | `[0, i32::MAX]` |
| `max_stack_size` | IC10 stack size in slots; default `512`. | `[1, i32::MAX]` |

```json
{"max_register_index": 64, "max_stack_size": 512}
```

## barrels

| Field | Meaning and default |
| - | - |
| `enable_side_ports` | `false` limits NTM fluid barrels to top and bottom connections; default `true`. |

```json
{"enable_side_ports": true}
```

## zirnox

| Field | Meaning and default |
| - | - |
| `disable_addon_zirnox` | `true` keeps NTM's ZIRNOX Nuclear Reactor. `false` uses the Cursed overhaul: a steam tank, Cursed fuel rods in slots 0–23, rod target, compression and valve controls, and a ComputerCraft peripheral. Default `false`. |

```json
{"disable_addon_zirnox": false}
```
