# 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//{0..46}.png + .properties output/assets/minecraft/textures/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).