Skip to content

Commit 795d91a

Browse files
committed
Document OreSpawn versioning convention
1 parent 1c6d81a commit 795d91a

2 files changed

Lines changed: 110 additions & 0 deletions

File tree

‎docs/AGENTS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ Use the focused guides for implementation details:
1212
- [BIOMES.md](BIOMES.md) and [DIMENSIONS.md](DIMENSIONS.md) for world integration;
1313
- [TEMPLATES.md](TEMPLATES.md) for selectable world styles;
1414
- [CONFIGURATION.md](CONFIGURATION.md) for configuration behavior;
15+
- [VERSIONS.md](VERSIONS.md) for the shared mod versioning and branch-release convention;
1516
- [README.md](README.md) for schemas, examples, and the complete documentation index.

‎docs/VERSIONS.md‎

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Mod Versioning Policy
2+
3+
This document defines how versions are assigned to MMD mods.
4+
It separates the version of the mod from the Minecraft version that the mod supports.
5+
6+
## Version format
7+
8+
Mod versions use three numbers:
9+
10+
```text
11+
Major.Minor.Bug
12+
```
13+
14+
For example, OreSpawn `4.0.6` means major version 4, minor version 0, and bug revision 6.
15+
16+
The final artifact or release may also identify its Minecraft version, such as `OreSpawn-26.2-4.0.6`. The Minecraft version is a compatibility target; it is not part of the mod's `Major.Minor.Bug` progression.
17+
18+
When the Major or Minor component increases, the components to its right reset to zero. For example:
19+
20+
```text
21+
4.0.6 -> 4.1.0
22+
4.1.3 -> 5.0.0
23+
```
24+
25+
## Major version
26+
27+
Increase the **Major** number for a large-scale change, paradigm shift, or breaking change that moves the mod forward in a fundamental way.
28+
29+
Examples include:
30+
- Mineralogy 6 no longer containing its own world generation engine, unlike Mineralogy 5.
31+
- OreSpawn 4 gaining a complete terrain generation engine, including strata, unlike OreSpawn 3.
32+
33+
Compatibility adaptations required to support another Minecraft or loader version do not by themselves require a major version increase when the mod's supported behaviour and public contracts remain equivalent.
34+
35+
## Minor version
36+
37+
Increase the **Minor** number for a new feature or a significant change to existing behaviour that does not justify a new major generation.
38+
39+
Examples include:
40+
- adding a new player-usable block or other substantial feature;
41+
- substantially overhauling a world-generation engine;
42+
- making a significant fix or adjustment that materially changes how a major part of the mod behaves.
43+
44+
## Bug version
45+
46+
Increase the **Bug** number for a bug fix or a very small feature that does not materially change the mod's design.
47+
48+
Examples include:
49+
- correcting a generation defect;
50+
- fixing a user interface or compatibility problem;
51+
- adding or correcting a language file translation;
52+
- making a small documentation or configuration improvement that warrants a
53+
release.
54+
55+
This component is sometimes called the patch number in other semantic version systems. MMD uses the name **Bug** to make its intended purpose explicit.
56+
57+
## Ports to new Minecraft versions
58+
59+
Porting a mod to a new Minecraft version does not automatically change the mod version. If the new branch is functionally equivalent to the source branch, both releases use the same mod version.
60+
61+
For example:
62+
63+
```text
64+
Minecraft 26.1.2 / OreSpawn 4.0.6
65+
Minecraft 26.2 / OreSpawn 4.0.6
66+
```
67+
68+
Target MC/Framework specific implementation details may differ internally where Minecraft or its mod loader requires them. Those adaptations do not require a different mod version when users and integrations receive the same supported behaviour.
69+
70+
If a port also introduces a feature or fix that changes the functional release, the version must be assessed using the Major, Minor, and Bug rules above.
71+
72+
## Branch-specific fixes and skipped numbers
73+
74+
Version numbers are allocated across the mod as a whole and must not be reused for unrelated functional change sets on different Minecraft branches. The same number may be shared by functionally equivalent ports, as described above.
75+
76+
If a released branch receives a bug fix that other branches do not require, only the affected branch is incremented. For example, that branch may move from `4.0.6` to `4.0.7` while unaffected branches remain on `4.0.6`.
77+
78+
If a different branch later receives a separate fix, it uses the next unused version, such as `4.0.8`, even if the `4.0.7` fix was not applicable to it. A branch may therefore legitimately skip version numbers.
79+
80+
This provides three useful guarantees:
81+
1. A version number is not used to describe two different functional change sets.
82+
2. A higher version identifies a later change in the mod's release history.
83+
3. It is immediately visible that one branch may contain work not present in an older-numbered branch.
84+
85+
A higher version on another Minecraft branch does **not** necessarily mean it contains every lower numbered branch specific fix. Some fixes are relevant only to a particular Minecraft or loader implementation.
86+
87+
## Release and pull-request documentation
88+
89+
Because maintained branches can legitimately contain different fixes, the version number alone is not a substitute for release notes.
90+
91+
Every release and pull request should state:
92+
93+
- the Minecraft version and loader it targets;
94+
- the mod version before and after the change;
95+
- the features and fixes actually included;
96+
- any fixes from nearby versions that are not applicable to that branch;
97+
- whether the change is functionally equivalent to another maintained branch;
98+
- any migration, compatibility, or configuration considerations for users.
99+
100+
## Decision summary
101+
102+
When assigning a version, ask the following questions in order:
103+
104+
1. Is this a fundamental or breaking new generation of the mod? Increase **Major**.
105+
2. Is this a substantial feature or significant behavioural overhaul? Increase **Minor**.
106+
3. Is this a bug fix or very small feature? Increase **Bug**, using the next unused number across the mod.
107+
4. Is this only a functionally equivalent Minecraft or loader port? Keep the existing mod version.
108+
109+
The objective is to make versions useful to players, pack developers, mod integrators, and release automation while allowing each maintained Minecraft branch to receive only the changes it actually needs.

0 commit comments

Comments
 (0)