💚
Treasure Particles
  • Home Page
  • Discord Server
  • Download
    • 🧡BuiltByBit
  • Effects
    • Basic Usage
    • Creating Effect
      • Caching
      • Variables
      • Tick Handlers
        • Events
        • Mixer Options
      • Script Types
        • Variable
        • Variable Cycle
        • Particle
          • Single Particle
          • Circle Particle
            • Spread Particle
            • Targeted Circle Particle
          • Spiral Effects
            • Spiral Particle
            • Multi Spiral Particle
            • Full Spiral Particle
          • Targeted Particle
          • Sphere Particle
          • Text Particle
            • Animated Text Particle
          • Particles
          • Color Format
        • Parkour
        • Condition
        • Preset
        • Sound
        • Message
          • Chat Message
          • Action Bar Message
          • Title Message
        • Lightning
        • Others
    • Presets
    • Mixer
    • Static Effects
  • Colors
    • Adding New Color Scheme
    • Adding New Color Group
  • Configuration
    • General Options
    • Database
    • Permissions
    • GUI Config
      • Item Properties
  • Translations
Powered by GitBook
On this page
  • Format
  • Description
  • Arguments
  • Examples
  1. Effects
  2. Creating Effect
  3. Script Types

Variable Cycle

This page was last updated for version v1.2.0

PreviousVariableNextParticle

Last updated 1 year ago

Format

variable-cycle [args] or var-c [args]

Description

  • It will cycle the variable value from min value to max value by step value

  • When the variable's value reaches the max value, it will cycle backward, and so on

Arguments

Arg
Description
Format
Example(s)
Default Value
Required
Arg
Description
Format
Example(s)
Default Value
Required
Arg
Description
Format
Example(s)
Default Value
Required
Arg
Description
Format
Example(s)
Default Value
Required
Arg
Description
Format
Example(s)
Default Value
Required

Examples

  1. variable-cycle [variable=radius,step={step},min=0.25,max=1.75]

  2. var-c [variable=x,step=0.1,min={min},max={max}]

Operator argument is not working for now.

variable

variable name

variable=<VARIABLE>

variable=x, variable=y

*

step

step value

step=<DOUBLE>

step=0.1, step={step}

*

min

min value

min=<DOUBLE>

min=0, min={min}

*

max

max value

max=<DOUBLE>

max=10, max={max}

*

operator

operator name

operator=<ADD/MULTIPLY>

operator=add, operator=multiply

add