Minecraft-Console-Client/MinecraftClient/Scripting
BruceChen 7fd70ccf38 fix: Support hex RGB colors (#RRGGBB) in chat messages (fixes #2054)
Minecraft 1.16+ servers can send custom hex colors in JSON text
components ("color": "#RRGGBB"). MCC's ChatParser.Color2tag() only
recognized the 16 named colors, silently dropping hex values and
leaving gradient/custom-colored chat as uncolored plain text.

- ChatParser: recognize hex color values and emit internal §#rrggbb
  encoding; extend ColorCodeRegex to match the new format
- ClassicConsoleBackend: resolve §#rrggbb to ANSI escape codes via
  ColorHelper before passing to ConsoleInteractive (adapts to the
  configured ConsoleColorMode: 24-bit, 8-bit, 4-bit, or disable)
- McColorParser (TUI): parse §#rrggbb into exact SolidColorBrush
  for full RGB fidelity in Avalonia
- ChatBot.GetVerbatim(): skip the full 8-char §#rrggbb sequence
  instead of only 2 chars, preventing hex digits from leaking into
  stripped text

Made-with: Cursor
2026-04-06 01:19:19 +08:00
..
DynamicRun/Builder Fix Roslyn compiler references for WebSocket/HttpListener and fix MCCScript using directive semicolons 2026-03-25 14:32:39 +00:00
AssemblyResolver.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
BotMovementLock.cs Added slab handling for 1.20/.1 2023-06-23 16:25:18 +02:00
ChatBot.cs fix: Support hex RGB colors (#RRGGBB) in chat messages (fixes #2054) 2026-04-06 01:19:19 +08:00
CSharpRunner.cs Refactored to share the new utilities between the MCP and the Chat Bot API 2026-04-03 19:06:43 +02:00
MccGameApi.cs Bugfixes to the Looking and Movement. Added General prompt engineer. 2026-04-03 19:54:26 +02:00
MccGameCommon.cs Refactored to share the new utilities between the MCP and the Chat Bot API 2026-04-03 19:06:43 +02:00
MccGameModels.cs Refactored to share the new utilities between the MCP and the Chat Bot API 2026-04-03 19:06:43 +02:00
MccGameResult.cs Refactored to share the new utilities between the MCP and the Chat Bot API 2026-04-03 19:06:43 +02:00
MccObservedState.cs Refactored to share the new utilities between the MCP and the Chat Bot API 2026-04-03 19:06:43 +02:00