Translations:Modding:Content Tutorial Simple Block/28/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)

You may also notice that your block doesn't sound very metallic - So let's fix that. Your final block json should look like the following:

{
  "code": "simplegoldblock",
  "creativeinventory": { "general": [ "*" ] },
  "drawtype": "Cube",
  "texture": {
		"base": "block/shinygoldtexture"
	},
  "blockmaterial": "Stone",
  "resistance": 3.5,
  "sounds": {
		"place": "game:block/anvil",
		"walk": "game:walk/stone"
	}
}

The sounds property is rather self-explanatory, but it is important to notice that you prefix the file locations with "game:". This is because the sound files are located within the base game, and are not added by your mod. Here, you are just assigning sounds for place and walk. The most common types of sound for blocks are place, walk, break, and hit.