[Idea] WebSocketBot API to query item and entity ID mapping #2805
Labels
a:enhancement
Request for improvement of an existing feature
a:new-feature
Request for a new feature
Prerequisites
Console Client Version
20240906-276
Describe your problem
I'd like to control the client using WebSocketBot. Currently
EntityType
andItemType
are sent as numeric IDs, but the client of the socket, MCC.js for example, needs to know the names (AcaciaBoat
as opposed to0
). The mappings between names and IDs are currently hardcoded into MCC.js but this is bad for compatibility across MCC versions.Suggest a possible solution
WebSocketBot could provide an API to get the list of names for every
ItemType
andEntityType
.Alternatively,
ItemType
,EntityType
, and possibly otherenum
s, could be simply sent as strings containing the name of the value instead of the numeric value itself, which actually makes them way easier to work with. See https://stackoverflow.com/questions/2441290/javascriptserializer-json-serialization-of-enum-as-string.Attach screenshot here (If applicable)
No response
Minecraft Version
N/A
Device
Desktop
Operating System
Windows
The text was updated successfully, but these errors were encountered: