1 parent
48d103e763
commit
367d4b4d2d
1 file changed
+21
@@ -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).
|
||||||
Reference in new issue
Block a user