-
Notifications
You must be signed in to change notification settings - Fork 92
Pack Making JSON ValueModifiers
Value modifiers perform arithmetic or math and returns an output value. Used for if you need to increase sound volume or pitch using variables and other values.
-
type – The type for this valueModifier. Valid values are as below:
Value Logic setoutput = inputaddoutput = value + inputsubtractoutput = value - inputmultiplyoutput = value * inputdivideoutput = value / inputlinearoutput = input * parameter1 + paramter2Graph Calculator parabolicoutput = parameter1 * (input * parameter2 - parameter3)^2 + parameter4Graph Calculator conditionsif all conditions are truethentrueCode, elsefalseCode -
input – Input variable. It may be a number prefixed with
#to indicate a constant. -
parameter1 – A constant value used in these types:
linear,parabolic. -
parameter2 – A constant value used in these types:
linear,parabolic. -
parameter3 – A constant value used in these types:
parabolic. -
parameter4 – A constant value used in these types:
parabolic. -
conditions – Only if type is
conditions. A list of conditions to use for this valueModifier. RunstrueCodeif all conditions are true, elsefalseCode -
trueCode – A list of value modifiers to run if
conditionsis true. -
falseCode – A list of value modifiers to run if
condtionsis false
- 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