mineflayer icon indicating copy to clipboard operation
mineflayer copied to clipboard

Add function to get the total xp points the bot has.

Open zisis912 opened this issue 2 years ago • 7 comments

Unlike its title, the bot.experience.points property does NOT provide one with the xp points the bot has, but rather its score, displayed only when one dies.

image

This PR adds a function that does precisely that, correctly get the bot's xp points.

That of course would make the .points property useless, so I would suggest you accept https://github.com/PrismarineJS/mineflayer/pull/3125 too if backwards compatibility is not an issue

zisis912 avatar Jul 27 '23 22:07 zisis912

/fixlint

rom1504 avatar Jul 29 '23 08:07 rom1504

I fixed all linting errors with npm run fix!

rom1504bot avatar Jul 29 '23 08:07 rom1504bot

@zisis912 please fix the lint with above command

rom1504 avatar Jul 29 '23 08:07 rom1504

actually fixed

please add this function to the doc

rom1504 avatar Jul 29 '23 08:07 rom1504

@zisis912 would you like to finish this?

rom1504 avatar Dec 30 '23 14:12 rom1504

I am a bit busy yhese days, maybe in a few docs i will get around to making docs for all of my PRs so they can be finished.

zisis912 avatar Jan 10 '24 14:01 zisis912