Skip to content

1.21.4: Read error for undefined : Invalid tag: 75 > 20 #3583

Open
@DatArnoGuy

Description

@DatArnoGuy
  • The FAQ doesn't contain a resolution to my issue

Versions

  • mineflayer: 4.25.0
  • server: paper 1.21.4
  • node: 22.13.1

Detailed description of a problem

My bot is playing on 1.21.4 server, but it crashes with the error in red box. I think the crashing might be related to another error in yellow box, if this is the case, that means the bot can't understand some packets, maybe related to 1.21.4 ability to add colored texture parts to items?

The error does not happen in every places, so I think there is armor stand or something with custom colored item somewhere in render distance of my bot.

Error messages in console when this happened first time:
Image

What did you try yet?

Restart the bot, but it crashes with same error.

Your current code

My code should not be related here, this seems to be mineflayer/node-minecraft-protocol/protodef error.

Additional context

The error in yellow box MIGHT not be related to the crashing error, since it does not appear when restarting the bot. When restarting, only "Read error for undefined : Invalid tag: 75 > 20" appears.

Error message in console when I try to restart the bot:

Error: Read error for undefined : Invalid tag: 75 > 20
    at Object.compound (eval at compile (/root/botti/node_modules/protodef/src/compiler.js:262:12), <anonymous>:16:21)
    at Object.nbtSwitch (eval at compile (/root/botti/node_modules/protodef/src/compiler.js:262:12), <anonymous>:4241:47)
    at Object.anonymousNbt (eval at compile (/root/botti/node_modules/protodef/src/compiler.js:262:12), <anonymous>:82:64)
    at eval (eval at compile (/root/botti/node_modules/protodef/src/compiler.js:262:12), <anonymous>:282:56)
    at Object.SlotComponent (eval at compile (/root/botti/node_modules/protodef/src/compiler.js:262:12), <anonymous>:977:9)
    at eval (eval at compile (/root/botti/node_modules/protodef/src/compiler.js:262:12), <anonymous>:996:49)
    at eval (eval at compile (/root/botti/node_modules/protodef/src/compiler.js:262:12), <anonymous>:1001:15)
    at eval (eval at compile (/root/botti/node_modules/protodef/src/compiler.js:262:12), <anonymous>:1019:13)
    at Object.Slot (eval at compile (/root/botti/node_modules/protodef/src/compiler.js:262:12), <anonymous>:1021:9)
    at eval (eval at compile (/root/botti/node_modules/protodef/src/compiler.js:262:12), <anonymous>:3390:61) {
  field: 'play.toClient'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stage1just created by someone new to the project, we don't know yet if it deserves an implementation / a fpossible bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions