Json:block:texture

From Vintage Story Wiki
Revision as of 08:01, 25 June 2021 by Tyron (talk | contribs)

Default example (glass):

textures: {
		all: { base: "block/glass" },
	}

Using variantgroups (rock):

textures: {
		all: {base: "block/stone/rock/{rock}" },
	}

Using directions - the texture codes "verticals", "horizontals", "sides", "westeast" and "northsouth" are specially handled as they get expanded into their respective n/e/s/w/u/d faces. Example hay block:

textures: {
		horizontals: { base: "block/hay/{type}-side" },
		verticals: { base: "block/hay/{type}-top" },
	},

Overlay and alternate textures combined (ore):

	textures: {
		all: {
			base: "block/stone/rock/{rock}",
			overlays: [ "block/stone/ore/{ore}1" ],
			alternates: [
				{ base: "block/stone/rock/{rock}", overlays: [ "block/stone/ore/{ore}2" ] },
				{ base: "block/stone/rock/{rock}", overlays: [ "block/stone/ore/{ore}3" ] }
			]
		}
	},

Random textures:

	textures: {
		all: { base: "block/plant/waterlily/lily*" }
	},