LightCondition - Septillihedron/SuperheroesPlusSchema GitHub Wiki

LightCondition - An object

Properties

mode - Required enum

Allowed values

  • ALL
  • LOCATION
  • OTHER
  • SELF

The mode of operation

Defaults to SELF

otherwise - Optional EffectList

A list of effects that will run if this condition is false

else - Optional EffectList

A list of effects that will run if this condition is false

checkNatural - Optional boolean

Whether to check for natural/sky light

Defaults to true

checkBlocks - Optional boolean

Whether to check for block light

Defaults to true

lightRange - Optional RangeData

The range of light levels to compare against

Defaults to -Infinity - Infinity

checkNaturalLight - Optional boolean

Whether to check for natural/sky light

Defaults to true

checkBlockLight - Optional boolean

Whether to check for block light

Defaults to true

light - Optional RangeData

The range of light levels to compare against

Defaults to -Infinity - Infinity