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

why are the block IDs in this package different from the actual minecraft block IDs? #860

Open
Jagorrim opened this issue Mar 17, 2024 · 2 comments

Comments

@Jagorrim
Copy link

Jagorrim commented Mar 17, 2024

I've searched actual minecraft blocks IDs, and it differ from IDs in this package. For example: every site about it say that ID of still water is 8, but in this package it is 26. Why is this so? I'm beginner in js and, in particular, in mineflayer, and i don't understand. Sorry for the stupid question, if the question is really like that

@extremeheat
Copy link
Member

Minecraft since 1.13 doesn't use static numerical block IDs (see: the flattening). It uses strings to identify blocks. The id field in minecraft-data is for internal representation, the stateId is the block state ID that identifies the specific block state.

I recommend reading pages like https://minecraft.wiki/w/Block_states, https://minecraft.wiki/w/Java_Edition_data_values, https://minecraft.wiki/w/Java_Edition_1.13/Flattening

@Jagorrim
Copy link
Author

Thanks!

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