Skip to content

Commit dace1d0

Browse files
committed
The dependency types are actually case-sensitive.
1 parent eb25c17 commit dace1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/gettingstarted/modfiles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Mods can specify their dependencies, which are checked by NeoForge before loadin
125125
| Property | Type | Default | Description | Example |
126126
|:---------------|:------:|:-------------:|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------|
127127
| `modId` | string | **mandatory** | The identifier of the mod added as a dependency. | `modId="jei"` |
128-
| `type` | string | `"required"` | Specifies the nature of this dependency: `"required"` is the default and prevents the mod from loading if this dependency is missing; `"optional"` will not prevent the mod from loading if the dependency is missing, but still validates that the dependency is compatible; `"incompatible"` prevents the mod from loading if this dependency is present; `"discouraged"` still allows the mod to load if the dependency is present, but presents a warning to the user. | `type="incompatible"` |
128+
| `type` | string | `"REQUIRED"` | Specifies the nature of this dependency: `"REQUIRED"` is the default and prevents the mod from loading if this dependency is missing; `"OPTIONAL"` will not prevent the mod from loading if the dependency is missing, but still validates that the dependency is compatible; `"INCOMPATIBLE"` prevents the mod from loading if this dependency is present; `"DISCOURAGED"` still allows the mod to load if the dependency is present, but presents a warning to the user. | `type="INCOMPATIBLE"` |
129129
| `reason` | string | *nothing* | An optional user-facing message to describe why this dependency is required, or why it is incompatible. |
130130
| `versionRange` | string | `""` | The acceptable version range of the language loader, expressed as a [Maven Version Range][mvr]. An empty string matches any version. | `versionRange="[1, 2)"` |
131131
| `ordering` | string | `"NONE"` | Defines if the mod must load before (`"BEFORE"`) or after (`"AFTER"`) this dependency. If the ordering does not matter, return `"NONE"` | `ordering="AFTER"` |

0 commit comments

Comments
 (0)