Modding:Asset System: Difference between revisions

From Vintage Story Wiki
Line 214: Line 214:


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>.
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 ==
== Other Domains ==
== Where are they used? ==


= Mods =
= Mods =
Confirmedusers, editor, Administrators
886

edits