Comments (7)
In the setGoal
function, you can assign a goal as dynamic to fix this.
const goal = new GoalFollow(entity, 0)
bot.pathfinder.setGoal(goal, true)
from mineflayer-pathfinder.
This is a problem in mineflayer / prismarine-physics. The item entities movements should be updated by the client and it is not done atm. Can you open an issue in p-physics to request this new feature ? (its a bit more complicated than it sounds because the physic simulation should match exactly the server to not cause desync)
from mineflayer-pathfinder.
Wait, is that an issue? I tried a similar script on my bot and it seemed to track the item entity fine.
from mineflayer-pathfinder.
You can view the issue with p-viewer, only the first tick seems to be sent by the server (vanilla). Its the same with throwed potions, but i think arrows are updated. I saw that some time ago in 1.13, if someone can check what s going on also for other versions that would be great
from mineflayer-pathfinder.
Oh, interesting. I didn't notice that before. Strange.
Wouldn't item drop physics triggered on entityMove
events, though?
from mineflayer-pathfinder.
Yeah it should, but the server only update the position once, so the event is called once.
https://github.com/PrismarineJS/prismarine-viewer/blob/master/lib/mineflayer.js#L82
from mineflayer-pathfinder.
In the
setGoal
function, you can assign a goal as dynamic to fix this.const goal = new GoalFollow(entity, 0) bot.pathfinder.setGoal(goal, true)
Of course I missed something 🤦♂️ it works now, thank you very much.
Not sure what you mean @Karang, it fortunately doesn't seem to cause problems in this case.
from mineflayer-pathfinder.
Related Issues (20)
- Bot cant jump into that structure for no reason. It stucks in the corner HOT 3
- Bot randomly crashes when pathing. HOT 10
- RangeError: Invalid typed array length: Infinity HOT 1
- Possible bug: Error while creating a movement HOT 2
- Bot randomly fails to place blocks when scaffolding HOT 4
- The bot does not enter the server (fabric)
- Bot can't go through doors HOT 2
- Bot never goes under layer 0 HOT 2
- Not working with Mineflayer 4.5.1? HOT 8
- Saying the the mcdata script in the Movements script is undefinded in the code this.blocksCantBreak.add(mcData.blocksByName.chest.id) HOT 3
- Typo HOT 8
- Bot tries to open fence gate that is already open HOT 4
- Bot thinks it can travel diagonally when blocked by other blocks HOT 4
- Bot trying to open the chest?¿? when he's walking on the chest HOT 3
- Bot goes to unexpected ways HOT 1
- (python) TypeError: Cannot read properties of null (reading 'blocksByName') HOT 2
- Stuck in dripstone HOT 1
- The code that is completely identical to the example that used to work normally does not work. HOT 8
- Bot Constantly Stuck or Halts with GoalFollow - HOT 2
- Failed to find path including bottom slabs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mineflayer-pathfinder.