Skip to content

Commit 13a0dc0

Browse files
committed
mods.toml
1 parent 108994e commit 13a0dc0

File tree

1 file changed

+34
-29
lines changed

1 file changed

+34
-29
lines changed

src/main/resources/META-INF/mods.toml

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@
44
# Note that there are a couple of TOML lists in this file.
55
# Find more information on toml format here: https://github.com/toml-lang/toml
66
# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml
7-
modLoader="javafml" #mandatory
7+
modLoader = "javafml" #mandatory
88
# A version range to match for said mod loader - for regular FML @Mod it will be the forge version
9-
loaderVersion="${loader_version_range}" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
9+
loaderVersion = "${loader_version_range}" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions.
1010
# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties.
1111
# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here.
12-
license="${mod_license}"
12+
license = "${mod_license}"
1313
# A URL to refer people to when problems occur with this mod
1414
#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional
1515
# A list of mods - how many allowed here is determined by the individual mod loader
1616
[[mods]] #mandatory
1717
# The modid of the mod
18-
modId="${mod_id}" #mandatory
18+
modId = "${mod_id}" #mandatory
1919
# The version number of the mod
20-
version="${mod_version}" #mandatory
20+
version = "${mod_version}" #mandatory
2121
# A display name for the mod
22-
displayName="${mod_name}" #mandatory
22+
displayName = "${mod_name}" #mandatory
2323
# A URL to query for updates for this mod. See the JSON update specification https://docs.minecraftforge.net/en/latest/misc/updatechecker/
2424
#updateJSONURL="https://change.me.example.invalid/updates.json" #optional
2525
# A URL for the "homepage" for this mod, displayed in the mod UI
@@ -29,7 +29,7 @@ displayName="${mod_name}" #mandatory
2929
# A text field displayed in the mod UI
3030
#credits="" #optional
3131
# A text field displayed in the mod UI
32-
authors="${mod_authors}" #optional
32+
authors = "${mod_authors}" #optional
3333
# Display Test controls the display for your mod in the server connection screen
3434
# MATCH_VERSION means that your mod will cause a red X if the versions on client and server differ. This is the default behaviour and should be what you choose if you have server and client elements to your mod.
3535
# IGNORE_SERVER_VERSION means that your mod will not cause a red X if it's present on the server but not on the client. This is what you should use if you're a server only mod.
@@ -39,32 +39,37 @@ authors="${mod_authors}" #optional
3939
#displayTest="MATCH_VERSION" # MATCH_VERSION is the default if nothing is specified (#optional)
4040

4141
# The description text for the mod (multi line!) (#mandatory)
42-
description='''${mod_description}'''
42+
description = '''${mod_description}'''
4343
# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
44-
[[dependencies.${mod_id}]] #optional
45-
# the modid of the dependency
46-
modId="forge" #mandatory
47-
# Does this dependency have to exist - if not, ordering below must be specified
48-
mandatory=true #mandatory
49-
# The version range of the dependency
50-
versionRange="${forge_version_range}" #mandatory
51-
# An ordering relationship for the dependency - BEFORE or AFTER required if the dependency is not mandatory
52-
# BEFORE - This mod is loaded BEFORE the dependency
53-
# AFTER - This mod is loaded AFTER the dependency
54-
ordering="NONE"
55-
# Side this dependency is applied on - BOTH, CLIENT, or SERVER
56-
side="BOTH"
44+
[[dependencies.${ mod_id }]] #optional
45+
# the modid of the dependency
46+
modId = "forge" #mandatory
47+
# Does this dependency have to exist - if not, ordering below must be specified
48+
mandatory = true #mandatory
49+
# The version range of the dependency
50+
versionRange = "${forge_version_range}" #mandatory
51+
# An ordering relationship for the dependency - BEFORE or AFTER required if the dependency is not mandatory
52+
# BEFORE - This mod is loaded BEFORE the dependency
53+
# AFTER - This mod is loaded AFTER the dependency
54+
ordering = "NONE"
55+
# Side this dependency is applied on - BOTH, CLIENT, or SERVER
56+
side = "BOTH"
5757
# Here's another dependency
58-
[[dependencies.${mod_id}]]
59-
modId="minecraft"
60-
mandatory=true
61-
# This version range declares a minimum of the current minecraft version up to but not including the next major version
62-
versionRange="${minecraft_version_range}"
63-
ordering="NONE"
64-
side="BOTH"
58+
[[dependencies.${ mod_id }]]
59+
modId = "minecraft"
60+
mandatory = true
61+
# This version range declares a minimum of the current minecraft version up to but not including the next major version
62+
versionRange = "${minecraft_version_range}"
63+
ordering = "NONE"
64+
side = "BOTH"
65+
[[dependencies.${ mod_id }]]
66+
modId = "botania"
67+
mandatory = true
68+
ordering = "NONE"
69+
side = "BOTH"
6570

6671
# Features are specific properties of the game environment, that you may want to declare you require. This example declares
6772
# that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't
6873
# stop your mod loading on the server for example.
6974
#[features.${mod_id}]
70-
#openGLVersion="[3.2,)"
75+
#openGLVersion="[3.2,)"

0 commit comments

Comments
 (0)