Skip to content

Commit

Permalink
Push Fixes to the gamemode project
Browse files Browse the repository at this point in the history
  • Loading branch information
Mysticpasta1 committed Feb 27, 2021
1 parent 4441bd1 commit 20dc654
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 33 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
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-6.8-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
9 changes: 9 additions & 0 deletions src/main/java/com/mystic/gamemode/GamemodeMod.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.mystic.gamemode;

import net.fabricmc.api.ModInitializer;

public class GamemodeMod implements ModInitializer {
@Override
public void onInitialize() {
}
}
6 changes: 6 additions & 0 deletions src/main/java/com/mystic/gamemode/GamemodeUnlocked.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.mystic.gamemode;

import net.minecraft.world.GameMode;

public class GamemodeUnlocked GameMode {
}
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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!");
Expand Down
14 changes: 0 additions & 14 deletions src/main/java/net/fabricmc/example/ExampleMod.java

This file was deleted.

Binary file added src/main/resources/assets/gamemode/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/main/resources/assets/modid/icon.png
Binary file not shown.
18 changes: 9 additions & 9 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 20dc654

Please sign in to comment.