Modding:Textures: Difference between revisions

From Vintage Story Wiki
Line 4: Line 4:


== Texturing an Item ==
== Texturing an Item ==
=== Flat Texturing ===


Texturing your items and blocks in vintage story is quite simple, but there's some things to consider when using shapes. Lets start off with just using a flat texture for an item:
Texturing your items and blocks in vintage story is quite simple, but there's some things to consider when using shapes. Lets start off with just using a flat texture for an item:
Line 12: Line 14:


<code>texture: { base: "path to texture/texture-{variant}" }</code>
<code>texture: { base: "path to texture/texture-{variant}" }</code>
=== Shape Texturing ===


If your item is rendered with a custom shape using <code>shape: { base: "path to shape" }</code> you can control it's textures using the plural version "textures". Doing so requires that you use the same "#texture" identifier used on each side of a shape cube.
If your item is rendered with a custom shape using <code>shape: { base: "path to shape" }</code> you can control it's textures using the plural version "textures". Doing so requires that you use the same "#texture" identifier used on each side of a shape cube.
219

edits