This commit is contained in:
RyanTLG
2022-03-25 17:46:41 +02:00
parent 3b84706602
commit 39cae8b770
4 changed files with 20 additions and 61 deletions

View File

@@ -16,9 +16,7 @@ repositories {
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically. // Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html // See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories. // for more information about repositories.
allprojects { repositories { maven { url 'https://jitpack.io' } } }
maven { url 'https://jitpack.io' }
} }
dependencies { dependencies {
@@ -29,7 +27,6 @@ dependencies {
// Fabric API. This is technically optional, but you probably want it anyway. // Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
modImplementation "com.github.CrimsonDawn45:Fabric-Shield-Lib:v${project.fabric_shield_lib_version}"
} }
processResources { processResources {
@@ -66,20 +63,20 @@ publishing {
} }
} }
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.{ // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
// Add repositories to publish to here. // Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level. // Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for // The repositories here will be used for publishing your artifact, not for
// retrieving dependencies. // retrieving dependencies.
repositories { repositories {
maven { maven {
name = "GitHubPackages" name = "GitHubPackages"
url = "https://maven.pkg.github.com/RyanTLG/GamerMod" url = "https://maven.pkg.github.com/RyanTLG/gamermod"
credentials { credentials {
username = "RyanTLG" username = "RyanTLG"
password = "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" password = "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"
} }
} }
} }
} }

View File

@@ -1,17 +1,16 @@
# Done to increase the memory available to gradle. # Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G org.gradle.jvmargs=-Xmx2G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/develop # check these on https://fabricmc.net/develop
minecraft_version=1.18.1 minecraft_version=1.18.1
yarn_mappings=1.18.1+build.22 yarn_mappings=1.18.1+build.1
loader_version=0.13.3 loader_version=0.12.12
# Mod Properties # Mod Properties
mod_version = 0.6.2 mod_version = 1.18.1-0.6.2
maven_group = ryantlg.gamermod.mod maven_group = ryantlg.GamerMod.mod
archives_base_name = GamerMod archives_base_name = GamerMod
# Dependencies # Dependencies
fabric_version=0.46.4+1.18 fabric_version=0.46.0+1.18
fabric_shield_lib_version=1.4.5-1.18

View File

@@ -28,6 +28,7 @@ public class highStatusEffect extends StatusEffect{
((PlayerEntity) entity).dismountVehicle(); ((PlayerEntity) entity).dismountVehicle();
((PlayerEntity) entity).damage(DamageSource.FALL, (float) 0.01); ((PlayerEntity) entity).damage(DamageSource.FALL, (float) 0.01);
((PlayerEntity) entity).heal(3 << amplifier); ((PlayerEntity) entity).heal(3 << amplifier);
((PlayerEntity) entity).getFallSounds();
} }
} }

View File

@@ -1,38 +0,0 @@
{
"schemaVersion": 1,
"id": "gamermod",
"version": "${version}",
"name": "gamermod",
"description": "i fucked your mother",
"authors": [
"RyanTLG"
],
"contact": {
"homepage": "https://w/",
"sources": "https://github.com/FabricMC/fabric-example-mod"
},
"license": "CC0-1.0",
"icon": "assets/gamermod/icon.png",
"environment": "*",
"entrypoints": {
"main": [
"net.fabricmc.ryantlg.gamermod"
]
},
"mixins": [
"gamermod.mixins.json"
],
"depends": {
"fabricloader": ">=0.11.3",
"fabric": "*",
"minecraft": "1.18.x",
"java": ">=17"
},
"suggests": {
"another-mod": "*"
}
}