Translations:Modding:Content Tutorial Item Variants/30/en

From Vintage Story Wiki
Revision as of 22:32, 8 April 2024 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ByType

By using the ByType suffix on a property, you can specify completely different values for each variant.

"texturesByType": {
  "advancedwand-blue": {
	"handle": { "base": "item/wand-handle" },
	"head": { "base": "item/wand-blue" }
  },
  "advancedwand-red": {
	"handle": { "base": "item/wand-handle" },
	"head": { "base": "item/wand-red" }
  },
  "advancedwand-green": {
	"handle": { "base": "item/wand-handle" },
	"head": { "base": "item/wand-green" }
  }
},

However, a lot of content here is duplicated as all the wands use the same handle, and have head textures that are in the same folders.