-
Notifications
You must be signed in to change notification settings - Fork 92
Pack Making JSON Conditions
Conditions, as the name suggests, are used to check if a variable(s) meet certain conditions that are defined within it. These are then used, say within a part slot's activeConditions, to say if that part slot is active or not.
-
type – The type for this condition. Valid values are as below:
Value Condition Description activeinput > 0True if inputis greater than 0matchinput == parameter1True if inputis equal toparameter1match_varinput == variable1True if inputis equal tovariablegreaterinput > parameter1True if inputis greater thanparameter1greater_varinput > variable1True if inputis greater thanvariable1boundsinput > parameter1 and input < parameter2True if inputis greater thanparameter1AND ifinputis less thanparameter2bounds_varinput > variable1 and input < variable2True if inputis greater thanvariable1AND ifinputis less thanvariable2conditions- True if at least one of the entries in conditonsis True -
input – Input variable. It may be a number prefixed with
#to indicate a constant. -
variable1 – A variable used in these types:
match_var,greater_var,bounds_var. -
variable2 – Like
variable1, but only used in these types:bounds_var. -
parameter1 – A constant value used in these types:
match,greater,bounds. -
variable2 – Like
parameter1, but only used in these types:bounds. -
conditions – Only if type is
conditions. A list of conditions to use for this condition. -
invert – If
true, inverts the logic of this condition.
- The Absolute Basics
- Pack Making General Introduction
- Pack Making General Master File
- Pack Making General File Structure
- Pack Making General Item Textures and JSONs
- Pack Making General Languages
- Pack Making General Conventions
- Pack Making JSON Colors
- Pack Compiling for 1.16.5
- JSON Templates
- Hitbox Tool