Skip to content

Pack Making JSON Actions

DonBruce64 edited this page Sep 5, 2024 · 1 revision

Actions are things that happen when something is clicked, pressed, or otherwise true. What triggers an action can vary, but they have the same parameters regardless of this. They are:

  • action - The action to perform. Can be one of the following:
  • toggle – Clicking this will toggle the variable from 0 to 1, or 1 to 0 depending on current value.
  • set – Clicking this box set the variable to the defined value.
  • increment – Clicking this will increment the variable by the defined value.
  • button – Clicking this will set the variable to the value. When the conditions for this action are false (letting go of the button, for example), it will be set back to 0.
  • variable - The variable to perform the action on.
  • value - The value to use in the action.
  • clampMin - The min value for this action to set. Only used when the action is increment.
  • clampMax - The max value for this action to set. Only used when the action is increment.
Clone this wiki locally