Directory(source, prefix) sourcestringDirectory of texture locations to include, relative to the
texturesfolder, not including the trailing/.prefixstringThe sprite name prefix, usually ending with
/.
Helpers that build a minecraft:sprite_source object, one for each of its types. Where a field takes one, write the helper's call; its
name is the type it makes. Click a type to see what it accepts.
Directory(source, prefix) sourcestring Directory of texture locations to include, relative to the textures folder, not including the trailing /.
prefixstring The sprite name prefix, usually ending with /.
Filter(pattern) patternFilterPattern Pattern to remove sprite identifiers already in the atlas. The order of sprite sources is important.
PalettedPermutations(textures, palette_key, permutations, separator?) textureslist of texture ids palette_keyPaletteTexture permutationsmap of string to PaletteTexture separatoroptionalstring Value to use when joining the texture and permutation names to produce the sprite name.
Defaults to _.
Single(resource, sprite?) resourcetexture id A single texture location of the source.
spriteoptionaltexture id The identifier of the sprite that can referenced.
If not specified, matches resource.
Unstitch(resource, regions, divisor_x?, divisor_y?) resourcetexture id regionslist of UnstitchRegion divisor_xoptionalnumber If set to the resource width, regions will use pixel coordinates.
divisor_yoptionalnumber If set to the resource height, regions will use pixel coordinates.