Json:block:texture

From Vintage Story Wiki
Revision as of 13:16, 20 January 2017 by CreativeMD (talk | contribs) (Created page with "Default example (glass): <syntaxhighlight lang='json'>textures: { all: { base: "glass" }, }</syntaxhighlight> Using variantgroups (rock):<syntaxhighlight lang='json'>textur...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Default example (glass):

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

Using variantgroups (rock):

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

Using directions (hay block):

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

Overlay and alternate textures combined (ore):

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