Minecraft-Console-Client/MinecraftClient/ChatBots
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
..
Alerts.cs Update Alert.cs (#2496) 2023-05-06 21:55:21 +08:00
AntiAFK.cs Added slab handling for 1.20/.1 2023-06-23 16:25:18 +02:00
AutoAttack.cs Fix 1.19.3 key exchange in offline mode 2023-01-17 20:16:35 +08:00
AutoCraft.cs Bug fix 2022-12-11 17:31:37 +08:00
AutoDig.cs AntiCheat fix prevent Block Breaking 2024-03-05 18:54:29 +05:00
AutoDrop.cs Bug fix 2022-12-11 17:31:37 +08:00
AutoEat.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
AutoFishing.cs Bug fix 2022-12-11 17:31:37 +08:00
AutoRelog.cs Make AutoRelog more reliable 2024-03-07 09:54:40 +08:00
AutoRespond.cs Tooltip support & Bug fix 2022-12-11 13:00:19 +08:00
ChatLog.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
DiscordBridge.cs legacy color support 2022-12-14 14:45:51 +08:00
Farmer.cs AntiCheat fix prevent Block Breaking 2024-03-05 18:54:29 +05:00
FileInputBot.cs Add FileInputBot for non-interactive debugging and fix NbtToString crash 2026-03-19 00:45:51 +08:00
FollowPlayer.cs Added slab handling for 1.20/.1 2023-06-23 16:25:18 +02:00
HangmanGame.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
ItemsCollector.cs Added slab handling for 1.20/.1 2023-06-23 16:25:18 +02:00
Mailer.cs [skip ci] Normalize all line endings 2023-09-15 14:44:11 +08:00
Map.cs Handle non-interactive terminal environments gracefully 2026-03-19 00:11:13 +08:00
PlayerListLogger.cs Merge into master 2022-12-06 20:32:46 +08:00
RemoteControl.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
ReplayCapture.cs Bug fix 2022-12-11 17:31:37 +08:00
Script.cs Added documentation examples and covered an edge case 2023-07-16 20:45:24 +02:00
ScriptScheduler.cs Fix script not showing execution results. 2023-01-15 19:59:57 +08:00
TelegramBridge.cs Updated translations 2023-03-26 14:33:06 +02:00
TestBot.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00