Modding:Asset System: Difference between revisions
From Vintage Story Wiki
CreativeMD (talk | contribs) (→Mods) |
CreativeMD (talk | contribs) (→Mods) |
||
Line 224: | Line 224: | ||
== Creating your own domain == | == Creating your own domain == | ||
In order to make the game load your own assets, you have to create a zip file, which has to have a similar structure as the assets folder of Vintagestory. The only difference is the domain folder, which is located below the assets directory and allows you to either create a new domain or refer to existing ones. | |||
If you want to create a new block for example you can use your own domain <code>assets/mymoddomain/blocktypes/myblock.json</code>. In this case the folder <code>mymoddomain</code> specifies the domain and therefore the prefix for the code of the added block is <code>mymoddomain:myblock</code>. | |||
== Overwriting game assets == | == Overwriting game assets == | ||
There are no limitations to the system. So you can overwrite assets from Vintagestory itself by using the <code>game</domain> domain folder. | |||
To overwrite the bed blocktype you can put your own version inside your mod file with the following path: <code>assets/game/blocktypes/bed.json</code>. Vintagestory will now load your json file instead of the original one. | |||
= Resourcepacks = | = Resourcepacks = |