Skip to main content

Local variable

saturn:local

Reads the local binding of the current list or table element.

An information expression only reads the PlayerView passed in. Raw numbers, strings and booleans can be used directly as constants; operand objects must have a type. See Player information.

JSON fields​

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:local
nameStringno"item"Local variable name, scoreboard holder name or config name.
pathString arrayno[]Member path into composite results; dots are not split.

JSON example​

{
"type": "saturn:local"
}

This is a value to embed in the corresponding field, not a standalone loadable data pack file. The example: references in the examples must be replaced with defined entries.

Java entry point​

com.iafenvoy.saturn.data.information.expression.builtin.LocalExpression. This page is based on the Codec in the current 26.1.2 source.