Modding:Basic Block: Difference between revisions
From Vintage Story Wiki
Line 136: | Line 136: | ||
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>. | 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 | 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 handling every case individually we can write it like this: | ||
<syntaxhighlight lang="json"> | <syntaxhighlight lang="json"> |