Skip to content

Commit

Permalink
Merge pull request #2 from nelind3/master
Browse files Browse the repository at this point in the history
Updated to 1.20 and did some clean up work
  • Loading branch information
Enchanted-Games committed Jun 18, 2023
2 parents 2171a33 + a1b2894 commit 44cbf81
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 100 deletions.
3 changes: 0 additions & 3 deletions build.gradle
Expand Up @@ -24,9 +24,6 @@ dependencies {
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

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

// Uncomment the following line to enable the deprecated Fabric API modules.
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.

Expand Down
9 changes: 3 additions & 6 deletions gradle.properties
Expand Up @@ -10,9 +10,6 @@ org.gradle.parallel=true
# Fabric Properties
# check these on https://fabricmc.net/develop

minecraft_version=1.19.4
yarn_mappings=1.19.4+build.1
loader_version=0.14.18

#Fabric api
fabric_version=0.76.0+1.19.4
minecraft_version=1.20
yarn_mappings=1.20+build.1
loader_version=0.14.14
21 changes: 0 additions & 21 deletions remappedSrc/net/fabricmc/example/ExampleMod.java

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions src/main/java/games/enchanted/nodamagetilt/nodamagetilt.java

This file was deleted.

23 changes: 23 additions & 0 deletions src/main/java/games/enchanted/nodamagetilt/tiltViewMixin.java
@@ -0,0 +1,23 @@
package games.enchanted.nodamagetilt;

import net.minecraft.client.render.GameRenderer;
import net.minecraft.entity.LivingEntity;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.Redirect;
import org.spongepowered.asm.mixin.injection.At;


@Mixin(GameRenderer.class)
public class tiltViewMixin {
@Redirect(
method = "tiltViewWhenHurt",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/entity/LivingEntity;getDamageTiltYaw()F"
)
)
private float injected(LivingEntity instance) {
return 0.0F;
}
}
13 changes: 3 additions & 10 deletions src/main/resources/fabric.mod.json
Expand Up @@ -5,7 +5,7 @@

"name": "No Directional Damage Tilt",
"description": "Removes the directional damage tilt from the client.\nEssentially this mod brings MC-26678 back into the game.",
"authors": ["Enchanted_Games"],
"authors": ["Enchanted_Games", "nelind"],
"contact": {
"homepage": "https://enchanted.games/",
"sources": "https://github.com/Enchanted-Games/nodamagetilt",
Expand All @@ -15,19 +15,12 @@
"license": "CC0-1.0",
"icon": "assets/nodamagetilt/icon.png",

"environment": "*",
"entrypoints": {
"client": ["games.enchanted.nodamagetilt.nodamagetilt"]
},
"environment": "client",
"mixins": ["nodamagetilt.mixins.json"],

"depends": {
"fabricloader": ">=0.14.14",
"fabric-api": "*",
"minecraft": ">=1.19.4",
"minecraft": ">=1.20",
"java": ">=17"
},
"suggests": {
"another-mod": "*"
}
}
6 changes: 4 additions & 2 deletions src/main/resources/nodamagetilt.mixins.json
@@ -1,10 +1,12 @@
{
"required": true,
"minVersion": "0.8",
"package": "games.enchanted.nodamagetilt.mixin",
"package": "games.enchanted.nodamagetilt",
"compatibilityLevel": "JAVA_17",
"mixins": [],
"client": ["tiltViewMixin"],
"client": [
"tiltViewMixin"
],
"injectors": {
"defaultRequire": 1
}
Expand Down

0 comments on commit 44cbf81

Please sign in to comment.