From dc4b7480d61b4b54d0b8ea89f863ba0f987539f3 Mon Sep 17 00:00:00 2001 From: Kq Date: Fri, 7 Aug 2026 20:41:14 +0200 Subject: [PATCH] change block in hand too --- Program.cs | 8 +++++++- autocomplete.cs | 9 ++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 05cbc20..12042f1 100644 --- a/Program.cs +++ b/Program.cs @@ -11,6 +11,7 @@ public class Program // string blockname; static string ctm_dir; + static string texture_dir; static void Main() { @@ -20,7 +21,7 @@ public class Program // Dedupe, sort alphabetically once for consistent display var blocks = AutoComplete.FullBlocks.Distinct().OrderBy(b => b).ToList(); - Console.WriteLine("Minecraft 26.2 (Chaos Cubed) — Full Block Picker"); + // Console.WriteLine("Minecraft 26.2 (Chaos Cubed) — Full Block Picker"); // Console.WriteLine("Type to filter, Up/Down to move, Tab/Enter to accept, Esc to cancel."); Console.WriteLine(); @@ -107,8 +108,11 @@ public class Program method=ctm tiles=0-47"; + File.WriteAllText(ctm_dir + "/" + blockname + ".properties", ctmproperties); + File.Copy(full_texture, texture_dir + "/" + blockname + ".png"); + int[] top = { 4, 5, 7, 12, 13, 14, 15, 29, 31 }; int[] bottom = { 16, 17, 18, 36, 37, 38, 39, 40, 42 }; int[] both = { 0, 1, 2, 3 }; @@ -141,8 +145,10 @@ tiles=0-47"; string pack_Name = "output"; ctm_dir = Path.Combine(working_dir,pack_Name, "assets/minecraft/optifine/ctm/" + blockname); + texture_dir = Path.Combine(working_dir,pack_Name, "assets/minecraft/textures/block/"); Directory.CreateDirectory(ctm_dir); + Directory.CreateDirectory(texture_dir); // Directory.CreateDirectory(working_dir + "/1output/assets"); string mcmeta = @"{ diff --git a/autocomplete.cs b/autocomplete.cs index b94da42..00d659e 100644 --- a/autocomplete.cs +++ b/autocomplete.cs @@ -233,7 +233,14 @@ namespace txtgen } else if (!char.IsControl(key.KeyChar)) { - buffer += key.KeyChar; + /// i did it so it may not work with rest + char number = key.KeyChar; + if (key.KeyChar == ' ') + { + number = '_'; + + } + buffer += number; filtered = FilterAndRank(options, buffer); selectedIndex = 0; scrollOffset = 0;