Generate item and block textures from the official Minecraft Wiki.
First, you must clone and enter this directory.
git clone https://github.com/EmilioBarradas/mc-textures.git
cd mc-texturesNext, install the required npm packages.
npm iThe generated images will be placed in the data/images directory.
Minecraft
npm run generateSpigot
This will adhere the image names to spigot Material enum values.
npm run generate_spigotIf the textures you are looking for are not generated, take a look at the ignored files, here for minecraft textures, and here for spigot textures. These files contain the item names of the textures which I have not imported into the project.
If the textures are in the ignored files, submit a request through the issues page, and I will try to import them in. This repository currently only hosts Java Edition textures, so please do not submit requests for Bedrock or Pocket edition textures.
If you would like to import textures yourself, have a look at the InvSprite page on the official Minecraft Wiki, and search for your required textures. If they listed on the page, jump down to the code section, and search for the items. Next, go to the generated data/tags.json file in your cloned repository (after running npm run generate), and search for the items' minecraft tags. Once you have found both the items' names in the code section and their respective minecraft tags, you now need to link the two. To do so, go to the tag deviations file, and insert your entries in the form of "{minecraft item tag}": "{item name in code section}". Save the file, and re-run npm run generate. The textures should now be in the data/images/minecraft directory.
The above process is for generating minecraft textures, but the spigot process is similar.