- Status
- Offline
- Joined
- Jul 18, 2023
- Messages
- 707
- Reaction score
- 3
Step into the world of unlimited Minecraft features with our free collection of "HvHHelper" sources. Each source code from the "Cheat Sources for Minecraft" section has been thoroughly tested to ensure its operability and safety.
HvHHelper:
Code:package org.leon.client.feature.impl.combat; import net.minecraft.init.Items; import net.minecraft.inventory.ClickType; import org.leon.client.event.EventTarget; import org.leon.client.event.events.impl.player.EventUpdate; import org.leon.client.feature.Feature; import org.leon.client.feature.impl.FeatureCategory; import org.leon.client.feature.impl.hud.FeatureList; import org.leon.client.ui.settings.impl.NumberSetting; import org.leon.client.utils.other.ChatUtils; public class HvHHelper extends Feature { public static NumberSetting delay = new NumberSetting("Delay", 400, 50, 1000, 100, () -> true); public HvHHelper(){ super("HVHHelper", FeatureCategory.Player); addSettings(delay); } private static final FeatureList lastItem = new FeatureList(); @EventTarget public static void onUpdate(EventUpdate event) { int gIndex = -1; int sIndex = -1; //gapple inv index for (int i = 0; i < 45; i++) { if (mc.player.inventory.getStackInSlot(i).getItem() == Items.GOLDEN_APPLE && gIndex == -1) { gIndex = i; } } //shield inv index for (int i = 0; i < 45; i++) { if (mc.player.inventory.getStackInSlot(i).getItem() == Items.SHIELD && sIndex == -1) { sIndex = i; } } //ChatUtils.addChatMessage(String.valueOf(mc.player.getCooldownTracker().getCooldown(Items.SHIELD, 0f))); boolean s = false; if(mc.player.getCooldownTracker().hasCooldown(Items.SHIELD)) { if (mc.player.getHeldItemOffhand().getItem() != Items.GOLDEN_APPLE) { mc.playerController.windowClick(0, gIndex < 9 ? gIndex + 36 : gIndex, 0, ClickType.PICKUP, mc.player); mc.playerController.windowClick(0, 45, 0, ClickType.PICKUP, mc.player); mc.playerController.windowClick(0, gIndex < 9 ? gIndex + 36 : gIndex, 1, ClickType.PICKUP, mc.player); } if (mc.player.getCooldownTracker().getCooldown(Items.SHIELD, 0f) < 0.1f) { mc.player.getCooldownTracker().removeCooldown(Items.SHIELD); ChatUtils.addChatMessage("shield"); mc.playerController.windowClick(0, sIndex < 9 ? sIndex + 36 : sIndex, 0, ClickType.PICKUP, mc.player); mc.playerController.windowClick(0, 45, 0, ClickType.PICKUP, mc.player); mc.playerController.windowClick(0, sIndex < 9 ? sIndex + 36 : sIndex, 1, ClickType.PICKUP, mc.player); mc.playerController.windowClick(0, 45, 0, ClickType.PICKUP, mc.player); } } } }