copilot-swe-agent[bot]
21a52b3bcc
fix: streamline forge translation preload
...
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/3b2dd335-d070-4067-b864-5584bb94571b
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
2026-05-04 20:15:56 +00:00
copilot-swe-agent[bot]
7ce4f82871
feat: discover forge translation mod sources
...
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/3b2dd335-d070-4067-b864-5584bb94571b
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
2026-05-04 20:11:43 +00:00
copilot-swe-agent[bot]
67066a145d
refactor: parse forge mods toml for translations
...
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/3d9090fb-cdf3-48e7-a7ce-575b54161f0e
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
2026-05-04 19:08:22 +00:00
copilot-swe-agent[bot]
d256517e21
feat: load forge mod translations from local jars
...
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/3d9090fb-cdf3-48e7-a7ce-575b54161f0e
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
2026-05-04 19:02:44 +00:00
copilot-swe-agent[bot]
b543825200
chore: finalize resource pack cache toggle
...
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/70cfa855-cff8-495e-ac06-9a65bb5cc913
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
2026-05-04 12:47:41 +00:00
copilot-swe-agent[bot]
b87b5abbe2
feat: add cached resource pack translation setting
...
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/70cfa855-cff8-495e-ac06-9a65bb5cc913
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
2026-05-04 12:32:13 +00:00
copilot-swe-agent[bot]
9f974da00d
chore: finalize resource pack translation support
...
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/d7467a13-d1ff-4cd6-a332-1ac389c445da
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
2026-05-04 12:21:28 +00:00
copilot-swe-agent[bot]
34f45543c3
feat: load chat translations from server resource packs
...
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/d7467a13-d1ff-4cd6-a332-1ac389c445da
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
2026-05-04 12:05:55 +00:00
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
copilot-swe-agent[bot]
6c70685d52
Changes before error encountered
...
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/e56a9086-4921-4504-ab06-ebb912cf52ce
2026-03-24 21:11:43 +00:00
copilot-swe-agent[bot]
3fb7625b39
Add chat formatting code propagation (bold, italic, underline, strikethrough, obfuscated)
...
Re-implements PR #2851 against the current System.Text.Json.Nodes codebase.
Changes:
- ChatParser.cs: Add FormattingCodes dict, update JSONData2String to propagate
formatting codes alongside colors, update NbtToString for the NBT chat path
(used in MC 1.20.4+), fix root-string shortcut to preserve formatting prefix
- DiscordBridge.cs: Add GetDiscordText() converting § codes to Discord Markdown,
handle unclosed formatting codes with end-of-string matching
End-to-end tested against Minecraft 1.21.11 (MC 26.1) offline server.
All 8 formatting types verified: bold(§l), italic(§o), strikethrough(§m),
underline(§n), combined, nested, reset-via-false, obfuscated(§k).
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/65b0d230-287c-4ed8-9b3c-a5ea25411804
2026-03-24 20:18:53 +00:00
copilot-swe-agent[bot]
654a16907b
Modernize data carriers to records and add primary constructors
...
Convert 14 data carrier classes to records:
- VillagerInfo, MapIcon, EnchantmentData: non-positional records (mutable properties)
- ForgeMod, SkinInfo, VillagerTrade, Node, Response: positional records
- CommandNode: sealed positional record
- CommandArgumentDescriptor: readonly record struct
- ColorRGBA: record struct (multiple constructors preserved)
- RecipeConfig, Recipe, BannerLayer: non-positional records
Add primary constructors to 6 classes:
- DataTypes, Protocol18Terrain, Protocol18Forge, ItemMovingHelper,
LastSeenMessageList, Acknowledgment, SuggestionTooltip
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 01:31:17 +00:00
copilot-swe-agent[bot]
81b756292e
Fix all compilation warnings (CS9107, CS8600, CS8604, CS8618, CS0168, CS0169, CS0649)
...
- Fix CS9107: Replace lowercase primary constructor parameter refs with
PascalCase base class properties in 90+ StructuredComponent files
- Fix CS8618: Add null! initializers for late-initialized properties
- Fix CS8600: Use nullable out parameters in World.cs, ChatParser.cs
- Fix CS8604: Add null guard in Compiler.cs, fix null-conditional in McClient.cs
- Fix CS0168: Replace unused variable with discard in DataTypes.cs
- Fix CS0169: Remove unused motionY field from McClient.cs
- Fix CS0649: Remove never-assigned steps field, simplify ClientIsMoving()
- Initialize client/handler with null! to avoid CS8618 cascade
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/milutinke/Minecraft-Console-Client/sessions/7fcee1b2-21e2-4457-b01b-5e0a1f07752f
2026-03-24 01:25:50 +00:00
copilot-swe-agent[bot]
c7bc25aa17
refactor: convert == null / != null to is null / is not null in 31 files
...
Replace old-style null comparisons with modern C# pattern matching
syntax across Commands, Protocol, Mapping, ChatBots, Physics,
Inventory, Logger, CommandHandler, Scripting, Crypto, and other modules.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 00:42:59 +00:00
copilot-swe-agent[bot]
446c6e7739
refactor: convert redundant new TypeName() to target-typed new()
...
Replace explicit constructor calls with target-typed new() expressions
where the type is already specified on the left side of the assignment.
This is a C# 9+ feature that reduces redundancy.
Files changed:
- Container.cs: field assignments in constructors
- EntityPalette18/112/113.cs: static field initializers
- ChatParser.cs: StringBuilder local variable
- Movement.cs: field assignments in constructor
- PacketPalette18.cs: field initializers
- EnchantmentMapping.cs: field reassignments
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 00:37:35 +00:00
copilot-swe-agent[bot]
c5df6a49c6
Modernize null-check patterns: use 'is null' and 'is not null'
...
Replace '== null' with 'is null' and '!= null' with 'is not null'
across 19 core files following modern C# pattern matching conventions.
Only literal null comparisons are changed. Assignments, value
comparisons, and LINQ expressions are left untouched.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 00:28:02 +00:00
copilot-swe-agent[bot]
64ccdcb39b
Address code review feedback
...
- Replace GetAwaiter().GetResult() with synchronous ReadAsStream()
- Use JsonNode.DeepClone() instead of serialize/parse round-trip
- Extract timeout magic number to named constant
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/milutinke/Minecraft-Console-Client/sessions/afcd1b7b-ea23-4a0d-bb46-a90b623406fc
2026-03-22 16:46:33 +00:00
copilot-swe-agent[bot]
15aabd9423
Replace legacy custom JSON parser with System.Text.Json
...
- Rewrite Json.cs to use System.Text.Json.Nodes (JsonNode, JsonObject, JsonArray)
- Add JsonNodeExtensions.GetStringValue() for backward-compatible string access
- Update all 14 consumer files to use the new JsonNode API
- Remove ~300 lines of hand-rolled JSON parsing code from 2013
- Replace KeyUtils.EscapeString with delegation to Json.EscapeString
Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
Agent-Logs-Url: https://github.com/milutinke/Minecraft-Console-Client/sessions/afcd1b7b-ea23-4a0d-bb46-a90b623406fc
2026-03-22 16:39:26 +00:00
BruceChen
967f67190c
Add FileInputBot for non-interactive debugging and fix NbtToString crash
...
FileInputBot (ChatBots/FileInputBot.cs):
- New ChatBot that monitors a text file (default: mcc_input.txt) for
commands, enabling MCC control from Cursor Shell or any non-interactive
environment where stdin is not available
- Activated by setting MCC_FILE_INPUT env var (e.g. MCC_FILE_INPUT=1)
- Polls every ~500ms for new lines appended to the file
- Lines starting with "/" are sent as server chat/commands
- Other lines are executed as MCC internal commands (same as console input)
- File path overridable via MCC_INPUT_FILE env var
McClient.cs:
- Load FileInputBot when MCC_FILE_INPUT environment variable is set
ChatParser.cs - NbtToString:
- Fix InvalidCastException when NBT "text" or nameless root tag values
are Int32 instead of String (happens with 1.20.6 SystemChat packets
containing numeric values in the chat component tree)
- Replace direct (string) casts with ?.ToString() ?? string.Empty
Made-with: Cursor
2026-03-19 00:45:51 +08:00
breadbyte
494be0930b
Merge branch 'master' into 1.20.6
2025-12-02 00:06:16 +08:00
breadbyte
27e66433cd
Hotfix for 'minecraft:chat_type' not present in the dictionary ( #2794 )
2024-09-07 03:45:45 +08:00
Anon
08c5c15557
1.20.6 - Not working yet
2024-06-16 01:19:09 +02:00
Anon
744de0dbd4
Removed debug logs
2024-02-28 11:49:50 +01:00
Anon
bc0781cee9
Fixed translations crash
2024-02-28 11:48:23 +01:00
Anon
620e8bf274
More debug info
2024-02-26 23:46:08 +01:00
Anon
1db0792d7b
Temporary Debug info
2024-02-26 23:39:20 +01:00
Anon
13de67b6f8
Fixed a crash on chat parsing.
...
Returned the commended try catch block.
2024-02-21 17:38:32 +01:00
Anon
35cfd4a7db
Fixed a NBT crash < 1.20.2 and Fixed a crash with parsing 'extra' section in Chat
2024-02-18 17:56:02 +01:00
ReinforceZwei
6d016332fb
1.20.4: Update NBT chat parser to handle text color
2024-02-11 18:15:52 +08:00
ReinforceZwei
a9f1ad4433
1.20.3: Update chat parser to parse new NBT format
2024-02-04 18:14:09 +08:00
ReinforceZwei
8da8f6044f
Fix message marker mixed with actual message body
...
Should fix regex not working for autorespond and other chatbots that relied on matching message
2023-03-25 16:42:28 +08:00
BruceChen
3735cab9dd
Fix 1.19.3 message signature issue
2023-01-29 22:39:11 +08:00
BruceChen
b79dd1d379
Bug fix
2023-01-21 01:34:05 +08:00
ReinforceZwei
cb57db8328
ChatParser: Catch exception in download language file
2023-01-19 18:02:34 +08:00
BruceChen
ced65122f1
Trim
2023-01-14 21:07:09 +08:00
BruceChen
ba0d9ba3fc
merge brigadier-dev into milutinke:1.19.3
2023-01-14 20:42:15 +08:00
BruceChen
052060b23c
Bug fix
2023-01-14 02:41:03 +08:00
BruceChen
0ce9690778
1.19.3 Chat command signing support & Update chat paser
2023-01-14 00:53:36 +08:00
BruceChen
fe0b268878
1.19.3 Message signing support.
2023-01-13 16:12:10 +08:00
BruceChen
7ee08092d4
legacy color support
2022-12-14 14:45:51 +08:00
BruceChen
5e11ed3896
Tooltip support & Bug fix
2022-12-11 13:00:19 +08:00
BruceChen
892999ac98
Merge into master
2022-12-06 20:32:46 +08:00
BruceChen
84cf749344
Implement command completion suggestions.
2022-12-06 15:50:17 +08:00
BruceChen
6c3bfb82ee
Remove color code from text
2022-11-30 16:08:55 +08:00
BruceChen
077e3a5e9f
Crowdin localization support ( #2310 )
...
* Switching to use resource files
* Update Crowdin configuration file
* Code cleanup
2022-10-28 11:13:20 +08:00
BruceChen
ee57d101c0
Fix \n in xx.lang file
2022-10-18 10:39:16 +08:00
BruceChen
bce2bc8b7f
Support displaying caught items
2022-10-17 17:42:00 +08:00
BruceChen
01802dfcff
Fix sign command
2022-10-14 20:34:45 +08:00
BruceChen
a7e69fd9fd
Update ConsoleInteractive
2022-10-14 10:33:09 +08:00
BruceChen
16c1d1fd77
Refactoring Settings.cs
2022-10-05 15:02:30 +08:00