Comments (4)
This appears to be due to the center of blocks being offset by 0.5. Line 720 in PathfindingTask.cpp compensates for this when the coordinates are positive, but that compensation causes the destination to be wrong when the coordinates are negative.
from botcraft.
Overall this seems to be more of an issue with how intuitive the input is. Since the coordinates gotten from F3 don't seem to make a difference if you specify the center of the block or the corner the user won't know to compensate for the 0.5 being added to the coordinate by subtracting one from the X and Z coordinates.
from botcraft.
Thanks for the report and the detailed repro steps 👍
Will look into it today, it should not be too hard to fix
from botcraft.
I can't seem to reproduce the issue on my side.
If I use BCChatCommand goto -15 1 -9
the bot ends up at -14.5 1 -8.5
i.e. at the center of the block with coordinates -15 1 -9
.
The whole pathfinding system is block based and the bot will always go from the center of one block to the center of the next. So I feel it's more natural to have the input as block coordinates and then add the 0.5 rather than ask user to always make sure they specify .5 coordinates to make sure it's the center of a block.
Let me know if there is something I misunderstood.
from botcraft.
Related Issues (20)
- Not connecting to the server HOT 2
- chat signing for 1.19.2 HOT 3
- [Version request] HOT 2
- [Version request] HOT 3
- [Version request] HOT 2
- [Version request] HOT 18
- [Version request]
- [Version request] HOT 1
- [Version request] HOT 1
- [Version request] HOT 10
- [Version request] HOT 3
- [Version request] - 1.12.2 HOT 6
- [Version request] HOT 7
- [Version request] - 1.16.5 HOT 6
- [Version request] HOT 2
- [Version request] HOT 4
- [Version request] HOT 2
- [Version request] HOT 3
- question: is this error caused by a special minecraft version? HOT 4
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 botcraft.