Radiation (Mekanism)

Use the radiation or radiation per tick requirements in a KubeJS recipe.

This requirement requires Custom Machinery Mekanism to be installed.

Use one of these methods to add a radiation requirement to the recipe.

.requireRadiation(amount)
.requireRadiation(amount, radius)

.requireRadiationPerTick(amount)
.requireRadiationPerTick(amount, radius)

.emitRadiation(amount)
.emitRadiationPerTick(amount)
  • The amount param must be a positive decimal value. (in Sv).

  • The radius param must be a positive integer value (in blocks).

Example

The following recipe will absorb 1 mSv each tick while running :

ServerEvents.recipes(event => {

  event.recipes.custommachinery.custom_machine("custommachinery:boiler", 100)
  .requireRadiationPerTick(0.001)
  
})