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

node.js data "provider" ? #21

Closed
rom1504 opened this issue May 5, 2015 · 2 comments
Closed

node.js data "provider" ? #21

rom1504 opened this issue May 5, 2015 · 2 comments

Comments

@rom1504
Copy link
Member

rom1504 commented May 5, 2015

I think it would be useful to have a javascript provider for node.js users of this library.
For example it might provide indexes and function using these indexes to find blocks by name (something like this https://github.com/PrismarineJS/minecraft-data/blob/master/bin/wiki_extractor/lib/find_item_object_by_name.js)

That way users of that library wouldn't have to build the index themselves every time (see #14 (comment) )

The problem is minecraft-data should stay a language interdependent library imho. Does that mean that "data provider" should still be in this repo and other language users would just not use them or should there be a "node-minecraft-data" repo that would depend on this repo and provide these indexer and all ?

I also thought about simply putting that provider inside mineflayer, but the thing is minecraft-data will be used by projects not using mineflayer (see PrismarineJS/prismarine-server#23)

The advantage of a node-minecraft-data provider is would provide an example of how to read the data, so that other people using other languages could do that kind of providers too if they want (for example a python-minecraft-data )

What do you think ?

@rom1504
Copy link
Member Author

rom1504 commented May 5, 2015

Started there https://github.com/PrismarineJS/node-minecraft-data
Not sure yet how useful it will be. I'm going to try to add most use cases of .blocks and .items in mineflayer and other projects to see if that's enough to make it useful.

@rom1504
Copy link
Member Author

rom1504 commented May 7, 2015

Used in mineflayer.
Allows for indexing and let people implement that in their language.

@rom1504 rom1504 closed this as completed May 7, 2015
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

1 participant