Skip to content

Fuel

Item Condition Type

Checks whether the item stack is considered as fuel.

Type ID: eggolib:fuel

Note

If the comparison or compare_to fields are not present, this item condition type will check if the item stack is considered as fuel.

Fields

Field Type Default Description
comparison Comparison optional Determines how to compare the fuel time of the item stack to the specified value.
compare_to Integer optional The value to compare the fuel time of the item stack to.

Examples

"item_condition": {
    "type": "eggolib:fuel"
}

This example will check if the item stack is considered as fuel.

"item_condition": {
    "type": "eggolib:fuel",
    "comparison": ">=",
    "compare_to": 100
}

This example will check if the item stack is considered as fuel and if its fuel time is equal or greater than 100.