#✅ | How do you make a slider for brightness?

1 messages · Page 1 of 1 (latest)

chilly mothBOT
#

To make a brightness slider, follow the same pattern as the FOV slider but target the gamma option instead:

  1. Add a Slider element.
  2. Set Slider Type to Decimal Range with minimum 0.0 and maximum 1.0.
  3. Set Pre-Selected Value to {"placeholder":"minecraft_option_value","values":{"name":"gamma"}} so it starts at the current brightness.
  4. Edit the slider’s Action Script:
    • Add the Set Minecraft Option action (edit_minecraft_option).
    • Set its value to gamma:$$value so it writes the slider’s value back to the gamma option every time the slider changes.

If you want the label to show a percentage, use something like:

Brightness: {"placeholder":"calc","values":{"decimal":"false","expression":"{"placeholder":"minecraft_option_value","values":{"name":"gamma"}} * 100"}}%

That shows the current brightness in % and updates automatically.

You can find more detail in the Set/Get Minecraft Options guide.

upper axle
#

Okay, bot was a bit confusing with some of the instructions but I figured it out.

chilly mothBOT
#
Thread Marked as Solved

This support thread has been marked as solved by @upper axle.

The AI helper is now disabled, but you can still continue the conversation if needed. Thank you for using our support system!

#

✅ | How do you make a slider for brightness?