Melon Shader Cycler

Add-on to oculus/iris to switch between shaders automatically when entering dimensions (including modded ones) or with just a key-bind

File Details

MelonShaderCycler-1.0.6

  • B
  • Jul 24, 2025
  • 6.72 KB
  • 14
  • 1.20.1
  • Forge

File Name

MelonShaderCycle-1.2.0.jar

Supported Versions

  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:melons-shader-cycler-1312366:6805313")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Added
Launch-time keybind check: on client startup, the mod verifies if the shader cycle keybind matches the Oculus reload shader keybind and notifies the player in chat if they differ

Client tick event listener: added a ClientTickEvent handler to wait for the player instance to be ready before sending the keybind mismatch notification (to handle player not being immediately available on startup)

Improved
Notification logic: added a boolean flag notifiedOnLaunch to ensure the keybind mismatch warning message is sent only once per client session, preventing chat spam on launch

Maintained
Existing keybind registration and shader switching logic remain unchanged

Key press event still validates keybind synchronization before allowing shader switching