CTMLib
by TheCricket
CTMLib is a NeoForge library for connected textures, giving other mods reusable tools for block rendering and model datagen.
What it does
Developers can use CTMLib to show connected textures on their own blocks without writing the connection logic from scratch. It offers standard connected texture support in horizontal and vertical modes, along with 2×2, 3×3 and 4×4 layouts. Multiblock texture patterns, overlay-based connected textures and bookshelf-style top, bottom and side handling are included as well.
Connected texture behavior is set through CTM model builders, while the implementation details stay behind a developer-facing API. Vanilla datagen support lets a mod generate these models during its own data generation. Developers who want connected textures to behave the same way on every block and model can use the library, which keeps that logic reusable, predictable and simpler to upkeep across several mods.
CTMLib runs on client and server, so the server and every player need it when a mod that depends on it is installed. Players who only play other mods have nothing to add, because the library is required by mods rather than used directly. Files are published for NeoForge only, for the 26.1.2 – 26.2 range, and the code is released under the GNU Lesser General Public License v3.0 only, which makes it open source.
Key features
Standard connected textures
Blocks can show connected textures in horizontal and vertical modes, with 2×2, 3×3 and 4×4 layouts.
Multiblock texture patterns
Textures can follow patterns that span several blocks, so a larger structure reads as one surface.
Overlay-based connections
Connected textures can be drawn as overlays on top of a base texture, layering the connection on the block model.
Bookshelf-style handling
Top, bottom and side textures can be set independently, in the way bookshelves are textured in vanilla.
CTM model builders
Connected texture models are assembled through builders, so mods describe the behavior without implementing it.
Vanilla datagen support
Models for connected textures can be produced by a mod's own data generation, adding them to its blocks.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Required by 1 mod
Use cases
Who it’s for: Mod developers building NeoForge projects who want connected textures without reimplementing the logic. Players do not install it directly; it is pulled in as a dependency by mods such as Chisel 3.
Questions
Does Chisel 3 need CTMLib?
Does a server need CTMLib installed?
Which game versions does CTMLib support?
More from TheCricket
What the author says
CTM Library is a lightweight connected-texture library for NeoForge mods. It provides reusable tools for rendering blocks with connected textures, overlays, and pattern-based texture layouts without every mod needing to reimplement CTM logic from scratch. This library is primarily intended for mod developers who want…
Official listing
- Modrinth page
- modrinth.com/mod/ctmlib
- Owner
- TheCricket
- Published
- 2026-06-02
- Updated on Modrinth
- 2026-10-07
- Facts verified
- 2026-10-15
