PrismarineJS/prismarine-viewer

Emit click-block Events #39

TheDudeFromCI posted onGitHub

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) => {})

Fund this Issue

$0.00
Funded

Pull requests