💚
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
  • Usage
  • Supported Functions
  • Examples
  1. Effects
  2. Creating Effect
  3. Script Types

Variable

This page was last updated for version v1.2.0

PreviousScript TypesNextVariable Cycle

Last updated 3 months ago

Format

var ... or variable ...

Usage

  1. Write the name of the variable which you wanna update.

  2. Insert operator like =, +=, -=, *= etc.

  3. Then write the equation you'd like

Supported Functions

  • Trigonometric functions: sin(x), cos(x), tan(x), cot(x), sec(x), cosec(x), asin(x), acos(x)

  • Square root: sqrt(x)

  • Power: ^

  • : atan(x,y),

  • Absolute value: abs(x)

  • Others: *, /, +, -, % (remainder)

Examples

  1. variable r=2*{PI}*{i}/32

  2. variable x=cos({r})

  3. var y=sin({r})

  4. var z=sqrt({x}^2 + 5*{x} - 3) % abs({x})

atan2