aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/features/BlockAbilities.java
diff options
context:
space:
mode:
authorCuzImClicks <bruno778.whiteelfie@gmail.com>2021-03-05 08:22:22 +0100
committerCuzImClicks <bruno778.whiteelfie@gmail.com>2021-03-05 08:22:22 +0100
commit1c464c705afa53b82d563e6fa05e776f16571e28 (patch)
tree2aa11267f73ebc89518a3ba764c9a359c112c971 /src/main/java/me/Danker/features/BlockAbilities.java
parente7237307e71c649b4b7c880259ff1781fcc7c435 (diff)
downloadSkyblockMod-1c464c705afa53b82d563e6fa05e776f16571e28.tar.gz
SkyblockMod-1c464c705afa53b82d563e6fa05e776f16571e28.tar.bz2
SkyblockMod-1c464c705afa53b82d563e6fa05e776f16571e28.zip
fitted my code with the rework
added Shadow Fury ability block added Special Hoe right click block added hide tooltips in melodys harp
Diffstat (limited to 'src/main/java/me/Danker/features/BlockAbilities.java')
-rw-r--r--src/main/java/me/Danker/features/BlockAbilities.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/features/BlockAbilities.java b/src/main/java/me/Danker/features/BlockAbilities.java
index 19a887c..814fd65 100644
--- a/src/main/java/me/Danker/features/BlockAbilities.java
+++ b/src/main/java/me/Danker/features/BlockAbilities.java
@@ -27,6 +27,12 @@ public class BlockAbilities {
if (ToggleCommand.lividDaggerToggled && item.getDisplayName().contains("Livid Dagger")) {
event.setCanceled(true);
}
+ if (ToggleCommand.shadowFuryToggled && item.getDisplayName().contains("Shadow Fury")) {
+ event.setCanceled(true);
+ }
+ if (ToggleCommand.specialHoeRightClick && (item.getDisplayName().contains("Mathematical Hoe") || item.getDisplayName().contains("Potato Hoe") || item.getDisplayName().contains("Wheat Hoe") || item.getDisplayName().contains("Carrot Hoe") || item.getDisplayName().contains("Sugar Cane Hoe") || item.getDisplayName().contains("Nether Warts Hoe"))) {
+ event.setCanceled(true);
+ }
} else if (event.action == PlayerInteractEvent.Action.RIGHT_CLICK_BLOCK) {
Block block = Minecraft.getMinecraft().theWorld.getBlockState(event.pos).getBlock();
@@ -77,6 +83,12 @@ public class BlockAbilities {
if (ToggleCommand.lividDaggerToggled && item.getDisplayName().contains("Livid Dagger")) {
event.setCanceled(true);
}
+ if (ToggleCommand.shadowFuryToggled && item.getDisplayName().contains("Shadow Fury")) {
+ event.setCanceled(true);
+ }
+ }
+ if (ToggleCommand.specialHoeRightClick && (item.getDisplayName().contains("Mathematical Hoe") || item.getDisplayName().contains("Potato Hoe") || item.getDisplayName().contains("Wheat Hoe") || item.getDisplayName().contains("Carrot Hoe") || item.getDisplayName().contains("Sugar Cane Hoe") || item.getDisplayName().contains("Nether Warts Hoe"))) {
+ event.setCanceled(true);
}
}
}