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]
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
BruceChen
8df39ba74a
feat: add MC 1.21.5 (protocol 770) support
...
Full protocol adaptation for Minecraft 1.21.5:
- Protocol version mapping: 770 -> 1.21.5
- Packet palette: AddExperienceOrb removed (S2C), TestInstanceBlockStatus
added (S2C), SetTestBlock and TestInstanceBlockAction added (C2S)
- Entity metadata palette: 5 new serializer types (OptionalLivingEntityReference,
CowVariant, WolfSoundVariant, PigVariant, ChickenVariant), OPTIONAL_UUID
replaced by OPTIONAL_LIVING_ENTITY_REFERENCE
- Item palette: 11 new items (Bush, FireflyBush, DryShortGrass, DryTallGrass,
Wildflowers, LeafLitter, CactusFlower, TestBlock, TestInstanceBlock,
BlueEgg, BrownEgg)
- Entity palette: Potion split into SplashPotion and LingeringPotion
- Block palette: 9 new blocks (bush, cactus_flower, firefly_bush, leaf_litter,
short_dry_grass, tall_dry_grass, test_block, test_instance_block, wildflowers)
- Structured components: 31 new components including tooltip_display, weapon,
blocks_attacks, potion_duration_scale, provides_trim_material,
provides_banner_patterns, break_sound, and 25 entity variant components;
unbreakable changed from Bool to Unit; instrument changed to EitherHolder
Made-with: Cursor
2026-03-21 00:48:27 +08:00
BruceChen
896263acc8
fix: resolve entity tracking, container interaction, and enchantment mapping issues for 1.21
...
- SpawnEntity packet handler now registers non-player entities via OnSpawnEntity
for protocol >= 1.20.2 (previously only players were tracked, causing 'entity near'
to find nothing)
- PlaceBlock gains lookAtBlock option that sends a position/rotation update before the
block placement packet, fixing containers not opening via useblock
- Enchantment registry IDs are now dynamically parsed from server RegistryData
(minecraft:enchantment), fixing incorrect enchantment name display in 1.21
- AttributeModifiersComponent uses base SubComponent type to avoid InvalidCastException
when parsing 1.21-specific attribute subcomponents
Made-with: Cursor
2026-03-20 02:35:52 +08:00
BruceChen
ff1c570a78
Handle non-interactive terminal environments gracefully
...
When MCC runs in non-interactive terminals (e.g. CI runners, IDE
embedded shells, piped input), several Console APIs throw exceptions
because there is no real console attached.
Changes:
- Program.cs: Wrap Console.KeyAvailable / Console.ReadKey in
HandleFailure() with try-catch so MCC does not crash on startup
failure in headless environments.
- Chunk.cs: Wrap Console.BufferWidth / BufferHeight in try-catch
with fallback values (120x50) to prevent exceptions when rendering
chunk maps without a console buffer.
- Map.cs: Same treatment for the map rendering path - use safe
fallback values when Console.BufferWidth/Height are unavailable.
- ReplayHandler.cs: Replace Array.Reverse() (returns void in newer
.NET) with .AsEnumerable().Reverse() to fix compilation with
.NET 10 SDK where the void return breaks the fluent chain.
Made-with: Cursor
2026-03-19 00:11:13 +08:00
Anon
2409de2a2f
Fix prevent AntiCheat Block Breaking (In Scripts)
...
Fix prevent AntiCheat Block Breaking (In Scripts)
2024-12-25 16:56:07 +01:00
yaggod
d0caf4c9ee
fixed typo in word heAlper lol
2024-04-16 21:21:08 +03:00
Roman Danilov
91ef890bb6
Auxiliary class for Direction, preparation for autodetection of the broken side of the block
2024-03-05 20:30:58 +05:00
Roman Danilov
fde50c1728
AntiCheat fix prevent Block Breaking
2024-03-05 18:54:29 +05:00
ozi2285
968f864f34
Added ShiftRightClick ( #2582 )
...
* Added ShiftRightClick
* Added ShiftRightClick
* Added ShiftRightClick
* Added ShiftRightClick
* Added ShiftRightClick
* Added ShiftRightClick
* Added ShiftRightClick
* Added ShiftRightClick
* Updated Protocol18.cs ShiftRightClick Description for ReinforceZwei's Suggestion
* Just Deleted Added ShiftRightClick's Description Line
* Just Deleted Added ShiftRightClick's Description Lines
* Made Change With Informaiton ReinforceZwei Given to Me About Switch-Case and Shorten the Code.
* Re Added Lines That Got Deleted By Mistake
* Add translation key for shift right-click
---------
Co-authored-by: ReinforceZwei <39955851+ReinforceZwei@users.noreply.github.com>
2023-09-16 19:39:55 +08:00
ReinforceZwei
37bcad37e0
[skip ci] Normalize all line endings
2023-09-15 14:44:11 +08:00
Anon
fce12db33f
Added a command to (re)name items in the Anvil
2023-06-03 16:12:17 +02:00
Anon
c7597e8822
Added slab handling 1.13-1.19.4
2023-05-16 23:19:31 +02:00
Anon
0a57c927d7
Added access to App Vars inside the Chat Bot API via 3 new methods. Added access to Random class inside the execif command
2023-03-31 18:17:03 +02:00
Anon
db6422d154
Partialy fixed interaction with Armor Stand
2023-03-30 21:06:54 +02:00
BruceChen
50dd5a3ba3
Support specifying the digging duration
2023-01-15 20:56:10 +08:00
BruceChen
338f534239
Fix script not showing execution results.
2023-01-15 19:59:57 +08:00
BruceChen
7ee08092d4
legacy color support
2022-12-14 14:45:51 +08:00
BruceChen
7900108763
Bug fix
2022-12-11 17:31:37 +08:00
BruceChen
94a3c92b36
Bug fix
2022-12-11 16:30:45 +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
2ad6d02d59
Display ETA when downloading.
2022-12-01 23:37:15 +08:00
BruceChen
28827b720a
Support downloading updates via command.
2022-12-01 22:55:48 +08:00
BruceChen
759eb888a6
Fix bug in "/entity near"
2022-11-30 22:17:02 +08:00
BruceChen
046f5ddbc6
Merge branch 'master' of https://github.com/MCCTeam/Minecraft-Console-Client
2022-11-30 18:02:37 +08:00
BruceChen
c77b3e705f
[SKIP_BUILD] Merge pull request #2353 from ITHackerstein/entitynear-command
...
entitynear: New command to interact with the entity closest to the player.
2022-11-30 18:00:44 +08:00
BruceChen
60bec055a5
Migrate to the "entity" command.
2022-11-30 17:58:29 +08:00
BruceChen
6c3bfb82ee
Remove color code from text
2022-11-30 16:08:55 +08:00
ITHackerstein
5b471b518f
EntityNear: Created a new command called 'entitynear' similar to the
...
'entity' command except it will interact with the entity closest to
the player.
2022-11-28 08:29:55 +01:00
BruceChen
ef39e8329c
[SKIP_BUILD] Change file encoding to UTF-8 with BOM
2022-11-28 13:55:05 +08:00
BruceChen
f6a11dffdf
Entitycmd: Replace Parse with TryParse
2022-11-25 10:30:51 +08:00
ITHackerstein
30861a92ee
Entitycmd: Added try-catch statement around the Enum.Parse instruction
2022-11-24 08:30:45 +01:00
ITHackerstein
3d2b9b22a3
Entitycmd: Fixed a bug for which when passing as the second argument
...
the entity type the command will error out showing its usage
description.
Also now when the type of interaction isn't passed it shows a list
of all the entities with that type.
2022-11-23 10:52:44 +01:00
BruceChen
5d2589b10f
Merge remote-tracking branch 'origin/master' into brigadier-dev
2022-11-07 15:39:46 +08:00
BruceChen
ae23ead4c3
[SKIP_BUILD] FIx "/reco" and "/connect" not working properly
2022-11-05 20:27:10 +08:00
BruceChen
f2f88ac009
Merge master into brigadier-dev
2022-10-29 11:44:54 +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
f8aefaf129
init
2022-10-26 08:54:54 +08:00
Milutinke
428c5eb71e
Fixed BlockInfo overwrite.
2022-10-17 16:17:23 +02:00
Milutinke
a31b4a792b
Improvements to the Bed, Blockinfo and Enchant commands.
2022-10-17 15:14:55 +02:00
BruceChen
117a38b5f9
Better translation
2022-10-17 20:00:33 +08:00
BruceChen
db6d6c80bf
Bug fix
2022-10-16 20:37:07 +08:00
Milutinke
df410a9c8e
Fully transalted.
2022-10-16 13:37:49 +02:00
Milutinke
d4129e04bb
Implemented block reporting as requested in #1762
2022-10-16 13:33:04 +02:00
Anon
12e2c6b4bb
Implemented Enchanting
...
Implemented Enchanting
2022-10-14 16:02:34 +00:00
Anon
e44973e900
Merge branch 'master' into farmbot
2022-10-14 16:00:46 +00:00
Milutinke
c47add39a4
Added Enchanting Table ASCII Art.
...
Added ChatBot method for enchantments.
Changed the how the list of enchantments looks, now looks cleaner + has Roman numbers.
Added safe guards to the echant command.
2022-10-14 15:33:33 +02:00
BruceChen
89b7110839
Update Map Bot
2022-10-13 19:34:49 +08:00