Skip to content

Bot freezes after taking any damage #3882

@Skygawker

Description

@Skygawker

Versions

  • mineflayer: 4.37.0
  • server: vanilla/spigot/paper Vanilla and paper 1.21.4
  • node: 22.22.2

Detailed description of a problem

A clear and concise description of what the problem is, with as much context as possible.
What are you building? What problem are you trying to solve?

I am trying to build a bot and it works okay, but when something deals him damage bot freezes and cannot do nothing untill he is killed or rejoining the server

What did you try yet?

Did you try any method from the API?
Did you try any example? Any error from those?

I write any code, download code from examples or write my own, downgrade and upgrade java, node, mineflayer and still no fix

Your current code

const mineflayer = require('mineflayer')

const bot = mineflayer.createBot({
  host: 'localhost',
  port: 25565,
  auth: 'microsoft'
})

Expected behavior

bot that handles damage and doesnt get stuck after 1 hit

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