Skip to content

Fix command parameter type mapping - #347

Merged
PetteriM1 merged 2 commits into
CloudburstMC:3.0from
HashimTheArab:agent/correct-command-parameter-types
Aug 6, 2026
Merged

Fix command parameter type mapping#347
PetteriM1 merged 2 commits into
CloudburstMC:3.0from
HashimTheArab:agent/correct-command-parameter-types

Conversation

@HashimTheArab

@HashimTheArab HashimTheArab commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • reserve command parameter type ID 2, which is unused on the wire
  • map FLOAT to ID 3 and R_VALUE to ID 4
  • remove the obsolete VALUE packet mapping

Why

The command parameter table was shifted relative to the AvailableCommandsPacket emitted by current Bedrock versions. The correct IDs are:

  • INT: 1
  • FLOAT: 3
  • R_VALUE: 4
  • WILDCARD_INT: 5

R_VALUE is backed by the relative-float parser and is used by commands such as /tp for rotation values. ID 2 is unused, and VALUE is not registered as a basic parameter type.

This corrects both decoding, where parameter types were interpreted as the following enum member, and encoding, where floats were written using the unused ID 2.

Closes #346.

@PetteriM1
PetteriM1 merged commit 275bd24 into CloudburstMC:3.0 Aug 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect AvailableCommands parameter type mapping in Bedrock_v975 and v2168

2 participants