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
Get a list of all item types #4372
Comments
I would want to do it. |
Alright, it's yours. If you use a script of some kind to process the data from the Generators to the final form, perhaps link to a gist of that script, too, so it can be used next time after a major change. |
I don't know I done its correct or not I just parsed items.ini and wrote all item to other files. |
Unfortunately no, items.ini is written by us and for some items the names are wrong. Also, it doesn't contain the new 1.13 and 1.14 items. You'll need to use either the minecraft wiki or the generators as the source, since those are the only reliable source of full item list. |
I created this: https://gist.github.com/NiLSPACE/1d81efb06b63a0e14fe3978bf72a5eaf Method: execute new Array(...document.querySelectorAll("#minecraft_items em"))
.map(x => x.innerText)
.filter((value, index, self) => self.indexOf(value) === index)
.join("\n") |
How much do we trust that webpage to provide complete and correct data? I'd have preferred using the Generators, but am willing to accept this if you vouch for them. |
I've never heard of them. I just googled for Minecraft 1.14 item list. |
Information on data generators: https://wiki.vg/Data_Generators You need to run the server with |
here the list of all items. |
Thanks, @Aplaus228 , could you also provide the script you used for the parsing? So that when the next Minecraft version comes out, we can re-apply it. |
@madmaxoft I also took a look and it's not that easy. The file from @Aplaus228 is missing the item |
@Aplaus228 The correct file to be parsed is Okay I checked it and I got 4 more items than the file @NiLSPACE contains. |
@Seadragon91 |
If you only want the reports (blocks, command and registry) from the server. Run this command You can then find the file |
I made a little python script: https://gist.github.com/holysh1t/3e5267aa9d15cc2c43d01992cffb6e0b @Seadragon91 thanks for the hints. |
@HolySh1t Could you post the resulting file as well? |
I think it would looks better if the items are sorted: |
Thanks! |
For the upcoming 1.13 compatibility, we'll need a list of all the item types currently in the game. Later on, this list shall be turned into an ItemTypeRegistry, just like the blocks in the BlockTypeRegistry:
cuberite/src/Blocks/BlockHandler.cpp
Lines 714 to 1390 in 9a1ed26
For now, only the list of item types in the simple format below is sufficient, linked as a gist.
Use the minecraft wiki or the server generators ( https://wiki.vg/Data_Generators ) as the source for the data.
The text was updated successfully, but these errors were encountered: