Modinfo: Difference between revisions

From Vintage Story Wiki
10 bytes removed ,  3 months ago
More clearly SemVer info
(Marked this version for translation)
(More clearly SemVer info)
Line 52: Line 52:
| requiredOnServer|| <code>"requiredOnServer": true</code> ||If set to false and the mod is universal, the mod is not disabled if it's not present on the server. Default value = True
| requiredOnServer|| <code>"requiredOnServer": true</code> ||If set to false and the mod is universal, the mod is not disabled if it's not present on the server. Default value = True
|-
|-
| dependencies || <code>"dependencies": { "game": "1.12.14", "survival": "1.12.14"}</code> ||  List of mods (and versions) this mod depends on.<br>The game uses SemVer to compare using logic described here: [https://semver.org/ https://semver.org/], so for example 1.15.0 > 1.15.0-rc.3 > 1.15.0-rc.2<br>For example, if you set your mod to have a dependency of "game": "1.15.0-rc.2", it will be compatible with that version and all versions released at a later date.<br>You can set the value to an empty string or an asterisk ("game": "*") to allow compatibility with all versions.
| dependencies || <code>"dependencies": { "game": "1.12.14", "survival": "1.12.14"}</code> ||  List of mods (and versions) this mod depends on.<br><br>The game uses [https://semver.org/ SemVer] to compare, so for example "1.15.0" > "1.15.0-rc.3" > "1.15.0-rc.2" > "1.15.0-pre.1". You can set the value to an empty string or an asterisk ("game": "*") to allow compatibility with all versions.<br><br>Although the game follows the general logic of SemVer, it does not fully implement it. So for <prerelease> you can only use rc > pre > dev and <metadata> is not supported.
|}
|}


Confirmedusers, editor
749

edits