Input Entries

Consume Input

{
  "type": "mm:input/consume",
  "per_tick": true, // Optional: Remove to consume at end of ticks timer
  "chance": 0.5, // Optional: Remove for 100% chance
  "ingredient": {
    // An Ingredient Config
  }
}

This example shows a simple consume input requirement. The type for this entry is mm:input/consume

"per_tick": true

The "per_tick" field tells the entry to consume the defined ingredient every tick. This is optional and removing this field will enable the input to be consumed at the end of the ticks timer of the recipe.

"chance": 0.5

The "chance" field can be set to add a random chance from 0.0 to 1.0. If chance is 0 The input will never be consumed and if the chance is 1 the input will always be consumed. This field is optional and removing it will default to 1 which will always consume the input.

The "ingredient" field should define an INGREDIENT CONFIG. This tells the entry what actual ingredient is going to be required and consumed from ports.

Last updated