Files
txtgen/README.md
T
KqandClaude Opus 5.5 367d4b4d2d Add README
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 10:25:14 +01:00

22 lines
870 B
Markdown

# txtgen
A console tool that generates an OptiFine **connected-textures (CTM)** resource pack for a Minecraft block.
You pick a block from an autocomplete list (all full blocks, type to filter, ↑/↓ to move, Tab/Enter to accept). Then you give it two textures: the *full* texture and the *none* (border-less) one. txtgen builds the half-and-half top and bottom variants with ImageSharp and writes the 47-tile `method=ctm` set to:
```
output/assets/minecraft/optifine/ctm/<block>/{0..46}.png + <block>.properties
output/assets/minecraft/textures/block/<block>.png
output/pack.mcmeta
```
Run it again with another block to add it to the same pack. If a block is already in the pack, delete its folder first.
## Run
```sh
dotnet run
```
`example/both.png` and `example/none.png` are sample inputs. Requires .NET and SixLabors.ImageSharp (restored automatically).