Back to mods
create-gl4es-stencil-fix project artwork

Modrinth · Minecraft mod

create-gl4es-stencil-fix

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which create-gl4es-stencil-fix release should I use?

Updated 5 months ago
Latest stable file 1.0.0
Game version 1.21.1
Loader NeoForge

create-gl4es-stencil-fix 1.0.0 targets 1.21.1 with NeoForge. It must be installed on the client. Do not install it on the dedicated server. No extra mods listed for this file.

Where it goes

Is create-gl4es-stencil-fix required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release NeoForge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does create-gl4es-stencil-fix 1.0.0 need?

1.0.0. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add create-gl4es-stencil-fix without breaking your instance.

Built for create-gl4es-stencil-fix 1.0.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.0. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.0. It opens that exact file at the source.

About this project

What does create-gl4es-stencil-fix add?

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.

Project description from Modrinth.

Pick your setup

create-gl4es-stencil-fix by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

7 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

create-gl4es-stencil-fix versions and loaders

2 of 2 releases match

Looking for an older file? The official Modrinth project page is in Resources.