Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.aristhena.client.module.modules.combat;
- import me.aristhena.client.module.*;
- import me.aristhena.event.events.*;
- import net.minecraft.client.*;
- import net.minecraft.potion.*;
- import me.aristhena.utils.*;
- import net.minecraft.entity.*;
- import net.minecraft.network.play.client.*;
- import net.minecraft.network.*;
- import me.aristhena.event.*;
- @Mod
- public class Regen extends Module
- {
- @EventTarget
- public void onEventCalled(final UpdateEvent event) {
- if (Minecraft.getMinecraft().thePlayer.getActivePotionEffect(Potion.regeneration) != null && (Minecraft.getMinecraft().thePlayer.onGround || BlockUtils.isOnLadder(Minecraft.getMinecraft().thePlayer) || BlockUtils.isInLiquid(Minecraft.getMinecraft().thePlayer) || BlockUtils.isOnLiquid(Minecraft.getMinecraft().thePlayer)) && Minecraft.getMinecraft().thePlayer.getHealth() < Minecraft.getMinecraft().thePlayer.getMaxHealth()) {
- for (int i = 0; i < Minecraft.getMinecraft().thePlayer.getMaxHealth() - Minecraft.getMinecraft().thePlayer.getHealth(); ++i) {
- Minecraft.getMinecraft().thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer(Minecraft.getMinecraft().thePlayer.onGround));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement