Commit graph

2445 commits

Author SHA1 Message Date
Anon
c19fdd6634
fix: Exit on failure setting
fix: Exit on failure setting
2026-07-19 11:26:45 +02:00
Anon
fceed9b4d7 chore: remove run-exit-on-failure-test.sh 2026-07-19 11:23:31 +02:00
Anon
25bbe35718 fix: exit on failure instead of prompting 2026-07-17 19:16:00 +02:00
Anon
419c140dc4
[skipci]Merge pull request #3168 from MCCTeam/dependabot/npm_and_yarn/docs/websocket-driver-0.7.5
chore(deps): bump websocket-driver from 0.7.4 to 0.7.5 in /docs
2026-07-17 07:48:46 +02:00
dependabot[bot]
720183955d
chore(deps): bump websocket-driver from 0.7.4 to 0.7.5 in /docs
Bumps [websocket-driver](https://github.com/faye/websocket-driver-node) from 0.7.4 to 0.7.5.
- [Changelog](https://github.com/faye/websocket-driver-node/blob/main/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-driver-node/compare/0.7.4...0.7.5)

---
updated-dependencies:
- dependency-name: websocket-driver
  dependency-version: 0.7.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-15 22:09:19 +00:00
Anon
142fb107db
feat: Added Minecraft 26.2 support
Add Minecraft 26.2 support (protocol 776)
2026-07-04 21:58:48 +02:00
Anon
99f5744715
feat: Expose NBT/component data in inventory MCP tools
feat(inventory): expose NBT/component data in inventory MCP tools
2026-07-04 21:53:42 +02:00
Reed Pennock
d1df44aae5 chore: Update physics shapes, minimap data and version table for 26.2
- BlockShapeData.json: add the 28 new sulfur/cinnabar blocks by copying
  shape entries from analogous blocks (stone, stone_slab, stone_stairs,
  stone_brick_wall, pointed_dripstone); state counts verified against the
  26.2 server blocks.json. PrismarineJS minecraft-data has no 26.x data
  yet, so these should be regenerated once it does.
- MinimapBlockColors.json: add new blocks with MapColor values taken from
  the decompiled 26.2 Blocks.java (COLOR_YELLOW / GOLD / COLOR_RED).
  Merged by hand because gen_block_color_map.py cannot parse the new
  BlockItemIds-based registration format yet.
- MinimapEntityCategories.json: add SulfurCube as hostile
  (MobCategory.MONSTER in EntityTypes.java, which now holds entity
  registrations instead of EntityType.java).
- AGENTS.md: add the 26.2 row to the version support table.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 16:43:44 -05:00
Reed Pennock
e4161af158 feat: Wire MC 26.2 (protocol 776) routing and adapt Teams packet parsing
- Add MC_26_2_Version = 776 and bump all upper-bound feature gates
- Route 26.2 to the new item/block/entity palettes and
  StructuredComponentsRegistry262
- Reuse PacketPalette261 (play/config packet IDs are unchanged in 26.2;
  the only registry change is spectate_entity renamed to spectator_action
  at the same ID, which MCC does not send) and EntityMetadataPalette261
  (serializer list is identical)
- Add a 26.2 branch for Set Player Team parsing: field order changed to
  displayName, prefix, suffix, visibility, collision rule, then color as
  Optional<TeamColor> (absent maps to -1) and options byte last
- Register protocol 776 in both supported-protocol lists and the
  version string mappings; bump MCHighestVersion to 26.2

JoinGame gained a trailing onlineMode bool and LoginFinished a trailing
session UUID in 26.2; both sit after every field MCC reads, so parsing
is unaffected.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 16:43:31 -05:00
Reed Pennock
22685a720c feat: Add MC 26.2 palettes, registries and new sulfur/cinnabar content
Generated from the 26.2 server data reports (registries.json / blocks.json):
- ItemPalette262 (1537 items, 31 new; IDs shifted by early sulfur/cinnabar inserts)
- Palette262 blocks (1196 blocks, 32366 states, 28 new)
- EntityPalette262 (158 entities, new sulfur_cube)
- StructuredComponentsRegistry262 with new sulfur_cube_content component
  at ID 78 (shifts IDs 78-109 up by one); wire format is one ItemStackTemplate
- New ItemType/Material/EntityType enum entries for the sulfur and
  cinnabar families, MusicDiscBounce, SulfurSpike and SulfurCube

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 16:43:20 -05:00
Ítalo Seara
f34b8ba989 feat(inventory): expose NBT/component data in inventory MCP tools
Add a nullable `Nbt` field to `MccInventorySnapshotSlot`,
`MccInventorySearchMatch`, and `MccItemStackSnapshot` so that callers
can access the full item metadata beyond just material and count.

For 1.20.6+ servers the field is a map of component name
(e.g. "minecraft:custom_data") to the serialized component object.
For legacy servers it is the raw NBT dictionary. The field is omitted
entirely for vanilla items that carry no extra data, so there is no
noise for plain items like Stone or Dirt.

Implementation:
- `StructuredComponent`: add `ComponentName` property (set by the
  registry during parse) and mark both it and `TypeId` with
  `[JsonIgnore]` so they are excluded from component serialization.
- `StructuredComponentRegistry.ParseComponent`: assign `ComponentName`
  after instantiation.
- `MccGameCommon.BuildNbt`: new helper that serializes components by
  runtime type (fixing the polymorphism issue with System.Text.Json)
  keyed by component name, falling back to the legacy NBT dictionary.
- Snapshot and search query builders updated to call `BuildNbt`.
2026-06-27 14:41:41 -03:00
Anon
95031338bf
feat: Added Data Path utility for C# scripts/ChatBots
Adds a utility class that allows C# scripts to init a configuration folder for them and get it's path.
2026-06-25 23:10:18 +02:00
Anon
d3c87fcd36
[skipci]chores: Updated skills
chores: Updated skills
2026-06-25 23:06:35 +02:00
Anon
3c452dfcc5 Updated skills 2026-06-25 23:02:43 +02:00
Andy
aee35c3f58
Add English translations to DataPath comments
Updated comments to include English translations for clarity.
2026-06-21 10:53:11 +08:00
Anon
c23a71c489
[skipci]Merge pull request #3159 from MCCTeam/dependabot/npm_and_yarn/docs/webpack-dev-server-5.2.5
chore(deps): bump webpack-dev-server from 5.2.4 to 5.2.5 in /docs
2026-06-20 23:05:44 +02:00
dependabot[bot]
800f757804
chore(deps): bump webpack-dev-server from 5.2.4 to 5.2.5 in /docs
Bumps [webpack-dev-server](https://github.com/webpack/webpack-dev-server) from 5.2.4 to 5.2.5.
- [Release notes](https://github.com/webpack/webpack-dev-server/releases)
- [Changelog](https://github.com/webpack/webpack-dev-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-dev-server/compare/v5.2.4...v5.2.5)

---
updated-dependencies:
- dependency-name: webpack-dev-server
  dependency-version: 5.2.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-20 21:01:34 +00:00
Anon
e0ba34f7fe
[skipci]Merge pull request #3156 from MCCTeam/dependabot/npm_and_yarn/docs/undici-7.28.0
chore(deps): bump undici from 7.24.5 to 7.28.0 in /docs
2026-06-20 23:00:36 +02:00
Anon
9edf53250a
[skipci]Merge pull request #3158 from MCCTeam/dependabot/npm_and_yarn/docs/dompurify-3.4.11
chore(deps): bump dompurify from 3.4.10 to 3.4.11 in /docs
2026-06-20 23:00:26 +02:00
dependabot[bot]
3501ea142f
chore(deps): bump dompurify from 3.4.10 to 3.4.11 in /docs
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.4.10 to 3.4.11.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.4.10...3.4.11)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.4.11
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-20 17:15:53 +00:00
dependabot[bot]
e8afeea3d6
chore(deps): bump undici from 7.24.5 to 7.28.0 in /docs
Bumps [undici](https://github.com/nodejs/undici) from 7.24.5 to 7.28.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v7.24.5...v7.28.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 7.28.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-20 10:57:02 +00:00
Andy
aa1b6f968e
Add DataPath.cs and revert CSharpRunner.cs changes
# Submission Instructions

## Content of this submission

### 1.  Synchronize official CSharpRunner.cs
- Synchronize `CSharpRunner.cs` to the latest official version
- **Removed** extended support for non-standard metadata formats (XML, C# style, JS style)
- Restore to the official standard metadata parsing method

### 2.  Migrate DataPath.cs
- Migrate `DataPath.cs` to the new version of the code repository
- Maintain the original functionality unchanged:
  - `DataPath.Init("ScriptName")` - create a configuration folder
  - `DataPath.Get()` - Gets the path of the configuration folder

## Reason for change
1. **Facilitate official merging**: Retaining custom metadata formats increases the risk of conflicts with the official codebase. Removing them allows for smoother acceptance of official updates
2. **Reduce maintenance costs**: The official CSharpRunner.cs undergoes frequent changes, making the maintenance of custom branches a significant workload
3. **Maintain consistency**: Keep consistent with the official version to avoid compatibility issues caused by format differences

## Scope of impact
- Previously supported non-standard metadata formats (XML, C# style, JS style) will no longer be recognized
- Only supports official standard metadata formats
- The functionality of DataPath.cs remains unaffected, and the configuration management function is still operational and available

## Remarks
- DataPath.cs and CSharpRunner.cs have previously been modified, and this time it is only for migration and synchronization purposes
- AI-assisted participation was involved in the previous modification process
2026-06-19 13:18:04 +08:00
Anon
25a2f5a4a3
bugfix: handle null/empty profile name in ProfileComponent serialization
fix: handle null/empty profile name in ProfileComponent serialization
2026-06-17 11:31:17 +02:00
Anon
85fe6b451b fix: handle null/empty profile name in ProfileComponent serialization
Prevents NullReferenceException crash when receiving player head items
with an empty or absent profile name. The Minecraft protocol permits
empty names in the profile component; the serialization path now
falls back to an empty string instead of throwing.
2026-06-17 11:27:23 +02:00
Anon
72200fc1ef
bugfix: restore full color depth for hex color codes (§#RRGGBB)
bugfix: restore full color depth for hex color codes (§#RRGGBB)
2026-06-17 11:07:59 +02:00
Anon
c05c1f3c02
[skipci]Merge pull request #3148 from MCCTeam/dependabot/npm_and_yarn/docs/launch-editor-2.14.1
chore(deps): bump launch-editor from 2.13.2 to 2.14.1 in /docs
2026-06-17 11:06:04 +02:00
Anon
73377685b4 fix: restore full color depth for hex color codes (§#RRGGBB)
After the dialog system PR (#3143), ResolveHexColors in ClassicConsoleBackend
mapped every §#RRGGBB hex color to the nearest of 16 standard Minecraft colors
via NearestMcColor. This meant all server-sent hex colors were downgraded to
4-bit ANSI regardless of the user's ConsoleColorMode setting.

Replaced the nearest-color lookup with ColorHelper.GetColorEscapeCode, which
generates the right output for each mode: 24-bit ANSI in vt100_24bit mode, 8-bit
in vt100_8bit, 4-bit in vt100_4bit, ConsoleColor in legacy_4bit.

Fixes #3146.
2026-06-17 11:04:06 +02:00
Anon
e6b461e7b2
[skipci]Merge pull request #3149 from MCCTeam/dependabot/npm_and_yarn/docs/markdown-it-14.2.0
chore(deps): bump markdown-it from 14.1.1 to 14.2.0 in /docs
2026-06-17 10:49:23 +02:00
dependabot[bot]
327d3a1c37
chore(deps): bump markdown-it from 14.1.1 to 14.2.0 in /docs
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 14.1.1 to 14.2.0.
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/14.1.1...14.2.0)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-version: 14.2.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-17 08:40:45 +00:00
dependabot[bot]
ef1c8fe740
chore(deps): bump launch-editor from 2.13.2 to 2.14.1 in /docs
Bumps [launch-editor](https://github.com/vitejs/launch-editor) from 2.13.2 to 2.14.1.
- [Commits](https://github.com/vitejs/launch-editor/compare/v2.13.2...v2.14.1)

---
updated-dependencies:
- dependency-name: launch-editor
  dependency-version: 2.14.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-17 08:40:37 +00:00
Anon
31876d485a
[skipci]Merge pull request #3147 from MCCTeam/dependabot/npm_and_yarn/docs/dompurify-3.4.10
chore(deps): bump dompurify from 3.4.0 to 3.4.10 in /docs
2026-06-17 10:39:13 +02:00
dependabot[bot]
3f71f7afef
chore(deps): bump dompurify from 3.4.0 to 3.4.10 in /docs
Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.4.0 to 3.4.10.
- [Release notes](https://github.com/cure53/DOMPurify/releases)
- [Commits](https://github.com/cure53/DOMPurify/compare/3.4.0...3.4.10)

---
updated-dependencies:
- dependency-name: dompurify
  dependency-version: 3.4.10
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-17 05:39:12 +00:00
Anon
aaa4908f7d
feat: Implement the Dialog System (1.21.6+)
feat: Implement the Dialog System (1.21.6+)
2026-06-14 02:31:50 +02:00
Anon
7f2a71f9fe Messaging improvements + Added auto show dialogs in classic console mode 2026-06-14 02:28:13 +02:00
Anon
c0d983272b Cosmetic changes, UX/UI improvements in TUI mode, added colored text support in dialogs 2026-06-14 02:11:04 +02:00
Anon
2aa85cbb17 Added Docs, Added Translations for Dialog Types 2026-06-14 01:25:18 +02:00
Anon
bd29c7fc5c Fixes to Dialogs + Full integration testing script, Fully Tested in CLI mode 2026-06-14 01:05:12 +02:00
Anon
35db711ea4
feat: Add script line and column details to C# compile errors
feat: Add script line and column details to C# compile errors
2026-06-14 00:06:25 +02:00
Anon
3d988c932f Dialog System First iteration, not tested 2026-06-13 23:59:44 +02:00
copilot-swe-agent[bot]
a1b542dad6
Tidy script diagnostic helpers 2026-06-13 21:49:12 +00:00
copilot-swe-agent[bot]
7d7b880a7c
Preserve script compile source locations 2026-06-13 21:41:52 +00:00
Anon
37cf19c175
bugfix: Protocol gap fixes (Entity Effect Duration, Villager Trading on 1.20.6+, Enchanting effected)
bugfix: Protocol gap fixes (Entity Effect Duration, Villager Trading on 1.20.6+, Enchanting effected)
2026-06-12 01:14:28 +02:00
Anon
5e5fa539bb protocol gap fixes 2026-06-12 01:05:19 +02:00
Anon
981a996344
bugfix: Fixed and tested all structured components and issues with Empty packets sent by some servers
bugfix: Fixed and tested all structured components and issues with Empty packets sent by some servers
2026-06-11 22:05:35 +02:00
Anon
98dfde6cc2 Gate empty-packet log under debug, add packet exclusion list
- Change empty packet log from log.Warn to log.Debug so it only
  shows when DebugMessages is enabled
- Add PacketDebugExclusions config (List<string>) to suppress
  specific packet types like KeepAlive, Ping from packet debug output
- Check exclusion in both LogIncomingPacket and LogOutgoingPacket
- Add ConfigComments resource entry for the new setting
2026-06-11 22:03:36 +02:00
Anon
28e845d1ca Add structured component test reference to AGENTS.md and integration testing skill
- AGENTS.md: instruct to never generate config files in repo root
- SKILL.md: add structured components test mode (section 4) with
  usage example and script reference
2026-06-11 21:56:35 +02:00
Anon
de96462659 Fix structured components: audit fixes, codec helpers, and serialize implementations
- Fix 5 class naming typos: Unbrekable->Unbreakable, Blook->Book,
  Omnious->Ominous, FoodComponentComponent->FoodComponent
- Fix IntangibleProjectileComponent: extends EmptyComponent (Unit type)
- Delete dead code JukeBoxPlayableComponent.cs (duplicated)
- Implement proper Serialize() on BlocksAttacksComponent,
  KineticWeaponComponent, PiercingWeaponComponent
- Extract shared SoundEventHolder/HolderSet codec helpers into
  StructuredComponentCodecHelpers
- Add TypedEntityDataComponent/TypedBlockEntityDataComponent base classes
  for 1.21.9+ typed entity data format
- Fix variable name: uses1218AttributeAndEquippableFormats ->
  uses1216AttributeAndEquippableFormats
- Add entity data version gate (1.21.9+) to v1215 registry
- Fix chicken/variant and zombie_nautilus/variant component types
- Fix empty packet hang in Protocol18 ReadNextPacket loop
- Add structured components integration test harness
2026-06-11 21:33:48 +02:00
Anon
02b34a8d13
bugfix: Custom model data decoding for 1.21.4+
bugfix: Custom model data decoding for 1.21.4+
2026-06-11 16:26:28 +02:00
Anon
20756b351e
[skipci]Merge pull request #3136 from MCCTeam/dependabot/npm_and_yarn/docs/shell-quote-1.8.4
chore(deps): bump shell-quote from 1.8.3 to 1.8.4 in /docs
2026-06-11 16:25:01 +02:00
Anon
16637f7eba Fix custom model data decoding for 1.21.4 2026-06-11 16:20:42 +02:00