Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package se.proxus.mods.list;
- import org.lwjgl.opengl.GL11;
- import net.minecraft.client.Minecraft;
- import net.minecraft.src.*;
- import se.proxus.mods.*;
- public class ModAutoSoup extends BaseMod {
- public ModAutoSoup() {
- super('f', "Auto_Soup", "Automagically selects soup and stuff.", "Combat", "NONE", true, false, "Oliver");
- }
- @Override
- public void onEnabled() {
- }
- @Override
- public void onDisabled() {
- }
- @Override
- public void onUpdate() {
- if(this.getState()) {
- if(this.wrapper.getPlayer().getHealth() <= 14) {
- this.setCurrentItemSoup();
- }
- }
- }
- public void setCurrentItemSoup() {
- for(int var0 = 0; var0 < 9; var0++) {
- ItemStack var1 = this.wrapper.getPlayer().inventory.mainInventory[var0];
- if(var1 != null) {
- if(var1.getItem() == Item.bowlSoup) {
- this.wrapper.getPlayer().inventory.currentItem = var0;
- this.utils.sendPacket(new Packet15Place(-1, -1, -1, -1, this.wrapper.getPlayer().inventory.getCurrentItem(), 0.0F, 0.0F, 0.0F));
- }
- } else {
- this.dragSoupFromInventory();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement