From 367d4b4d2dd997c26c5e660df5e945b277759a93 Mon Sep 17 00:00:00 2001 From: Kq Date: Sat, 21 Nov 2026 10:25:06 +0100 Subject: [PATCH] Add README Co-Authored-By: Claude Opus 5.5 --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..2d78774 --- /dev/null +++ b/README.md @@ -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//{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).