You can make a render‑distance button by using a FancyMenu variable plus an action script that cycles through the four presets and calls the Set Minecraft Option action with the matching numeric value.
Steps
-
Create a variable (e.g.
rd_mode) via Customization → Variables → Manage Variables and initialize it tonormal.
(See the Variables page for details.) -
Add your button and open its action script.
(Guided in Action Scripts.) -
Build an action script like this:
- IF
rd_modeequalstiny→ setrenderDistanceto2with Set Minecraft Option and then setrd_modetoshort. - ELSE-IF
rd_modeequalsshort→ setrenderDistanceto4, setrd_modetonormal. - ELSE-IF
rd_modeequalsnormal→ setrenderDistanceto8, setrd_modetofar. - ELSE → set
renderDistanceto16, setrd_modetotiny.
Use the Set Variable Value action and the Set Minecraft Option action described on the Minecraft Options page.
- IF
-
Optional: set the button label to show the current preset via
{"placeholder":"getvariable","values":{"name":"rd_mode"}}so it reads “Render Distance: normal”.
That way each click cycles through TINY → SHORT → NORMAL → FAR → … and keeps Minecraft’s renderDistance option in sync.