💚
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
  • Description
  • Examples
  1. Colors

Adding New Color Scheme

This page was last updated for version v1.2.0

Description

To create a new color scheme, add a new section with unique key to colors section in colors.yml. Then, copy the hex codes of the desired colors and paste them into the list. The larger the size value, the slower/softer the transition between colors will be. You can also set a display name for color schemes.

color-scheme-key:
    name: "<NAME>"
    values: [ '<HEX>', '<HEX>', .. ]
    size: <INTEGER>

You can pull a color name from the translations file. Putting the color name key between %, like %key% will be replaced with the translation. You can repeat this as many times as you want.

Examples

  1. name: "<gold>%color%: <gradient:red:blue>%red-to-blue%" # <gradient:red:blue> can be done with MiniMessage format 
  2. name: "<gold>%color%: <rainbow>%rainbow%" 

Example Translation File

File: translations_en.yml

colors:
     color: "Renk"
     red-to-blue: "Kırmızı > Mavi"
     rainbow: "Rengarenk"

Examples

colors:
  gradient-red-to-blue:
    name: "%gradient-red-to-blue%"
    values: [ '#FC5C7D', '#6A82FB' ]
    size: 50
  heart:
    name: "%heart%"
    values: [ '#f54242', '#fc9090' ]
    size: 7
  rocket:
    name: "<aqua>Rocket!"
    values: [ '#5bf5c7', '#42ff75', "#0eb33b", "#0eb381" ]
    size: 10
  christmas:
    name: "<gold>%color%: %christmas%"
    values: [ '#ef233c', '#d5f2e3', '#73ba9b', '#003e1f', '#d90429', '#823a14' ]
    size: 30
PreviousStatic EffectsNextAdding New Color Group

Last updated 1 year ago