Mana per tick

Make the recipe consume or produce mana every tick

Mana per tick requirement is used to define per-tick mana inputs and outputs for a custom machine recipe.

To use it you just need to provide the amount of mana you want the recipe to consume/produce each tick.

This requirement is available in both input and output modes.

In input mode : While crafting the recipe, the machine will consume the specified amount of mana each tick from the machine mana component.

In output mode : While crafting the recipe, the machine will produce the specified amount of mana each tick and put it in the machine mana component.

The requirement type of mana per tick requirement is :"custommachinery:mana_per_tick"

Properties

The mana per tick requirement has 3 mandatory properties.

Mandatory properties

"type": "custommachinery:energy_per_tick" //Mandatory to define an mana per tick requirement.
Mode

Name : mode

Description :

Define the I/O mode of the requirement.

  • input The requirement will consume mana at the start of the crafting process.

  • output The requirement will produce mana at the end of the crafting process.

Example :

"mode": "input"

The requirement will consume mana at the start of the crafting process.

Mana

Name : mana

Description :

A positive integer value that define the amount of mana the recipe will consume/produce.

It can be any positive number but remember that the machine mana component must be able to store at least this amount of mana.

Example :

"mana": 1000

The recipe will consume/produce 1000 mana.

Example

A mana per tick requirement that will make the recipe produce 2672 mana per tick:

{
    "type": "custommachinery:mana_per_tick",
    "mode": "output",
    "mana": 2672
}

A mana per tick requirement that will make the recipe consume 20 mana per tick:

{
    "type": "custommachinery:mana_per_tick",
    "mode": "input",
    "mana": 20
}

Last updated