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

Allow user to add metadata text to blocks placed using special item #112

Open
austincap opened this issue Jun 29, 2016 · 1 comment
Open

Comments

@austincap
Copy link

I'm envisioning a cross between reddit and minecraft where every block is tied to a URL or some text. I want this information to be displayed when the block is highlighted, I want right click to copy the text from the highlighted block, and I want 'e' to open up a webview page displaying the metadata text. A special item can be equipped that allows the user to place one of these blocks containing metadata. Hitting enter should change focus to a text-entry box so the user can "equip" any text of his choosing to the blocks he places.

The codebase for voxel.js is so huge I don't know where to begin. Do you think you could point me in the right direction? What files/plugins do I need to alter to achieve my above stated goals?

@deathcap
Copy link
Member

deathcap commented Jan 6, 2021

@austincap Cool idea, this should be possible, some plugins for reference:

https://github.com/voxel/voxel-blockdata - for storing arbitrary data in blocks (the text)
https://github.com/voxel/voxel-voila - example of displaying information when a block is highlighted
https://github.com/voxel/voxel-use - provides functionality to use items and blocks
https://github.com/voxel/voxel-workbench - example of performing an action when the user right-clicks a block
https://github.com/voxel/voxel-webview - for embedding web pages in the world

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

2 participants