Modding:Basic Block: Difference between revisions

From Vintage Story Wiki
Line 134: Line 134:
</syntaxhighlight>
</syntaxhighlight>


Every group will be added after each other to the blocks name <code>myblockname-mygroup-mysecondgroup</code>. In our example the block name is ignorable so its replaced by <code>*</code>.
Every group will be added after each other to the blocks code <code>myblockname-mygroup-mysecondgroup</code>. In our example we can save ourselves writing a few extra letters by using the wild card <code>*</code>.


You can also use a more compact definition. Due to way we named our textures we can use the placeholder {type} to determine the texture name, so instead of taken care of every case we can do it like this:
You can also use a more compact definition. Due to way we named our textures we can use the placeholder {type} to determine the texture name, so instead of taken care of every case we can do it like this: