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

Add direction support to activateBlock, openBlock #2039

Merged
merged 7 commits into from
Aug 7, 2022

Conversation

IceTank
Copy link
Contributor

@IceTank IceTank commented Jul 15, 2021

Why? Because you cannot open containers if they are at y level 255 because you cannot activate blocks from the top at y level 255. So openContainer does not work at y 255.

@u9g
Copy link
Member

u9g commented Jul 16, 2021

failing tests

@IceTank
Copy link
Contributor Author

IceTank commented Jul 24, 2021

failing tests

Jeah and this would break anything still using callbacks. So I think I will put this on hold until callbacks are gone.

@rom1504
Copy link
Member

rom1504 commented Aug 15, 2021

blocked by #1482

@rom1504
Copy link
Member

rom1504 commented Feb 10, 2022

Can you rebase this on master @IceTank ?

@@ -338,8 +338,8 @@ function inject (bot, { version, hideErrors }) {
}
}

async function openBlock (block) {
bot.activateBlock(block)
async function openBlock (block, direction, cursorPos) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like you forgot the default here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I just noticed that there are also types missing

@IceTank
Copy link
Contributor Author

IceTank commented Feb 13, 2022

todo: Change direction from number to Vec3
Done

@u9g
Copy link
Member

u9g commented Apr 2, 2022

Resolve conflicts please

@IceTank IceTank force-pushed the openBlock-direction-support branch from 32e49e3 to e87992e Compare April 2, 2022 18:52
@IceTank IceTank force-pushed the openBlock-direction-support branch from e87992e to 20bc786 Compare April 27, 2022 14:43
Copy link
Member

@u9g u9g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rom1504 rom1504 merged commit ce332aa into PrismarineJS:master Aug 7, 2022
@IceTank IceTank deleted the openBlock-direction-support branch August 7, 2022 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants