jay
1d361e04a6
build: ⬆️ update deps
3 years ago
jay
7597620626
ci: 🔧 add vscode conventional commits scopes
3 years ago
jay
e5faa6f022
feat(informer): ✨ add more detail to item info
...
Gives detail of traversing the item's nbt data
3 years ago
jay
cc18ac5c2e
refactor(mover): 🚚 move commands inside mover plugin itself
...
This reduces the code inside the command plugin.
Most of the logic was only relevant to moving anyway.
Command aliases like `come` and `follow` still remain in command plugin.
3 years ago
jay
7050a1621b
fix(informer): 🐛 add missing name for entity info when entity is a player
...
Uses `username` when `entity.name` is missing; should check other cases
3 years ago
jay
7cbfa16476
feat(informer): ✨ add case for when sub command is passed a single param
...
Currently returns:
- Item at given slot number
- Entity that matches given name
3 years ago
jay
63849e0729
fix(informer): 🥅 catch and report when objects are missing
3 years ago
jay
4e7f8d59fd
feat(informer): ✨ add more detailed block metadata info
...
Uses `block.getProperties()`. Thanks to a [comment][1]
[1]: https://github.com/PrismarineJS/mineflayer-pathfinder/pull/84/files#r541196424
3 years ago
jay
7b2b936f81
feat(mover): ✨ implement moveY (vertical move up or down)
...
Doesn't appear to be working properly, bot assumes XZ is goal reached
3 years ago
jay
8a39596b1d
feat(informer): ✨ add info for block at given position
3 years ago
jay
2601b7cfb1
fix(informer): 🥅 fix crash for block info when no block or an empty block is found
3 years ago
jay
67932b2f6a
fix(sleeper): 🥅 catch sleeping edge case errors
...
Happens when trying to sleep while previously unable to move.
Or maybe when trying to sleep during dawn.
3 years ago
jay
9a6e684b11
feat(informer): ✨ add info about nearest entities
3 years ago
jay
3488a94233
feat(informer): ✨ info about held item(s)
3 years ago
jay
4d21327086
fix(mover): 🚸 better messages
3 years ago
jay
e74d796124
fix(command): 🐛 make `follow` command work again without params
3 years ago
jay
3d5ffe38cd
feat(mover): ✨ inform when goal reached
3 years ago
jay
b519913355
feat(mover): ✨ implement moving to X Z goal (without y)
3 years ago
jay
b1dab1968c
fix(command): ✏️ fix `follow` command not working
3 years ago
jay
3219ec6155
feat(informer): ✨ actually add a command for info plugin
3 years ago
jay
f38ad8c819
fix(command): 🚧 fix and workaround bot look at `this`
...
Workaround being unable to look at what player is looking at.
Currently looks at what player is standing on.
3 years ago
jay
4b8a39d38c
feat(informer): ✨ add optional metadata to block info display
3 years ago
jay
6b71de0356
refactor(informer): 🚚 proper name to block info function
...
Be more specific: `block` instead of `info`.
In anticipation of future functions in this module.
3 years ago
jay
96214ffe37
fix(informer): 🐛 use block.type instead of block.id
...
`block.id` is nonexistent when tested live
3 years ago
jay
034f8d331a
fix(informer): 🐛 convert array to string for chat
...
`bot.chat` only supports strings
3 years ago
jay
69d0f5830d
feat(mover): ✨ add close(er) command to follow / come closer
3 years ago
jay
8e719d5ccf
feat(sleeper): ✨ add and adjust functionality to properly sleep
...
Can now use beds in inventory but with a hacky block placing workaround.
`findBlock` returns a null position.
So it uses the closest adjacent block and assumes it'll work.
Bot also is more robust at sleeping,
3 years ago
jay
112eb04a8d
refactor(sleeper): ♻️ simplify and make sleeping code more robust
3 years ago
jay
ba7c53be0c
refactor(command): ♻️ make toss exit early if non-existent block
3 years ago
jay
5b4718fa5d
fix(command): 🐛 add missing return
3 years ago
jay
902732c6dd
chore: ⬆️ update deps
3 years ago
jay
65d13a3379
style: fix crlf -> lf
3 years ago
jay
288b7045b6
feat: ✨ add informer plugin to show info
...
Data and information plugin.
Expose methods in mcData with acceptable ux.
Also central place for all kinds of debug features.
3 years ago
jay
94574a4296
refactor: ♻️ reorder plugin loading
...
Load in order of simplicity and dependance.
TODO: Use `bot.waitForChunksToLoad`:
Split plugins based on whether it requires blocks to be loaded or no.
3 years ago
jay
68e60921b1
refactor(mover): 🔥 remove unused code + comments, minor fixes
...
Refactoring and fixing code.
No major functionality change.
Probably will have less bugs.
- carry over how mcData is loaded
- stop bot on unload
- fix wrong magma block name
3 years ago
jay
f2281a7cb3
feat(command): ✨ temp. move inventory chat handling to command
...
This is temporary, and only the `toss` function.
Old functionality is still intact.
New code will eventually move back as a subcommand to replace the old.
3 years ago
jay
e9f2080556
refactor(command): ♻️ refactor how mcData is loaded
...
`mcData` is now directly put on bot and loaded once.
It can be accessed from anywhere `bot` is accessible.
3 years ago
jay
086251bce6
feat: add a basic feature to rejoin on server restart
3 years ago
jay
0ae961521f
feat(command): ✨ expand follow to include rest of the `!go follow` sub commands
3 years ago
jay
eae4e95803
Merge branch 'nogameplay' into master
3 years ago
jay
fb066ee8a5
refactor: ♻️ use array in pathfinder movements list
3 years ago
jay
f4445749e6
fix: ✏️ add missing plugin name
3 years ago
jay
bf45a53f08
refactor: ➖ remove gameplay
...
temporarily remove gameplay until it is fixed and more stable
miner plugin won't work now
3 years ago
jay
a7ccb08d43
refactor: ➖ remove sleeper's prismarine-gameplay dependence
3 years ago
jay
8e4eb7748f
style: ♿ fix crlf to lf
3 years ago
jay
47a944fe2a
fix: 🐛 compat: don't use `?.` for compat with older node.js
3 years ago
jay
1a3c345017
chore: 🙈 ignore .env
3 years ago
jay
de0af4d2ac
feat: 🚀 add and use `dotenv-packed`
...
Use dotenv for more convenient credential management
3 years ago
jay
73d5f43ad3
feat: ✨ actually enable mover and eater plugins
3 years ago
jay
b970231519
feat: ✨ add mover plugin
...
General purpose mover / goto plugin.
Replaces the old solver based `comehere` in miner.js.
Instead, directly based on mineflayer bot apis and pathfinder.
This makes it simpler and easier to debug.
While less general, pathfinder is sophisticated enough for most cases.
For anything that needs moving from point A to point B.
Such as:
- following
- go to a location
Not in scope: locations and places. Would be a separate plugin.
3 years ago