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

actionBar event not triggering #3595

Open
1 task done
DatArnoGuy opened this issue Feb 25, 2025 · 0 comments
Open
1 task done

actionBar event not triggering #3595

DatArnoGuy opened this issue Feb 25, 2025 · 0 comments
Labels
possible bug Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f

Comments

@DatArnoGuy
Copy link
Contributor

DatArnoGuy commented Feb 25, 2025

  • 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.

@DatArnoGuy DatArnoGuy added possible bug Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible bug Stage1 just created by someone new to the project, we don't know yet if it deserves an implementation / a f
Projects
None yet
Development

No branches or pull requests

1 participant