Skip to content

Commit c5031e2

Browse files
committed
Tidy up properties and neoforge.mods.toml file
1 parent 4765ba7 commit c5031e2

File tree

2 files changed

+12
-46
lines changed

2 files changed

+12
-46
lines changed

neoforge/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ mod_name=CSS-Minecraft
3333
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
3434
mod_license=todo
3535
# The mod version. See https://semver.org/
36-
mod_version=1.0-SNAPSHOT
36+
mod_version=1.0.0
3737
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
3838
# This should match the base package used for the mod sources.
3939
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
Lines changed: 11 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,35 @@
11

22
modLoader="javafml" #mandatory
33
loaderVersion="${loader_version_range}" #mandatory
4-
license="todo"
4+
license="${mod_license}"
55

6-
# A URL to refer people to when problems occur with this mod
7-
#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional
8-
# A list of mods - how many allowed here is determined by the individual mod loader
96
[[mods]] #mandatory
10-
modId="cssminecraft"
11-
version="1.0.0"
12-
displayName="CSSMinecraft"
7+
modId="${mod_id}"
8+
version="${mod_version}"
9+
displayName="${mod_name}"
1310
logoFile="logo.png"
1411
authors="LMBishop"
1512
description='''
1613
CSS' Minecraft plugin
1714
'''
1815

19-
# The [[mixins]] block allows you to declare your mixin config to FML so that it gets loaded.
20-
#[[mixins]]
21-
#config="${mod_id}.mixins.json"
22-
23-
# The [[accessTransformers]] block allows you to declare where your AT file is.
24-
# If this block is omitted, a fallback attempt will be made to load an AT from META-INF/accesstransformer.cfg
25-
#[[accessTransformers]]
26-
#file="META-INF/accesstransformer.cfg"
27-
28-
# The coremods config file path is not configurable and is always loaded from META-INF/coremods.json
29-
30-
# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
31-
[[dependencies.cssminecraft]] #optional
32-
# the modid of the dependency
33-
modId="neoforge" #mandatory
34-
# The type of the dependency. Can be one of "required", "optional", "incompatible" or "discouraged" (case insensitive).
35-
# 'required' requires the mod to exist, 'optional' does not
36-
# 'incompatible' will prevent the game from loading when the mod exists, and 'discouraged' will show a warning
37-
type="required" #mandatory
38-
# Optional field describing why the dependency is required or why it is incompatible
39-
# reason="..."
40-
# The version range of the dependency
41-
versionRange="${neo_version_range}" #mandatory
42-
# An ordering relationship for the dependency.
43-
# BEFORE - This mod is loaded BEFORE the dependency
44-
# AFTER - This mod is loaded AFTER the dependency
16+
[[dependencies."${mod_id}"]]
17+
modId="neoforge"
18+
type="required"
19+
versionRange="${neo_version_range}"
4520
ordering="NONE"
46-
# Side this dependency is applied on - BOTH, CLIENT, or SERVER
4721
side="BOTH"
4822

49-
[[dependencies.cssminecraft]]
23+
[[dependencies."${mod_id}"]]
5024
modId="minecraft"
5125
type="required"
52-
# This version range declares a minimum of the current minecraft version up to but not including the next major version
5326
versionRange="${minecraft_version_range}"
5427
ordering="NONE"
5528
side="BOTH"
5629

57-
[[dependencies.cssminecraft]]
30+
[[dependencies."${mod_id}"]]
5831
modId="luckperms"
59-
mandatory=false
32+
type="optional"
6033
versionRange="*"
6134
ordering="AFTER"
6235
side="SERVER"
63-
64-
65-
# Features are specific properties of the game environment, that you may want to declare you require. This example declares
66-
# that your mod requires GL version 3.2 or higher. Other features will be added. They are side aware so declaring this won't
67-
# stop your mod loading on the server for example.
68-
#[features."${mod_id}"]
69-
#openGLVersion="[3.2,)"

0 commit comments

Comments
 (0)