Skip to content

actionBar event not triggering #3595

Open
@DatArnoGuy

Description

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

Versions

  • mineflayer: 1.21.4
  • server: paper 1.21.4
  • node: 20.17.0

Detailed description of a problem

actionBar event is not triggering in new versions. There was once pull request to fix this, but it was not merged.

What did you try yet?

I added this code to my own code to make it work. It works with this, but this should also be part of mineflayer.

const ChatMessage = require('prismarine-chat')(bot.version);

bot._client.on('action_bar', (data) => {
  const msg = ChatMessage.fromNotch(data.text)
  bot.emit('actionBar', msg)
});

Expected behavior

Code above should not be needed by single users.

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