Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot gets stuck in water if it tries to place a block under itself while Jumping/Swimming #54

Closed
IceTank opened this issue Oct 23, 2020 · 3 comments

Comments

@IceTank
Copy link
Collaborator

IceTank commented Oct 23, 2020

While in water the bot can get stuck if it tries to place a block.
This can happen when the bot is standing in 1 high water and tries to place a block to get up 1 block. In this case the bot tries to place a block under itself while jumping. While not in water the bot is able to jump high enough to place a block under itself but this is not the case in Water. In Water it is impossible to jump higher then the water Block the player or bot is in. The Bot tries anyway and gets stuck.

Visualisation:
w = Water
o = Water Block the bot is trying to replace with a block while jumping and bot feet position
i = Bot head position
s = Solid block

  i
wwoww
sssss
@IceTank
Copy link
Collaborator Author

IceTank commented Oct 23, 2020

Posible fix:
Add this line to movements.js after line 251:

if (this.getBlock(node, 0, 0, 0).liquid) return

@SinanAkkoyun
Copy link

It still does not work for me!

@Karang
Copy link
Collaborator

Karang commented Jan 7, 2021

Fixed, update to 1.3.0.

@Karang Karang closed this as completed Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants