Added mixin support. Updated gitignore.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -191,6 +191,7 @@ fabric.properties
|
||||
### ForgeGradle template
|
||||
# Minecraft client/server files
|
||||
run/
|
||||
run-data/
|
||||
|
||||
### Gradle template
|
||||
.gradle
|
||||
|
20
build.gradle
20
build.gradle
@ -1,3 +1,14 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
// These repositories are only for Gradle plugins, put any other repositories in the repository block further below
|
||||
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' }
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id 'eclipse'
|
||||
id 'idea'
|
||||
@ -5,6 +16,8 @@ plugins {
|
||||
id 'org.parchmentmc.librarian.forgegradle' version '1.+'
|
||||
}
|
||||
|
||||
apply plugin: 'org.spongepowered.mixin'
|
||||
|
||||
group = mod_group_id
|
||||
version = mod_version
|
||||
|
||||
@ -58,6 +71,12 @@ minecraft {
|
||||
}
|
||||
}
|
||||
|
||||
mixin {
|
||||
add sourceSets.main, "${mod_id}.refmap.json"
|
||||
|
||||
config "${mod_id}.mixins.json"
|
||||
}
|
||||
|
||||
sourceSets.main.resources {
|
||||
srcDir 'src/generated/resources'
|
||||
}
|
||||
@ -66,6 +85,7 @@ repositories {}
|
||||
|
||||
dependencies {
|
||||
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"
|
||||
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor'
|
||||
}
|
||||
|
||||
tasks.named('processResources', ProcessResources).configure {
|
||||
|
14
src/main/resources/geologist_pick_tweaks.mixins.json
Normal file
14
src/main/resources/geologist_pick_tweaks.mixins.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"required": true,
|
||||
"minVersion": "0.8",
|
||||
"package": "dev.micle.geologistpicktweaks.mixin",
|
||||
"compatibilityLevel": "JAVA_8",
|
||||
"refmap": "test.refmap.json",
|
||||
"mixins": [
|
||||
],
|
||||
"client": [
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user