diff options
author | CuzImClicks <bruno778.whiteelfie@gmail.com> | 2021-03-05 08:22:22 +0100 |
---|---|---|
committer | CuzImClicks <bruno778.whiteelfie@gmail.com> | 2021-03-05 08:22:22 +0100 |
commit | 1c464c705afa53b82d563e6fa05e776f16571e28 (patch) | |
tree | 2aa11267f73ebc89518a3ba764c9a359c112c971 /src/main/java/me/Danker/features/BlockAbilities.java | |
parent | e7237307e71c649b4b7c880259ff1781fcc7c435 (diff) | |
download | SkyblockMod-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.java | 12 |
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); } } } |