Modding:Asset System: Difference between revisions

From Vintage Story Wiki
Line 226: Line 226:


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.
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>.
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 code of the added block will be <code>mymoddomain:myblock</code>.


== Overwriting game assets ==
== Overwriting game assets ==
Confirmedusers, editor, Administrators
886

edits