2.0.11 • Published 2 years ago

skyblock-assets v2.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

SkyBlock assets

TypeScript library for getting urls (hosted on GitHub) to Hypixel SkyBlock item images from several resource packs.

To generate and optimize the texture packs, run npm run generate. This requires Oxipng to be installed. Optimization will take a few minutes.

Usage

First, import the packs that you want to use.

import vanilla from 'skyblock-assets/matchers/vanilla.json'
import packshq from 'skyblock-assets/matchers/packshq.json'

The reason you have to import the packs yourself is so the library uses less memory if you're not using every pack.

Then, you can use the getTextureUrl function to get the url of an item.

const itemTextureUrl = skyblockAssets.getTextureUrl({
	id: 'minecraft:nether_star',
	nbt: {
		ExtraAttributes: {
			id: 'SKYBLOCK_MENU'
		},
		display: {
			Name: 'SkyBlock Menu (Right Click)'
		}
	},
	packs: [ packshq, vanilla ],
})

The order in which you provide packs is the order in which they will be searched, so always put vanilla last.

Pack versions

Ectoplasm - Completionist's Update\ Furfsky Reborn - v1.5.1\ Furfsky - v1.7.1\ PacksHQ - v13\ RNBW - v0.7.0\ Hypixel+ - v0.13.0\ Worlds and Beyond - v1.5\

2.0.11

2 years ago

2.0.9

2 years ago

2.0.10

2 years ago

2.0.8

2 years ago

2.0.7

2 years ago

1.2.0

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.5

2 years ago

2.0.4

2 years ago

2.0.6

2 years ago

1.1.12

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.1

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago