create-gl4es-stencil-fix

create-gl4es-stencil-fix

Fixes Create mod crash on mobile (GL4ES/Krypton) create模组的手机端修复

by
121 Downloads
forgeneoforge
Rent Server with this Mod

About this Mod

GL4ES Stencil Fix

A tiny Forge mod that fixes a crash affecting Create (机械动力) on mobile Minecraft launchers that use OpenGL wrappers like GL4ES or Krypton Wrapper.

The Problem

On mobile Android launchers (ZalithLauncher, PojavLauncher, FCL, etc.), the game crashes during loading with:

  • GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT (GL4ES / GLES 2.0)
  • GL_FRAMEBUFFER_UNSUPPORTED (Krypton Wrapper / GLES 3.x)

The crash happens because Create/Ponder calls RenderTarget.enableStencil(), which tries to attach a stencil buffer to an existing FBO. Mobile OpenGL wrappers can't handle this operation, causing Forge to throw a fatal RuntimeException.

The Fix

This mod uses a Forge Coremod (ASM bytecode transformer) that runs at class-load time to replace enableStencil() with a no-op. The stencil buffer call is never made, so the crash never occurs.

If the patch is applied successfully, you'll see this line in the log:
"""
[GL4ESFix] SUCCESS: RenderTarget.enableStencil() replaced with no-op RETURN.
"""

Compatibility

  • Minecraft: 1.20.1
  • Forge: 47.x
  • Create: 0.5.x and 6.0.x (all 1.20.1 versions)
  • Launchers: ZalithLauncher, PojavLauncher, FCL, and any GL4ES-based launcher
  • Client-side only — does not need to be installed on servers

Side Effects

The stencil buffer is used by Create/Ponder for UI clipping in the Ponder tutorial viewer. With this fix, that clipping effect is disabled, which may cause minor visual artifacts (UI elements slightly overflowing their bounds) in the Ponder screen.

Normal gameplay, machines, contraptions, and all other features are completely unaffected.

Installation

Place the jar in your .minecraft/mods/ folder alongside Create. No additional configuration required.

Available Versions

Fixes crash on mobile devicesrelease
MC 1.21.1neoforge
June 6, 2026
GL4ES Stencil Fix 1.0.0 for Create on Minecraft 1.20.1release
MC 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6forge
June 5, 2026

How to Install create-gl4es-stencil-fix on Your Server

1

Order Server

Order a Minecraft Java server with at least 4 GB RAM (6 GB recommended).

2

Set forge Loader

In the panel under "Egg", select the forge loader and matching Minecraft version (1.21.1).

3

Install Mod

Open the mod browser in the dashboard and search for "create-gl4es-stencil-fix". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

forgeneoforge

Minecraft Versions

1.21.1, 1.20.6, 1.20.5 (+4 more)

Server-side

Unsupported

Recommended RAM

6 GB(min. 4 GB)

Frequently Asked Questions

create-gl4es-stencil-fix server crashes on startup – what to do?

Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 4 GB RAM is allocated and the loader matches the mod version (1.21.1). You can switch loaders with one click in the panel.

Is create-gl4es-stencil-fix compatible with forge and neoforge?

create-gl4es-stencil-fix officially supports forge, neoforge for Minecraft 1.21.1, 1.20.6, 1.20.5. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with create-gl4es-stencil-fix – how to optimize performance?

Recommended RAM: 6 GB (per 5 players). Use /spark profiler to check if create-gl4es-stencil-fix consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install create-gl4es-stencil-fix with just one click on your server.

Recommended RAM
6 GBab €12/mo
Min. 4 GB | +1 GB pro 5 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Unsupported

Supported Versions

1.21.11.20.61.20.51.20.41.20.31.20.21.20.1