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 consistent connected texture behavior across blocks, models, and datagen.
Features Standard connected texture support Horizontal and vertical CTM modes 2×2, 3×3, and 4×4 multiblock texture patterns Overlay-based connected textures Bookshelf-style top/bottom/side texture handling Vanilla datagen support through CTM model builders Developer-facing API with implementation details kept separate Designed for NeoForge 26.x projects For Players
This mod is a library. On its own, it does not add new blocks, items, or gameplay features. You only need to install it if another mod requires it.
For Developers
CTM Library provides model and datagen utilities for adding connected textures to your own blocks. It is built to keep CTM behavior reusable, predictable, and easier to maintain across mods.
How to Install CTMLib (Mod)
CTMLib by TheCricket is verified for Neoforge across Minecraft versions 1.21.1, 26.1.2, 26.2, 26.3 (latest release: 26.3.0.2, file size: 364 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.1, 26.1.2, 26.2, 26.3) and platform (Neoforge).
- Make sure you have the compatible loader or environment installed for Neoforge.
- Move the downloaded CTMLib file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version## [26.3.0.2]
### Added
- Added the
CTMBlockOffsetsAPI for per-block texture offsets and bounded updates
- Added persistent per-dimension offsets, synchronization for tracking players,
- Added regression tests for deferred baking, caching, material snapshots, and packet batching.
### Changed
- Deferred eligible CTM model baking and standalone Standard geometry until needed
- Replaced post-bake quad deduplication with reload-scoped bake caching and shared quads.
- Adapted deferred material snapshots and render-section refreshes to Minecraft 26.3.
- Retained standalone-texture requirements for all CTM models.
### Fixed
- Updated Eldritch geometry caching to follow changes in the underlying connected
- Corrected release game-version metadata and included the changelog on Modrinth.
## [26.3.0.1]
- Updated CTM for Minecraft 26.3 and NeoForge 26.3.0.95.
## [26.2.0.2]
### Removed
- Removed all APIs marked
@Deprecated(forRemoval = true), including legacy
- Resource packs using the removed sheet layouts must supply standalone state
### Changed
- Converted bundled glass and obsidian models to standalone state textures.
## [26.2.0.3]
### Added
- Added the
CTMBlockOffsetsAPI for per-block texture offsets and bounded updates
- Added persistent per-dimension offsets, synchronization for tracking players,
- Added regression tests for deferred baking, caching, saved offsets, and synchronization.
### Changed
- Deferred eligible CTM model baking and standalone Standard geometry until needed
- Replaced post-bake quad deduplication with reload-scoped bake caching and shared quads.
- Adapted deferred material snapshots and render-section refreshes to Minecraft 26.2.
- Retained standalone-texture requirements for all CTM models.
### Fixed
- Updated Eldritch geometry caching to follow changes in the underlying connected
- Corrected release game-version metadata and included the changelog on Modrinth.
## [26.2.0.2]
### Removed
- Removed all APIs marked
@Deprecated(forRemoval = true), including legacy
- Resource packs using the removed sheet layouts must supply standalone state
### Changed
- Converted bundled glass and obsidian models to standalone state textures.