Skip to content

Commit

Permalink
Merge pull request #11 from RappyLabyAddons/feat/update
Browse files Browse the repository at this point in the history
Add support for `1.20.2`
  • Loading branch information
RappyTV authored Sep 27, 2023
2 parents b9710d2 + 8fc9730 commit 3768445
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 5 deletions.
6 changes: 4 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ labyMod {
displayName = "Toolbreak Warning"
author = "RappyTV"
description = "Stops you from using your currently used tool when its almost destroyed."
version = System.getenv().getOrDefault("VERSION", "1.3.0")
minecraftVersion = "1.8<1.20.2"
version = System.getenv().getOrDefault("VERSION", "1.3.1")
}

minecraft {
Expand All @@ -33,7 +34,8 @@ labyMod {
"1.19.2",
"1.19.3",
"1.19.4",
"1.20.1"
"1.20.1",
"1.20.2"
) { version, provider ->
configureRun(provider, version)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package com.rappytv.toolwarn.v1_20_2;

import com.rappytv.toolwarn.util.ITbwSounds;
import javax.inject.Singleton;
import net.labymod.api.client.resources.ResourceLocation;
import net.labymod.api.models.Implements;
import org.jetbrains.annotations.NotNull;

@Singleton
@Implements(ITbwSounds.class)
public class TbwSoundImpl implements ITbwSounds {

private final ResourceLocation plingSound = ResourceLocation.create("minecraft", "block.note_block.pling");
private final ResourceLocation levelUpSound = ResourceLocation.create("minecraft", "entity.player.levelup");
private final ResourceLocation glassBreakSound = ResourceLocation.create("minecraft", "block.glass.break");
private final ResourceLocation anvilUseSound = ResourceLocation.create("minecraft", "block.anvil.use");

@Override
public ResourceLocation getPlingSound() {
return plingSound;
}
@Override
public ResourceLocation getLevelUpSound() {
return levelUpSound;
}
@Override
public @NotNull ResourceLocation getGlassBreakSound() {
return glassBreakSound;
}
@Override
public ResourceLocation getAnvilUseSound() {
return anvilUseSound;
}
}
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ With this plugin you can prevent breaking your expensive tools, especially when
### Installation
1. Press `Win` + `R`
2. Paste this into the window that popped up: `%appdata%/.minecraft/LabyMod-neo/addons` and press enter
3. It should open your Labymod addon directory; Paste the [Toolbreak_Warning.jar](https://github.com/RappyLabyAddons/Toolbreak-Warning/releases/download/v1.3.0/Toolbreak_Warning.jar) in there.
3. It should open your Labymod addon directory; Paste the [Toolbreak-Warning.jar](https://github.com/RappyLabyAddons/Toolbreak-Warning/releases/latest/download/Toolbreak-Warning.jar) in there.
4. Launch your Labymod client.

If you have any problems with the addon/have update ideas, feel free to
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rootProject.name = "Toolbreak Warning"
rootProject.name = "toolwarn"

pluginManagement {
val labyGradlePluginVersion = "0.3.27"
val labyGradlePluginVersion = "0.3.29"
plugins {
id("net.labymod.gradle") version (labyGradlePluginVersion)
}
Expand Down

0 comments on commit 3768445

Please sign in to comment.