Skip to content

Add direction support to activateBlock, openBlock#2039

Merged
rom1504 merged 7 commits into
PrismarineJS:masterfrom
IceTank:openBlock-direction-support
Aug 7, 2022
Merged

Add direction support to activateBlock, openBlock#2039
rom1504 merged 7 commits into
PrismarineJS:masterfrom
IceTank:openBlock-direction-support

Conversation

@IceTank
Copy link
Copy Markdown
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
Copy Markdown
Member

u9g commented Jul 16, 2021

failing tests

@IceTank
Copy link
Copy Markdown
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
Copy Markdown
Member

rom1504 commented Aug 15, 2021

blocked by #1482

@rom1504
Copy link
Copy Markdown
Member

rom1504 commented Feb 10, 2022

Can you rebase this on master @IceTank ?

@IceTank IceTank force-pushed the openBlock-direction-support branch from 7147947 to c05689e Compare February 13, 2022 20:55
Comment thread lib/plugins/inventory.js

async function openBlock (block) {
bot.activateBlock(block)
async function openBlock (block, direction, cursorPos) {
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

IceTank commented Feb 13, 2022

todo: Change direction from number to Vec3
Done

@u9g
Copy link
Copy Markdown
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
Copy Markdown
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