Commit graph

2109 commits

Author SHA1 Message Date
BruceChen
871305bd72 Add server status display and protocol version upgrade handling
- Introduced a new `ServerStatusInfo` class to encapsulate server status data including MOTD, player counts, and version information.
- Implemented `ServerStatusDisplay` to format and display server status information in both classic and TUI modes.
- Added protocol version upgrade logic in `ProtocolHandler` to determine the highest supported protocol version for multi-version servers.
- Updated translations to support new server status labels and messages.
- Created `ServerStatusPanelBuilder` for TUI to visually represent server status with player information and connection details.
2026-03-30 01:39:37 +08:00
BruceChen
2f03f66f5c Enhance useblock command to support hand selection
- Updated the 'useblock' command to allow specifying the hand (mainhand or offhand) for block placement.
- Modified command usage description to reflect the new optional parameter.
- Adjusted the command execution logic to handle the selected hand during block placement.
2026-03-29 22:40:43 +08:00
BruceChen
d05e3148f1 Refactor explosion packet handling for protocol version updates
- Updated explosion packet processing to accommodate changes in Minecraft protocol versions, specifically for versions 1.21.2 and 1.20.4.
- Removed obsolete fields such as explosion strength and block records for newer versions, and added support for optional knockback and particle data.
- Enhanced backward compatibility for earlier versions by maintaining existing logic for explosion data retrieval.
2026-03-29 22:40:43 +08:00
BruceChen
c6b9121a59
Add Minimap for MCC (with mouse support) 2026-03-29 19:54:54 +08:00
BruceChen
d427a6e160 Add tooltip service and integrate with MinimapControl
- Introduced TuiTooltipService for managing tooltips across TUI components.
- Updated MinimapControl to utilize the new tooltip service for enhanced entity information display.
- Refactored tooltip rendering logic to improve visibility and interaction based on mouse position.
2026-03-29 19:53:50 +08:00
BruceChen
0566f2518b Add tooltip functionality to MinimapControl
- Introduced a tooltip system for displaying entity information on the minimap.
- Enhanced the SampleResult class to include entity mapping and block type summaries.
- Updated the rendering logic to incorporate tooltips and improve user interaction with the minimap.
2026-03-29 19:53:50 +08:00
BruceChen
a1516e9680 Add message aggregation and relay options for DiscordBridge
- Introduced message aggregation functionality with a configurable interval to reduce Discord API rate limits.
- Added options to relay all messages from Minecraft, including system messages, to Discord.
- Updated configuration comments to reflect new settings and their purposes.
2026-03-29 19:53:50 +08:00
BruceChen
6631180f8a Minimap support 2026-03-29 19:53:50 +08:00
BruceChen
c2475ea9e5
Merge pull request #3018 from BruceChenQAQ/master
Handle TUI startup failures with classic fallback
2026-03-29 01:58:18 +08:00
BruceChen
157d90273b Handle TUI startup failures with classic fallback 2026-03-29 01:57:21 +08:00
BruceChen
17d4b78022
Merge pull request #3017 from BruceChenQAQ/master
Add tryout command for TUI onboarding
2026-03-29 01:36:08 +08:00
BruceChen
b757215dbb Temporarily disable classic mode TUI recommendation
Commented out the MaybePrintClassicModeTuiRecommendation function call to prevent its execution until the related issue is resolved. Reference to the issue is included for tracking purposes.
2026-03-29 01:34:10 +08:00
BruceChen
83f14a64f8 Add tryout command for TUI onboarding
Add a new /tryout command as an extensible entry point for recommended feature trials, with /tryout tui as the first action. The command updates [Console.General] ConsoleMode to "tui", writes the config back immediately, and explains both how to revert the change and that a restart is required.

Also show a startup recommendation in classic console mode when stdin is interactive, so users can discover the TUI experience without manually editing MinecraftClient.ini. All user-facing text is routed through the translation resources.
2026-03-29 01:34:10 +08:00
BruceChen
0d34d5e33d
Merge pull request #3016 from BruceChenQAQ/master
Fix NullReferenceException in ConsoleIO
2026-03-29 00:56:44 +08:00
BruceChen
9cada9d19d Refactor ConsoleIO and Program settings handling
- Updated ConsoleIO to allow writing to the console when Backend is null, improving error handling.
- Simplified settings write-back logic in Program.cs to ensure default settings are written correctly based on configuration results.
2026-03-29 00:54:34 +08:00
BruceChen
f0fda8ce9f Update base_path in crowdin.yml to use relative path 2026-03-28 23:38:56 +08:00
BruceChen
2d677e0f0d Fix skill frontmatter validation 2026-03-28 23:19:47 +08:00
BruceChen
5270aed315
Merge pull request #3011: TUI support for more container 2026-03-28 02:20:09 +08:00
BruceChen
0194380fbc TUI support for more container 2026-03-28 02:18:11 +08:00
BruceChen
ef133f3d6d Enhance container handling for Minecraft protocol updates
- Updated the Container class to include a protocol version parameter for accurate container type mapping.
- Modified the GetContainerType method to account for changes in container types introduced in Minecraft 1.20.4.
- Added new container types, including Crafter, to the ContainerType enum.
- Adjusted ContainerTypeExtensions to reflect the new container mappings and ensure compatibility with the updated protocol.
2026-03-28 02:17:47 +08:00
BruceChen
22f46d14a9 Fix negative location error 2026-03-28 02:17:47 +08:00
BruceChen
448e1ef6f5
Merge pull request #3010 from BruceChenQAQ/master
Update Crowdin GitHub Action version in build-and-release.yml
2026-03-28 00:48:31 +08:00
BruceChen
19a60fd85c Update Crowdin GitHub Action version in build-and-release.yml
- Upgraded the Crowdin GitHub Action from v1.20.4 to v2.4.0 to incorporate the latest updates and improvements.
2026-03-28 00:43:28 +08:00
BruceChen
ef8e41196b Update Crowdin GitHub Action version in build-and-release.yml
- Upgraded the Crowdin GitHub Action from v1.6.0 to v1.20.4 to leverage the latest features and improvements.
2026-03-28 00:40:05 +08:00
BruceChen
da330a158e Enhance Crowdin integration in build-and-release.yml
- Added a step to check for the availability of Crowdin secrets before downloading translations.
- Updated the condition for fetching translations to rely on the new check for Crowdin credentials.
- Corrected the assembly configuration to use the correct date format for builds.
2026-03-28 00:36:02 +08:00
BruceChen
c42133797e Update build-and-release.yml to enhance translation fetching logic
- Modified the condition for fetching translations to include checks for CROWDIN_PROJECT_ID and CROWDIN_PERSONAL_TOKEN.
- Added environment variables for CROWDIN credentials to streamline the translation process.
2026-03-28 00:30:53 +08:00
Anon
ce7bf0f400
Fixed shovel not creating paths from grass when used 2026-03-27 16:48:34 +01:00
Anon
0a9948a92a Merge branch 'master' of github.com:MCCTeam/Minecraft-Console-Client into fix/use-item 2026-03-27 16:46:29 +01:00
Anon
0c9ff137b2 Fixed shovel not being able to be used on dirt 2026-03-27 16:43:53 +01:00
Anon
57cf5c75c0
[skipci]Merge pull request #3007 from MCCTeam/copilot/remove-empty-warning-rename-tips 2026-03-27 15:53:47 +01:00
Anon
df05eb6dc4
Implemented effects support 2026-03-27 15:51:00 +01:00
Anon
f6446b198d Implemented effects support, as a command, chat notification and added in TUI mode 2026-03-27 15:47:27 +01:00
BruceChen
4b9e0e93aa Fix: cursor locate at the beginning when pressing Up to view history 2026-03-27 22:47:20 +08:00
copilot-swe-agent[bot]
4993498d52 docs: remove empty warning, rename Tips to Notes, add MCC.js recommendation
Agent-Logs-Url: https://github.com/MCCTeam/Minecraft-Console-Client/sessions/8f04f3c4-cedd-427c-ad3c-c2488363fe6f

