Skip to content

Commit

Permalink
Fixed #20 Update mod dependencies and versions
Browse files Browse the repository at this point in the history
The mod dependencies block in build.gradle has been commented out and versions of Minecraft, Forge, and the mod have been updated in multiple files as well. This includes changes in gradle.properties, META-INF/mods.toml, and build.gradle. The dependencies on 'Growthcraft' have been removed from the mods.toml file.
  • Loading branch information
Alatyami committed Jul 14, 2024
1 parent c492835 commit b46de40
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 26 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ minecraft {
property 'forge.logging.markers', 'REGISTRIES'
property 'forge.logging.console.level', 'debug'

mods {
"${mod_id}" {
source sourceSets.main
}
}
//mods {
// "${mod_id}" {
// source sourceSets.main
// }
//}
}

client {
Expand Down Expand Up @@ -114,7 +114,7 @@ tasks.named('jar', Jar).configure {
attributes([
'Specification-Title' : mod_id,
'Specification-Vendor' : mod_authors,
'Specification-Version' : '9',
'Specification-Version' : '1.20',
'Implementation-Title' : project.name,
'Implementation-Version' : project.jar.archiveVersion,
'Implementation-Vendor' : mod_authors,
Expand Down
23 changes: 13 additions & 10 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
# This is required to provide enough memory for the Minecraft decompilation process.
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

# ------------------------------------------------
# Environment Properties
# ------------------------------------------------
minecraft_version=1.20.2
minecraft_version_range=[1.20.2,1.21)
forge_version=48.1.0
forge_version_range=[48,)
loader_version_range=[48,)
minecraft_version=1.20.4
minecraft_version_range=[1.20.4,1.21)
forge_version=49.1.0
forge_version_range=[0,)
loader_version_range=[0,)
mapping_channel=official
mapping_version=1.20.2
mapping_version=1.20.4

# ------------------------------------------------
# Mod Properties
# ------------------------------------------------
Expand All @@ -21,10 +23,11 @@ mod_id=growthcraft_trapper
mod_archive_base=growthcraft-trapper
mod_name=Growthcraft Trapper
mod_license=GNU General Public License v3.0
mod_version=1.20.2.1
mod_version=1.20.4.1
mod_group_id=growthcraft
mod_authors=Alatyami
mod_description=Growthcraft Trapper is a realistic and immersive Forge mod that adds various new trapping elements to the game of Minecraft.

# ------------------------------------------------
# Mod Compatibility
# ------------------------------------------------
Expand All @@ -33,11 +36,11 @@ mod_description=Growthcraft Trapper is a realistic and immersive Forge mod that
# curseforge_MODNAME=CURSE_PROJ_ID:CURSE_FILE_ID
# ------------------------------------------------
# JEI - https://www.curseforge.com/minecraft/mc-mods/jei/files
curseforge_jei=238222:5101374
curseforge_jei=238222:5491249
# ------------------------------------------------
# TheOneProbe https://www.curseforge.com/minecraft/mc-mods/the-one-probe/files
curseforge_theoneprobe=245211:4613250
curseforge_theoneprobe=245211:5159289
# ------------------------------------------------
# Patchouli https://www.curseforge.com/minecraft/mc-mods/patchouli/files
curseforge_patchouli=306770:4636277
curseforge_patchouli=306770:5240286
# ------------------------------------------------
12 changes: 2 additions & 10 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
modLoader = "javafml"
loaderVersion = "[48,)"
loaderVersion = "[49,)"
license = "GNU General Public License v3.0"
issueTrackerURL = "https://github.com/GrowthcraftCE/Growthcraft-Trapper/issues"

Expand All @@ -21,17 +21,9 @@ versionRange = "${forge_version_range}"
ordering = "NONE"
side = "BOTH"

[[dependencies.${mod_id}]]
[[dependencies.${ mod_id }]]
modId = "minecraft"
mandatory = true
versionRange = "${minecraft_version_range}"
ordering = "NONE"
side = "BOTH"

[[dependencies.${mod_id}]]
modId = "growthcraft"
mandatory = false
versionRange = "[1.20.2,)"
ordering = "AFTER"
side = "BOTH"

0 comments on commit b46de40

Please sign in to comment.