Options
All
  • Public
  • Public/Protected
  • All
Menu

Object used to represent single block variation

Hierarchy

Index

Properties

inCreative?: boolean

If true, block variation will be added to creative inventory

name?: string

Variation name, displayed as item name everywhere. Default value is "Unknown Block"

texture: [string, number][]

Variation textures, array containing pairs of texture name and data. Texture file should be located in items-opaque folder and its name should be in the format: name_data, e.g. if the file name is ingot_copper_0, you should specify an array

["ingot_copper", 0]

There should be from one to six texture pairs in the array, if less then six variations are specified, the last texture is used for missing textures. The sides go in the following order:

texture: [
["название1", индекс1], // bottom (Y: -1)
["название2", индекс2], // top (Y: +1)
["название3", индекс3], // back (X: -1)
["название4", индекс4], // front (X: +1)
["название5", индекс5], // left (Z: -1)
["название6", индекс6] // right (Z: +1)
]

Generated using TypeDoc