HomeJavaModsFancyMenu APNG Loop Fix
FancyMenu APNG Loop Fix
ModsJava

FancyMenu APNG Loop Fix

by SdataG · on CurseForge

⬇ Download on CurseForge

The author built this one for Minecraft 1.20.1 on Forge. On other versions it may install and then do nothing.

Overview

Ai used for the icon ( no ai used in coding other than general code assistant)

FancyMenu APNG Loop Fix is a small, client-side Forge mod for Minecraft 1.20.1 that unlocks advanced animated menu buttons in FancyMenu.

FancyMenu can use APNG (animated PNG) files as custom button backgrounds. That is powerful for title screens and GUIs — but out of the box, play-once animations cannot reliably replay on every hover. This mod fixes that limitation and adds logic so paired normal and hover animations stay in sync.

It was originally built for the Liminal Industries Rescripted modpack: Backrooms-style title menu buttons that look invisible at rest, tear open on hover, then slowly heal shut when you move away — without looping or getting stuck after the first hover.


Main features


The problem this mod solves

In FancyMenu's APNG handler, when an animation finishes with loop=1, an internal flag is set and never cleared when the texture is reset. The playhead may rewind, but the animation engine refuses to tick forward again.

That leaves you with two bad options:

This mod adds a third path: play once, replay every hover, never loop while held.


How to use this mod

For players

  1. Install Minecraft 1.20.1, Forge 47+, and FancyMenu 3.6+.
  2. Place fmloopfix-1.0.0.jar in your mods folder alongside FancyMenu.
  3. Launch the game. If your pack or layout already uses compatible FancyMenu APNG buttons, the effect works automatically — no config file or keybind.

You do not need this mod on a server to join multiplayer. It only affects how your client draws FancyMenu widgets.

For FancyMenu / pack authors

This mod is designed for buttons that use two APNG backgrounds:

Recommended FancyMenu layout settings per button:

Normal APNG structure (recommended):

  1. Regen frames — peel/heal from open back to closed.
  2. Breathing frames — subtle idle pulse after regen (mod loops this section when healed).

Hover APNG structure (recommended):

  1. Start transparent or closed.
  2. Rip frames — tear open once.
  3. Hold on the final open frame.

Modpack integration


Requirements

   
Minecraft 1.20.1
Mod loader Forge 47+
Required mod FancyMenu 3.6+
Side Client only

Disclaimer

This is not an official FancyMenu addon. FancyMenu APNG Loop Fix is an independent compatibility patch created by Liminal Industries. It is not affiliated with, endorsed by, or maintained by Keksuccino (the FancyMenu author). FancyMenu remains a separate project.

Intended use: Built for the Liminal Industries Rescripted modpack's Backrooms-themed main menu — invisible-at-rest buttons, wallpaper-reveal tears, slow regen, and idle breathing on the title screen. Published so other packs and FancyMenu authors can reuse the same pattern without manually patching FancyMenu.

What this mod does not do:

Uses Mixins to adjust FancyMenu's APNG texture behavior at runtime. Use at your own discretion.


Credits

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more