Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperbean18 authored Dec 2, 2021
1 parent eda3236 commit 7799f9e
Show file tree
Hide file tree
Showing 54 changed files with 454 additions and 148 deletions.
27 changes: 6 additions & 21 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
plugins {
id 'fabric-loom' version '0.8-SNAPSHOT'
id 'fabric-loom' version '0.10-SNAPSHOT'
id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

archivesBaseName = project.archives_base_name
version = project.mod_version
Expand All @@ -26,9 +26,6 @@ dependencies {

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

// PSA: Some older mods, compiled on Loom 0.2.1, might have outdated Maven POMs.
// You may need to force-disable transitiveness on them.
}

processResources {
Expand All @@ -40,14 +37,8 @@ processResources {
}

tasks.withType(JavaCompile).configureEach {
// ensure that the encoding is set to UTF-8, no matter what the system default is
// this fixes some edge cases with special characters not displaying correctly
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
// If Javadoc is generated, this must be specified in that task too.
it.options.encoding = "UTF-8"

// Minecraft 1.17 (21w19a) upwards uses Java 16.
it.options.release = 16
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
it.options.release = 17
}

java {
Expand All @@ -67,13 +58,7 @@ jar {
publishing {
publications {
mavenJava(MavenPublication) {
// add all the jars that should be included when publishing to maven
artifact(remapJar) {
builtBy remapJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
from components.java
}
}

Expand Down
Binary file modified build/classes/java/main/matjojo/mixin/villagerInitMixin.class
Binary file not shown.
4 changes: 2 additions & 2 deletions build/classes/java/main/villagers-follow-emeralds-refmap.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"mappings": {
"matjojo/mixin/villagerInitMixin": {
"\u003cinit\u003e(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;Lnet/minecraft/village/VillagerType;)V": "Lnet/minecraft/class_1646;\u003cinit\u003e(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_3854;)V"
"<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;Lnet/minecraft/village/VillagerType;)V": "Lnet/minecraft/class_1646;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_3854;)V"
}
},
"data": {
"named:intermediary": {
"matjojo/mixin/villagerInitMixin": {
"\u003cinit\u003e(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;Lnet/minecraft/village/VillagerType;)V": "Lnet/minecraft/class_1646;\u003cinit\u003e(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_3854;)V"
"<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;Lnet/minecraft/village/VillagerType;)V": "Lnet/minecraft/class_1646;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;Lnet/minecraft/class_3854;)V"
}
}
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added build/libs/villagers-follow-emeralds-1.2.0.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1 named intermediary
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1 named intermediary
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1 named intermediary
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1 named intermediary
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"replace": false,
"values": [
"minecraft:emerald_block",
"minecraft:emerald_ore",
"minecraft:deepslate_emerald_ore"
]
}
6 changes: 3 additions & 3 deletions build/resources/main/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "villagers-follow-emeralds",
"version": "1.1.0",
"version": "1.2.0",
"name": "Villagers Follow Emeralds",
"description": "Villagers will follow you when you're holding emerald blocks/ore",
"authors": [
Expand All @@ -25,7 +25,7 @@
"villagers-follow-emeralds.mixins.json"
],
"depends": {
"fabricloader": ">=0.11.6",
"minecraft": ">=1.17.0"
"fabricloader": "*",
"minecraft": "*"
}
}
Binary file not shown.
12 changes: 6 additions & 6 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.17
yarn_mappings=1.17+build.1
loader_version=0.11.6
# check these on https://fabricmc.net/versions.html
minecraft_version=1.18
yarn_mappings=1.18+build.1
loader_version=0.12.8

# Mod Properties
mod_version = 1.1.0
mod_version = 1.2.0
maven_group = matjojo
archives_base_name = villagers-follow-emeralds

# Dependencies
fabric_version=0.34.9+1.17
fabric_version=0.43.1+1.18
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 7799f9e

Please sign in to comment.