Add the player-use peripheral for CC:Tweaked #9
23
build.gradle
23
build.gradle
@ -38,6 +38,11 @@ minecraft {
|
||||
// Default run configurations.
|
||||
// These can be tweaked, removed, or duplicated as needed.
|
||||
runs {
|
||||
configureEach {
|
||||
property 'mixin.env.remapRefMap', 'true'
|
||||
property 'mixin.env.refMapRemappingFile', "${buildDir}/createSrgToMcp/output.srg"
|
||||
}
|
||||
|
||||
client {
|
||||
workingDirectory project.file('run')
|
||||
|
||||
@ -123,6 +128,13 @@ repositories {
|
||||
// flatDir {
|
||||
// dir 'libs'
|
||||
// }
|
||||
|
||||
maven {
|
||||
url "https://squiddev.cc/maven/"
|
||||
content {
|
||||
includeGroup("org.squiddev")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@ -142,6 +154,14 @@ dependencies {
|
||||
// For more info...
|
||||
// http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html
|
||||
// http://www.gradle.org/docs/current/userguide/dependency_management.html
|
||||
|
||||
// Vanilla (i.e. for multi-loader systems)
|
||||
// compileOnly("cc.tweaked:cc-tweaked-${minecraft_version}-common-api:${cct_version}")
|
||||
|
||||
// Forge Gradle
|
||||
// compileOnly("cc.tweaked:cc-tweaked-${minecraft_version}-core-api:${cct_version}")
|
||||
// compileOnly(fg.deobf("cc.tweaked:cc-tweaked-${minecraft_version}-forge-api:${cct_version}"))
|
||||
implementation fg.deobf("org.squiddev:cc-tweaked-${minecraft_version}:${cct_version}")
|
||||
}
|
||||
|
||||
// This task will expand all declared properties from Gradle (gradle.properties) in the specified resource targets.
|
||||
@ -158,7 +178,8 @@ tasks.named('processResources', ProcessResources).configure {
|
||||
mod_license: mod_license,
|
||||
mod_version: mod_version,
|
||||
mod_authors: mod_authors,
|
||||
mod_description: mod_description
|
||||
mod_description: mod_description,
|
||||
cct_version: cct_version
|
||||
]
|
||||
inputs.properties replaceProperties
|
||||
|
||||
|
@ -35,6 +35,11 @@ mapping_channel=official
|
||||
# This must match the format required by the mapping channel.
|
||||
mapping_version=1.19.2
|
||||
|
||||
## Dependency Properties
|
||||
|
||||
# The version of CC:Tweaked we're building against
|
||||
cct_version=1.101.3
|
||||
|
||||
## Mod Properties
|
||||
|
||||
# The unique mod identifier for the mod. Must be lowercase in English locale. Must fit the regex [a-z][a-z0-9_]{1,63}
|
||||
|
@ -46,7 +46,6 @@ authors="${mod_authors}" #optional
|
||||
# The description text for the mod (multi line!) (#mandatory)
|
||||
description='''${mod_description}'''
|
||||
|
||||
# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
|
||||
[[dependencies.${mod_id}]] #optional
|
||||
# the modid of the dependency
|
||||
modId="forge" #mandatory
|
||||
@ -58,11 +57,17 @@ description='''${mod_description}'''
|
||||
ordering="NONE"
|
||||
# Side this dependency is applied on - BOTH, CLIENT or SERVER
|
||||
side="BOTH"
|
||||
# Here's another dependency
|
||||
|
||||
[[dependencies.${mod_id}]]
|
||||
modId="minecraft"
|
||||
mandatory=true
|
||||
# This version range declares a minimum of the current minecraft version up to but not including the next major version
|
||||
versionRange="${minecraft_version_range}"
|
||||
ordering="NONE"
|
||||
side="BOTH"
|
||||
|
||||
[[dependencies.${mod_id}]]
|
||||
modId = "computercraft"
|
||||
mandatory = true
|
||||
versionRange = "[${cct_version},)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
Loading…
Reference in New Issue
Block a user