# Radiation (Mekanism)

{% hint style="warning" %}
This requirement requires [Custom Machinery Mekanism](https://www.curseforge.com/minecraft/mc-mods/custom-machinery-mekanism) to be installed.
{% endhint %}

The radiation requirement and its per-tick variant can be used to make a recipe absorb or emit radiations near the machine.

All radiation amounts are expressed in Sievert (Sv).&#x20;

[Here](https://github.com/mekanism/Mekanism/blob/1.19.x/src/api/java/mekanism/api/radiation/IRadiationManager.java#L21-L37) is a link to the Mekanism javadoc description about radiation amounts.

The requirement type of radiation requirement is `"custommachinery:radiation"` and for the radiation per tick requirement : `"custommachinery:radiation_per_tick"`.

### Properties

The radiation requirement has 3 mandatory properties and 1 optional property :&#x20;

#### Mandatory properties

```json
"type": "custommachinery:radiation" //Mandatory to define a radiation requirement.
OR
"type": "custommachinery:radiation_per_tick" //Mandatory to define a radiation per tick requirement.
```

<details>

<summary>Mode</summary>

#### Name : `mode`

#### Description :&#x20;

A property that define if the recipe will absorb or emit radiations.

* `input` : The recipe will absorb radiations.
* `output` : The recipe will emit radiations.

#### Example :&#x20;

The recipe will absorb radiations :&#x20;

```json
"mode": "input"
```

</details>

<details>

<summary>Amount</summary>

#### Name : `amount`

#### Description :&#x20;

A positive, decimal value that represent the amount (in Sv) of radiations to emit or absorb.

Keep in mind that 1Sv is a **very** high value, in most case you will need to use mSv (0.001Sv) or even µSv (0.000001Sv) except of course if you need the equivalent of a nuclear reactor meltdown.

#### Example :&#x20;

The recipe will absorb/emit 0.001Sv.

```json
"amount": 0.001
```

</details>

#### Optional property

<details>

<summary>Radius</summary>

#### Name : `radius`

#### Description :&#x20;

**Use only in input mode.**

A positive integer that represent the radius (in blocks) that the machine will search for radiation sources to absorb.

#### Default :&#x20;

The value of Mekanism config `radiationChunkCheckRadius` (5 by default) x16.

#### Example :&#x20;

The machine will search for radiation sources to absorb in a 10 blocks radius.

```json
"radius": 10
```

</details>

### Example

A radiation per tick requirement that will make the recipe absorb 0.001Sv each tick :&#x20;

```json
{
    "type": "radiation_per_tick",
    "amount": 0.001
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://frinn.gitbook.io/custom-machinery-1.19/recipes/requirements/radiation-mekanism.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
