Skip to main content

Item.TextureData

Represents item texture data. For example, if /items-opaque folder contains file nugget_iron_0.png, you should pass "nugget_iron" as texture name and 0 as texture index. _N suffix can be omitted, but it is generally not recommended.

Index

Properties

Properties

optionaldata

data?: number = 0

Texture index defined by _N texture suffix.

optionalmeta

meta?: number
That feature is obsolete

Same as data, so data is preferred in all cases.

name

name: string

Texture name, name of the file stored in the /items-opaque asset folder without extension and _N suffixes.