Skip to content

From Int

Stringifies an integer and uses it as the provided value.

Type ID: kaya:from_int

Format

Field Type Default Description
value Int Provider The integer to stringify.

Example

{
    "type": "kaya:from_int",
    "value": {
        "type": "kaya:item/fuel",
        "item": "used_item"
    }
}

This example stringifies the fuel value of the item provided by the kaya:used_item context parameter.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.