Add features for 26.1's string-mapped client_command and use_entity ids - #1279
Add features for 26.1's string-mapped client_command and use_entity ids#1279u9g wants to merge 1 commit into
Conversation
|
PrismarineJS/mineflayer#4076 reads the declared form straight out of The |
|
PrismarineJS/mineflayer#4077 now reads the shape out of the schema instead of asking for a feature, so it is correct whether 26.1 keeps these mappers or #1278 removes them. That leaves this PR without a consumer; closing in favour of settling the data question on #1278. |
26.1's protocol maps two more serverbound action ids to strings, the way
entity_actionalready does since 1.21.6:A client that keeps writing the numeric id gets
SizeOf error for undefined : 0 is not in the mappings valueand the packet is never sent, so on 26.1 mineflayer currently cannot respawn or right-click an entity at all. These two features let it pick the right shape the same wayentityActionUsesStringMapperdoes.Checked against every
pcprotocol.json in this repo:client_command.actionIdanduse_entity.handare mappers on 26.1 only.Data only, no code changes. Consumed by PrismarineJS/mineflayer#4077.