Skip to content

1.97.0: On Change

Pre-release
Pre-release

Choose a tag to compare

@FLDebug10 FLDebug10 released this 27 Sep 00:32
· 5 commits to Fabric-1.20.1 since this release

I think an example works for now:

{
  "type": "apoli:resource",
  "min": 0,
  "max": 10,
  "on_change": [
    {
      "entity_action": {
        <any action>
      },
      "values": [0, "1"] <- list of expressions, ints or both
      "value": 0 || "1" <- either int or expression
    }
  ]
}

Value and Values can be present at the same time, any of the values has to match it. all applicable actions are ran