Translations:Modding:Content Tutorial Simple Block/19/en

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

For blocks to use a certain texture, then it must specify this within its json file. Replace your current blocktype json with the following:

{
  "code": "simplegoldblock",
  "creativeinventory": { "general": [ "*" ] },
  "drawtype": "Cube",
  "texture": {
		"base": "block/shinygoldtexture"
	}
}

Two new properties have been added: drawtype and texture.