Compare commits

...

5 Commits

Author SHA1 Message Date
Jasmine Hegman
4753eb5935
Update yarn and fabric load/api (#134)
* Update yarn and fabric load/api

To keep up to date with https://fabricmc.net/versions.html?&version=1.17.1

* Set loader to latest stable version
2021-10-25 12:59:52 +01:00
Levy Ehrstein
3829e2132d
Use Logger instead of println (#126) 2021-09-22 12:25:04 +01:00
modmuss50
9df9227ee7 Update fabric API 2021-08-26 22:20:22 +01:00
modmuss50
27c0acc531 Update Gradle, Loom, Yarn, Fabric 2021-08-17 18:49:09 +01:00
modmuss50
d27b836cae Update Minecraft and Gradle. 2021-07-17 22:23:46 +01:00
7 changed files with 17 additions and 9 deletions

View File

@ -1,5 +1,5 @@
plugins { plugins {
id 'fabric-loom' version '0.8-SNAPSHOT' id 'fabric-loom' version '0.9-SNAPSHOT'
id 'maven-publish' id 'maven-publish'
} }

View File

@ -3,9 +3,9 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/versions.html # check these on https://fabricmc.net/versions.html
minecraft_version=1.17 minecraft_version=1.17.1
yarn_mappings=1.17+build.13 yarn_mappings=1.17.1+build.63
loader_version=0.11.6 loader_version=0.11.7
# Mod Properties # Mod Properties
mod_version = 1.0.0 mod_version = 1.0.0
@ -13,4 +13,4 @@ org.gradle.jvmargs=-Xmx1G
archives_base_name = fabric-example-mod archives_base_name = fabric-example-mod
# Dependencies # Dependencies
fabric_version=0.36.0+1.17 fabric_version=0.41.0+1.17

Binary file not shown.

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists

2
gradlew vendored
View File

@ -72,7 +72,7 @@ case "`uname`" in
Darwin* ) Darwin* )
darwin=true darwin=true
;; ;;
MINGW* ) MSYS* | MINGW* )
msys=true msys=true
;; ;;
NONSTOP* ) NONSTOP* )

View File

@ -1,14 +1,21 @@
package net.fabricmc.example; package net.fabricmc.example;
import net.fabricmc.api.ModInitializer; import net.fabricmc.api.ModInitializer;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class ExampleMod implements ModInitializer { public class ExampleMod implements ModInitializer {
// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
// That way, it's clear which mod wrote info, warnings, and errors.
public static final Logger LOGGER = LogManager.getLogger("modid");
@Override @Override
public void onInitialize() { public void onInitialize() {
// This code runs as soon as Minecraft is in a mod-load-ready state. // This code runs as soon as Minecraft is in a mod-load-ready state.
// However, some things (like resources) may still be uninitialized. // However, some things (like resources) may still be uninitialized.
// Proceed with mild caution. // Proceed with mild caution.
System.out.println("Hello Fabric world!"); LOGGER.info("Hello Fabric world!");
} }
} }

View File

@ -1,5 +1,6 @@
package net.fabricmc.example.mixin; package net.fabricmc.example.mixin;
import net.fabricmc.example.ExampleMod;
import net.minecraft.client.gui.screen.TitleScreen; import net.minecraft.client.gui.screen.TitleScreen;
import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.At;
@ -10,6 +11,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
public class ExampleMixin { public class ExampleMixin {
@Inject(at = @At("HEAD"), method = "init()V") @Inject(at = @At("HEAD"), method = "init()V")
private void init(CallbackInfo info) { private void init(CallbackInfo info) {
System.out.println("This line is printed by an example mod mixin!"); ExampleMod.LOGGER.info("This line is printed by an example mod mixin!");
} }
} }