Modding:Asset System: Difference between revisions

From Vintage Story Wiki
No edit summary
Line 213: Line 213:
= Domains =
= Domains =


In order to tell whether a block (can also be an item or entity) is added bythe game or a mod, VintageStory uses Domains. Those are prefixes for paths. For any assets added by VintageStory it will have the prefix <code>game:</code>
In order to tell whether a block (can also be an item or entity) is added bythe game or a mod, VintageStory uses Domains. Those are prefixes for any path. For example any assets added by VintageStory it will have the prefix <code>game</code>. Meaning the textures inside <code>assets/textures/blocks/randomtexture.png</code> will have an AssetLocation (domain and path combined) of <code>game:assets/textures/blocks/randomtexture.png</code>.


== Game Domain ==
== Game Domain ==
Confirmedusers, editor, Administrators
886

edits