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

Minecraft PVP bot not hunting mobs #3344

Open
boredcoder411 opened this issue Apr 3, 2024 · 0 comments
Open

Minecraft PVP bot not hunting mobs #3344

boredcoder411 opened this issue Apr 3, 2024 · 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

@boredcoder411
Copy link

Versions

  • mineflayer: 4.20.0
  • server: vanilla, 1.20.4
  • node: 21.6.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 followed this youtube video: https://www.youtube.com/watch?v=Giu0ADA5uo8
And I got a bit lazy so I copied the code from the link in the desc: https://raw.githubusercontent.com/TheDudeFromCI/Mineflayer-Youtube-Tutorials/master/pvpBot2/index.js

I already edited the example above to use physicsTick instead of physicTick, which leads me to conclude one of the libraries use are the source of my problems

when I use "guard" in the chat, it responds correctly, and comes to my location. I did just like in the video, I spawned a husk and the bot just stares at it, without responding, and dies.

Any errors?
yes:
(node:19045) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
Mineflayer detected that you are using a deprecated event (physicTick)! Please use this event (physicsTick) instead.

however, the code does not crash

Your current code

see this link: https://raw.githubusercontent.com/TheDudeFromCI/Mineflayer-Youtube-Tutorials/master/pvpBot2/index.js

Expected behavior

The bot should behave like in this video: https://www.youtube.com/watch?v=Giu0ADA5uo8&t=934s

@boredcoder411 boredcoder411 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 Apr 3, 2024
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