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

Emit click-block Events #39

Closed
TheDudeFromCI opened this issue Oct 10, 2020 · 0 comments · Fixed by #65
Closed

Emit click-block Events #39

TheDudeFromCI opened this issue Oct 10, 2020 · 0 comments · Fixed by #65

Comments

@TheDudeFromCI
Copy link
Member

Adding a feature for interacting with the world by clicking blocks would add a highly useful new dynamic to working with the Prismarine-viewer API. Actions such as moving to selected block world digging out a region would be possible and quite easy to do.

I imagine something along the lines of:

viewer.on('clickBlock', (blockPos, blockFaceIndex, mouseButton, mouseUp) => {})
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

Successfully merging a pull request may close this issue.

1 participant