diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f811f6a --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +# Disable autocrlf on generated files, they always generate with LF +# Add any extra files or paths here to make git stop saying they +# are changed when only line endings change. +src/generated/**/.cache/cache text eol=lf +src/generated/**/*.json text eol=lf diff --git a/gradle.properties b/gradle.properties index a700a99..3fd3766 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,16 +1,16 @@ # Done to increase the memory available to gradle. -org.gradle.jvmargs=-Xmx1G +org.gradle.jvmargs=-Xmx8G # Fabric Properties # check these on https://fabricmc.net/use minecraft_version=1.16.5 - yarn_mappings=1.16.5+build.1 - loader_version=0.11.0 + yarn_mappings=1.16.5+build.5 + loader_version=0.11.2 # Mod Properties mod_version = 1.0.0 - maven_group = com.example - archives_base_name = fabric-example-mod + maven_group = com.mystic + archives_base_name = gamemode # Dependencies # currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index e708b1c..e69de29 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index da9702f..be52383 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/src/main/java/com/mystic/gamemode/GamemodeMod.java b/src/main/java/com/mystic/gamemode/GamemodeMod.java new file mode 100644 index 0000000..30cad1a --- /dev/null +++ b/src/main/java/com/mystic/gamemode/GamemodeMod.java @@ -0,0 +1,9 @@ +package com.mystic.gamemode; + +import net.fabricmc.api.ModInitializer; + +public class GamemodeMod implements ModInitializer { + @Override + public void onInitialize() { + } +} diff --git a/src/main/java/com/mystic/gamemode/GamemodeUnlocked.java b/src/main/java/com/mystic/gamemode/GamemodeUnlocked.java new file mode 100644 index 0000000..ee4ab4a --- /dev/null +++ b/src/main/java/com/mystic/gamemode/GamemodeUnlocked.java @@ -0,0 +1,6 @@ +package com.mystic.gamemode; + +import net.minecraft.world.GameMode; + +public class GamemodeUnlocked GameMode { +} diff --git a/src/main/java/net/fabricmc/example/mixin/ExampleMixin.java b/src/main/java/com/mystic/gamemode/mixin/GamemodeMixin.java similarity index 87% rename from src/main/java/net/fabricmc/example/mixin/ExampleMixin.java rename to src/main/java/com/mystic/gamemode/mixin/GamemodeMixin.java index 83ee1a8..79bf21f 100644 --- a/src/main/java/net/fabricmc/example/mixin/ExampleMixin.java +++ b/src/main/java/com/mystic/gamemode/mixin/GamemodeMixin.java @@ -1,4 +1,4 @@ -package net.fabricmc.example.mixin; +package com.mystic.gamemode.mixin; import net.minecraft.client.gui.screen.TitleScreen; import org.spongepowered.asm.mixin.Mixin; @@ -7,7 +7,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(TitleScreen.class) -public class ExampleMixin { +public class GamemodeMixin { @Inject(at = @At("HEAD"), method = "init()V") private void init(CallbackInfo info) { System.out.println("This line is printed by an example mod mixin!"); diff --git a/src/main/java/net/fabricmc/example/ExampleMod.java b/src/main/java/net/fabricmc/example/ExampleMod.java deleted file mode 100644 index e5ed082..0000000 --- a/src/main/java/net/fabricmc/example/ExampleMod.java +++ /dev/null @@ -1,14 +0,0 @@ -package net.fabricmc.example; - -import net.fabricmc.api.ModInitializer; - -public class ExampleMod implements ModInitializer { - @Override - public void onInitialize() { - // This code runs as soon as Minecraft is in a mod-load-ready state. - // However, some things (like resources) may still be uninitialized. - // Proceed with mild caution. - - System.out.println("Hello Fabric world!"); - } -} diff --git a/src/main/resources/assets/gamemode/icon.png b/src/main/resources/assets/gamemode/icon.png new file mode 100644 index 0000000..ad233ec Binary files /dev/null and b/src/main/resources/assets/gamemode/icon.png differ diff --git a/src/main/resources/assets/modid/icon.png b/src/main/resources/assets/modid/icon.png deleted file mode 100644 index 047b91f..0000000 Binary files a/src/main/resources/assets/modid/icon.png and /dev/null differ diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index df92d8b..57536bd 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -1,29 +1,29 @@ { "schemaVersion": 1, - "id": "modid", + "id": "gamemode", "version": "${version}", - "name": "Example Mod", - "description": "This is an example description! Tell everyone what your mod is about!", + "name": "Mystic's Gamemode Mod", + "description": "A gamemode based off of terraria's journey mode", "authors": [ "Me!" ], "contact": { - "homepage": "https://fabricmc.net/", - "sources": "https://github.com/FabricMC/fabric-example-mod" + "homepage": "https://mystic.hypherionmc.me/", + "sources": "https://github.com/Mysticpasta1/Mystics-Gamemode-Mod" }, - "license": "CC0-1.0", - "icon": "assets/modid/icon.png", + "license": "LGPL3", + "icon": "assets/gamemode/icon.png", "environment": "*", "entrypoints": { "main": [ - "net.fabricmc.example.ExampleMod" + "com.mystic.gamemode.GamemodeMod" ] }, "mixins": [ - "modid.mixins.json" + "gamemode.mixins.json" ], "depends": { diff --git a/src/main/resources/modid.mixins.json b/src/main/resources/gamemode.mixins.json similarity index 72% rename from src/main/resources/modid.mixins.json rename to src/main/resources/gamemode.mixins.json index 21fe73a..4456a1a 100644 --- a/src/main/resources/modid.mixins.json +++ b/src/main/resources/gamemode.mixins.json @@ -1,12 +1,12 @@ { "required": true, "minVersion": "0.8", - "package": "net.fabricmc.example.mixin", + "package": "com.mystic.gamemode.mixin", "compatibilityLevel": "JAVA_8", "mixins": [ ], "client": [ - "ExampleMixin" + "GamemodeMixin" ], "injectors": { "defaultRequire": 1