-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5242f17
commit a293c4d
Showing
7 changed files
with
71 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,52 @@ | ||
import modsdotgroovy.Dependency | ||
|
||
ModsDotGroovy.make { | ||
MultiplatformModsDotGroovy.make { | ||
modLoader = 'javafml' | ||
loaderVersion = '[1,)' | ||
|
||
license = 'LGPL-3.0-or-later' | ||
issueTrackerUrl = 'https://github.com/lukebemishprojects/DynamicAssetGenerator/issues' | ||
|
||
mod { | ||
modId = this.buildProperties['mod_id'] | ||
displayName = this.buildProperties['mod_name'] | ||
version = this.version | ||
modId = buildProperties.mod_id | ||
displayName = buildProperties.mod_name | ||
version = environmentInfo.version | ||
displayUrl = 'https://github.com/lukebemishprojects/DynamicAssetGenerator' | ||
contact { | ||
sources = 'https://github.com/lukebemishprojects/DynamicAssetGenerator' | ||
} | ||
author = 'Luke Bemish' | ||
description = buildProperties.description | ||
|
||
description = 'A tool for generating asset and data resources at runtime from existing resources.' | ||
authors = [this.buildProperties['mod_author'] as String] | ||
entrypoints { | ||
client = 'dev.lukebemish.dynamicassetgenerator.impl.fabriquilt.fabric.DynamicAssetGeneratorClientFabric' | ||
main = 'dev.lukebemish.dynamicassetgenerator.impl.fabriquilt.fabric.DynamicAssetGeneratorFabric' | ||
} | ||
|
||
dependencies { | ||
mod 'minecraft', { | ||
def minor = this.libs.versions.minecraft.split(/\./)[1] as int | ||
versionRange = "[${this.libs.versions.minecraft},1.${minor+1}.0)" | ||
versionRange = ">=${libs.versions.minecraft}" | ||
} | ||
|
||
onForge { | ||
neoforge = ">=${this.libs.versions.neoforge}" | ||
onNeoForge { | ||
neoforge = ">=${libs.versions.neoforge}" | ||
} | ||
|
||
onFabric { | ||
mod 'fabricloader', { | ||
versionRange = ">=${this.libs.versions.fabric.loader}" | ||
versionRange = ">=${libs.versions.fabric_loader}" | ||
} | ||
mod 'fabric-api', { | ||
versionRange = ">=${this.libs.versions.fabric.api.split(/\+/)[0]}" | ||
} | ||
} | ||
} | ||
|
||
onForge { | ||
dependencies = dependencies.collect { dep -> | ||
new Dependency() { | ||
@Override | ||
Map asForgeMap() { | ||
def map = dep.asForgeMap() | ||
map.remove('mandatory') | ||
map.put('type', this.mandatory ? 'required' : 'optional') | ||
return map | ||
} | ||
} | ||
versionRange = ">=${libs.versions.fabric_api.split(/\+/)[0]}" | ||
} | ||
} | ||
|
||
entrypoints { | ||
onFabric { | ||
entrypoint 'client', ['dev.lukebemish.dynamicassetgenerator.impl.fabriquilt.fabric.DynamicAssetGeneratorClientFabric'] | ||
entrypoint 'main', ['dev.lukebemish.dynamicassetgenerator.impl.fabriquilt.fabric.DynamicAssetGeneratorFabric'] | ||
} | ||
} | ||
} | ||
|
||
onFabric { | ||
mixin = [ | ||
'mixin.dynamic_asset_generator.json', | ||
'mixin.dynamic_asset_generator_fabriquilt.json' | ||
] | ||
mixins { | ||
mixin 'mixin.dynamic_asset_generator.json' | ||
mixin 'mixin.dynamic_asset_generator_fabriquilt.json' | ||
} | ||
} | ||
onForge { | ||
mixins = [ | ||
['config':'mixin.dynamic_asset_generator.json'] | ||
] | ||
onNeoForge { | ||
mixins { | ||
mixin 'mixin.dynamic_asset_generator.json' | ||
} | ||
} | ||
} |