RaytraceEffect - Septillihedron/SuperheroesPlusSchema GitHub Wiki

RaytraceEffect - An object

Properties

conditions - Optional ConditionList

The list of conditions

Defaults to {}

effects - Optional EffectList

The list of effects

Defaults to {}

mode - Required enum

Allowed values

  • ALL
  • OTHER
  • SELF

The mode of operation

Defaults to SELF

maxDistance - Optional number

The maximum distance the raytrace can collide

Defaults to 10

collisionMode - Optional FluidCollisionMode

The collision behavior when a fluid gets hit by the raytrace

Defaults to NEVER

ignorePassables - Optional boolean

Whether to ignore passable blocks (ex. tall grass, signs, fluids)

Defaults to true

alwaysHit - Optional boolean

If true, if the raytrace does not hit anything, the location will be set as the maxDistance in the direction the user is looking

Defaults to true

raySize - Optional number

The collision size of the ray

Defaults to 1.0

raysize - Optional number

The collision size of the ray

Defaults to 1.0