jay
6046123074
build: ⬆️ update deps
3 years ago
jay
ae1f7cf269
feat: 🔧 extract the hardcoded admin and mod list out into environment variables
3 years ago
jay
afd2e002df
feat(mover): ✨ add new pathfinder Movements
...
- safeMove without parkour
- aggresiveMove that digs
3 years ago
jay
3c5ec6b360
fix(mover): ✏️ fix `!go up` moving left instead
3 years ago
jay
b71728e503
feat(mover): ✨ add Mule to ridable mobs
3 years ago
jay
d001280383
fix: 🥅 fix a plugin loading error
...
While reloading, plugin cache may not be deleted.
This happens when a loaded plugin encounters an error during reload.
This causes a deadlock in the unloading code.
So make sure cache is always deleted:
- ignore when an `unload()` function doesn't exist
- delete cache even if there are no `exports`
3 years ago
jay
f50e388c39
feat: 🔊 fix path in plugin reload log so that it actually works
3 years ago
jay
135ce6567b
fix(mover): 🐛 attempt to fix move while riding vehicle
...
Try to give a larger range and more freedom to see if other values work.
Specifically, attempt turning.
No test on vehicles or mobs appear to behave consistently so far.
Tried: pigs, minecarts, horse.
3 years ago
jay
e5803eee59
fix(mover): ✏️ fix missed variable during rename
3 years ago
jay
1b21fcb096
refactor(mover): ♻️ use a better name for default move
3 years ago
jay
4b3e58ceb3
fix(mover): 🐛 attempt to fix move while riding vehicle
...
This never worked previously.
Using one of `-1 0 1` instead of a larger number appears to work.
3 years ago
jay
8e854a0a2f
refactor(mover): 🔊 improve debug logging code
3 years ago
jay
c42a3a2304
feat(mover): ✨ add an action to move / run away from an entity or goal
...
based on `pathfinder` goal `GoalInvert`; behaves slightly strange
3 years ago
jay
b453b7d6bd
feat(mover): ♿ add shortcuts and aliases for the jump command
3 years ago
jay
6b79f1fc60
refactor(plugins): ♻️ change plugin load order
3 years ago
jay
6e1ef5aada
refactor(statemachine): 🔇 remove debug
...
code
3 years ago
jay
e2ae7e5ad2
fix(statemachine): ✏️ fix SM action function sending Lower instead of Upper case commands
3 years ago
jay
42138a421b
fix(statemachine): 🥅 fix for lookatPlayer when no or invalid player
...
Fixes the case when player isn't nearby or entity is invalid due to teleport
3 years ago
jay
aded1e4193
style: 🎨 fix crlf -> lf for real this time, using .gitattributes
...
Add a .gitattributes file to permanentyl fix crlf issues.
For explanantion:
https://adaptivepatchwork.com/2012/03/01/mind-the-end-of-your-line/#the-new-system
3 years ago
jay
60394e38eb
refactor: ♻️ replace `add` with `vec3.offset`
...
This avoids having to import and creat a `new vec3.v()`
3 years ago
jay
22490f7ec1
fix(command): 🐛 fix bot address regex returning undefined
...
Waits till spawn to make sure `bot.username` is definitely initialized
3 years ago
jay
72c4622091
feat(informer): ✨ various improvements and fixes
...
Feat:
- Letter aliases for subcommands.
- Most recent command when no input.
- Start player relative info stub.
Fix:
- Player username not shown.
3 years ago
jay
0757776d8b
feat(command): 🎨 make botaddress prefix and regex more flexible and configurable
3 years ago
jay
a0ffaf1654
build(typescript): 🚨 add @types dep to satisfy typescript errors
...
Typescript linter had an error that `require` was undefined.
This happened after updating Nodejs from 14.15 to 14.16.
Not sure if this should be a global dep or local
3 years ago
jay
1597acca72
fix(eater): 🥅 catch async error on full food
...
Attempt to fix async error returned by `bot.consume`.
Fixed by wrapping in a `try{}` block and using `.catch`.
Still don't know why or how this works 🤷 .
3 years ago
jay
1e82045221
build: ⬆️ update deps
3 years ago
jay
33c4fc0c77
ci: 🔧 add vscode conventional commits scopes
3 years ago
jay
33c4233223
feat(statemachine): 🚧 first draft of new xstate based statemachine implementation
...
Replaces the old statemachine.
Done so far:
- Basic command interface
- Machine saving and loading
- Sample dummy machine
3 years ago
jay
3f3ebbae10
build: ⬆️ update deps
3 years ago
jay
fd0e1e1347
build(statemachine): ➕ add xstate for state machines
3 years ago
jay
2f88eedce9
fix(mover): ♿ lessen move duration for more precise control
3 years ago
jay
a0893f2b29
feat(mover): ✨ allow riding specific entity by name
3 years ago
jay
b1a592dbbd
fix(mover): 🐛 workaround for vehicle not being removed in api on dismount
...
`bot.vehicle` isn't removed on dismount, so this done manually
3 years ago
jay
f336e3d736
feat(mover): ✨ switch between moving and riding automatically for manual movement
3 years ago
jay
d953bd4cf6
fix(mover): 🎨 fix quiet not being "followed"
3 years ago
jay
fc43985337
fix(mover): 🐛 fix crash when no mobs nearby while searching for rides
3 years ago
jay
6b1157147d
feat(mover): ✨ implement more featureful and robust `ride` command
...
Now does the following:
- finds entities (both vehicles and animals) which are suitable for riding.
- moves to get into range.
However:
- while in a vehicle, pathfinder doesn't appear to detec coords.
- `bot.moveVehicle` doesn't work, so bot doesn't move when riding
3 years ago
jay
e6d29576e7
refactor(command): 🚚 move vehicle commands near other moves
...
Move the following:
- vehicle commands next to other movement related commands like `go`.
- move `ride` / `mount` command functionality into mover plugin
3 years ago
jay
974d460061
feat(mover): ✨ add basic movement commands
...
Forward, left, etc. Uses bot.controlState.
But left and right does the opposite of expectations.
3 years ago
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