Co-authored-by: milutinke <441903+milutinke@users.noreply.github.com>
2026-03-27 13:45:45 +00:00
copilot-swe-agent[bot]
20f536188a Initial plan 2026-03-27 13:36:21 +00:00
breadbyte
a7a3566756
Update build-and-release.yml
Fixes long commit message >256 chars breaking releases
Cleanup build code and consolidate variables
Make skip ci more user-friendly by including all variations of skip-ci and ci-skip
Add PublishSingleFile flag
2026-03-27 13:05:20 +08:00
breadbyte
cac9e5c625 skipci update ConsoleInteractive library 2026-03-27 12:08:05 +08:00
BruceChen
ac1d5c37a6 Refactor tab cycling logic in TUI command input handling
- Simplified the condition for disabling tab cycling by checking only for the Tab key.
- Improved clarity in the command key down event handling for better user experience.
2026-03-27 00:30:52 +08:00
BruceChen
fe7ab9f373 Implement startup state management and enhance configuration loading
- Introduced a new `StartupState` class to encapsulate the state collected before the console backend initialization.
- Updated the configuration loading process to handle legacy upgrades and provide detailed feedback on configuration status.
- Enhanced the TUI backend to utilize the new startup state for improved initialization flow.
- Refactored the `LoadFromFile` method in `Settings` to return a structured result, improving error handling and clarity.
2026-03-27 00:30:52 +08:00
BruceChen
b33ee7e4a1 Refactor exit handling and command input in TUI
- Improved the exit process by ensuring the backend shutdown is called after handling offline prompts.
- Enhanced command input history management by encapsulating text setting logic in a dedicated method to prevent event handler interference.
- Adjusted the background color in the color parser for better visibility.
- Increased the sleep duration in the TUI exit guard thread to ensure a smoother shutdown process.
2026-03-27 00:30:52 +08:00
Anon
0ceaaead10
[skipci]Merge pull request #2999 from milutinke/master 2026-03-26 01:01:04 +01:00
Anon
129f5bda9f
Reverted adding -p:PublishSingleFile=true 2026-03-26 01:00:36 +01:00
Anon
59332be062
[skipci]Merge pull request #2998 from milutinke/fix-git-action-parameter 2026-03-26 00:53:15 +01:00
Anon
5df03b0abd
Added PublishSingleFile to fix a build issue with TUI version 2026-03-26 00:52:24 +01:00
Anon
7da47d36dc
[skipci]Fixed session id changing not working in the Web Socket Chat bot. 2026-03-25 22:02:22 +01:00
Anon
05afeaf5bc Fixed session if changing in the Web Socket Chat bot. 2026-03-25 21:59:01 +01:00
Anon
966b787a4c
feat: Added missing enchantments for new versions 2026-03-25 20:01:43 +01:00
BruceChen
6beb00bae4
Fix open container crash (#2996) 2026-03-26 02:37:11 +08:00
BruceChen
e5b81fe428 feat: add support for unsupported container type in inventory TUI
- Implemented a check in the Inventory command to log a warning and return a failure status if the container type is not PlayerInventory.
- Added a new localized string for the warning message to inform users about unsupported container types.

These changes improve user feedback and error handling in the inventory management system.
2026-03-26 02:35:50 +08:00
BruceChen
dcfff3f1ba feat: enhance Protocol18 and SocketWrapper for improved functionality
- Added support for the new world border hit flag in Protocol18 for protocol version 1.21.2.
- Updated SocketWrapper to throw a SocketException if SendDataRAW is called when not connected, improving error handling.

These changes enhance the protocol handling and error management in the Minecraft Console Client.
2026-03-26 02:35:43 +08:00