Skip to content

Constant

Provides a constant float value.

Type ID: kaya:constant

Format

Field Type Default Description
value Float The float value to provide.
Tip

This type can be inlined by specifying a float value.

Example

{
    "type": "kaya:constant",
    "value": 0.67
}
0.67

This example provides a constant $0.67$ float value.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.