Add README

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
KqandClaude Opus 5.5 committed 2026-11-21 10:25:14 +01:00
1 parent 48d103e763
commit 367d4b4d2d
1 file changed
+21
+21
View File
@@ -0,0 +1,21 @@
# 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).