Modding:Variants: Difference between revisions

From Vintage Story Wiki
m
Added mention of world properties.
m (Moved TOC)
m (Added mention of world properties.)
Line 24: Line 24:
]
]
</syntaxhighlight>Seashells have two variant groups: t''ype'' and ''color''. For each state in ''type'', there exists every state in ''color'', giving a total of 42 different sea shells. Every sea shell in game has a code of "''seashell-{type}-{color}''".
</syntaxhighlight>Seashells have two variant groups: t''ype'' and ''color''. For each state in ''type'', there exists every state in ''color'', giving a total of 42 different sea shells. Every sea shell in game has a code of "''seashell-{type}-{color}''".
Variant states can also be created from any [[Modding:World Properties|World Properties]]:<syntaxhighlight lang="json">
variantgroups: [
{ code: "rock", loadFromProperties: "block/rock" },
],
</syntaxhighlight>


==== SkipVariants ====
==== SkipVariants ====
Confirmedusers
556

edits