Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_creative_slot failure #1016

Open
TheOfficialSeb opened this issue Jul 15, 2022 · 0 comments
Open

set_creative_slot failure #1016

TheOfficialSeb opened this issue Jul 15, 2022 · 0 comments

Comments

@TheOfficialSeb
Copy link

[ ] The FAQ doesn't contain a resolution to my issue

Versions

  • minecraft-protocol: 1.35.0
  • server: vanilla 1.18.2
  • node: v16.6.2

Detailed description of a problem

When sent the packet fails go through the minecraft server and give me. Seems like it's not correct.
[18:23:17] [Server thread/INFO]: AlphaServer lost connection: Internal Exception: io.netty.handler.codec.DecoderException: java.io.IOException: Packet 0/40 (wv) was larger than I expected, found 24 bytes extra whilst reading packet 40

Current code

var Item = {
    "present": true,
    "itemId": 847,
    "itemCount": 1,
    "nbtData": {
        "type": "compound",
        "name": "",
        "value": {
            "Decorations": {"value": {"type": "compound","value": []}},
            "map": {
                "type": "int",
                "value": 15
            }
        }
    }
}
client.write("set_creative_slot",{
    "slot": 45,
    "item": Item
})

Expected behavior

Should set slot 45 to a map

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

No branches or pull requests

1 participant