Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/destruc7i0n/minecraft-textures
A library containing all the textures I use for my generators
https://github.com/destruc7i0n/minecraft-textures
minecraft
Last synced: about 2 months ago
JSON representation
A library containing all the textures I use for my generators
- Host: GitHub
- URL: https://github.com/destruc7i0n/minecraft-textures
- Owner: destruc7i0n
- License: gpl-3.0
- Created: 2017-12-04T21:59:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-07T01:20:06.000Z (6 months ago)
- Last Synced: 2024-11-05T21:59:13.089Z (2 months ago)
- Topics: minecraft
- Language: TypeScript
- Homepage:
- Size: 7.88 MB
- Stars: 18
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Minecraft Textures
This is a library containing all the textures I use for my generators. **You're free to use it so long as you credit me** (see below).
There are textures from 1.12 to 1.20 currently available.
`npm install minecraft-textures`
## Example Usage:
```js
import hasVersion from 'minecraft-textures';
const version = '1.16';
if (hasVersion(version)) {
const textures = await import(
`minecraft-textures/dist/textures/json/${version}.json`
);
}
```You can also import the JSON files if you are using Node.js.
## Update Notes
### 1.20
- The ordering of the JSON files have been updated to match the order of the items in the Search Items creative tab.
### 1.17
- The file names were updated to be the actual version (i.e. `1.17.ts` rather than `117.ts`)
### 1.16
- The versions are now dynamically imported. You will need to import the path provided by `byVersion`.
- For anyone using the .json files, you can now use something like this:
- https://unpkg.com/minecraft-textures/dist/textures/json/1.16.json## License
Please credit `destruc7i0n (https://thedestruc7i0n.ca)` if you use this.
The Minecraft item icons are owned by Mojang Studios.
This project is not affiliated with Mojang Studios.