AutoGapple

Avatar

By NoobPlayer3000 9 October 2019 16:07

Member · 10 comments


hello good morning or good night big_smile

Someone knows how to get apples in hand automatically?

Avatar

By Florasang 9 October 2019 16:49

Member · 144 comments
NoobPlayer3000 wrote


hello good morning or good night big_smile

Someone knows how to get apples in hand automatically?

There isn‘t a modulle yet, you need a script for that.


I'm a ironic, that's who I am!

Avatar

By Sms_Gamer_3808 9 October 2019 23:06

Member · 846 comments

You mean AutoEat or AutoGapple (golden apple)? AutoEat I think is already a thing. AutoGapple is fairly ez to make.


I don't exist

Avatar

By soulplexis 9 October 2019 23:30

Donator · 941 comments
Sms_Gamer_3808 wrote

You mean AutoEat or AutoGapple (golden apple)? AutoEat I think is already a thing. AutoGapple is fairly ez to make.

its actually not a thing in liquidbounce, i wish it was sad


Official account of Soulplexis
Script creator, LiquidBounce user, developer of Monix client
If you want to contact me please do that on Discord
https://soulplexisofficial.wixsite.com/commecon

Avatar

By yorik100 10 October 2019 05:37

Member · 839 comments

If at certain health level get actual slot, search a gapple in your hotbar, switch selected slot to that slot, find a way to detect if player has eaten gapple, set a slider for min delay before next gapple, switch back to old slot (when eating a gapple it should set to the gapple slot every ticks to avoid ppl from manually switching)
Note that you can't use normal methods to detect if the player is eating, it MUST be compatible with instant fastuse

Avatar

By NoobPlayer3000 10 October 2019 07:01

Member · 10 comments
Florasang wrote
NoobPlayer3000 wrote


hello good morning or good night big_smile

Someone knows how to get apples in hand automatically?

There isn‘t a modulle yet, you need a script for that.

someone helps me create an autogapple with ScriptAPI

I saw this


var scriptName = "AutoGapple";
var scriptAuthor = "By Virus";
var scriptVersion = 1.0;

var ItemAppleGold = Java.type('net.minecraft.item.ItemAppleGold');

function ExampleModule() {
    this.getName = function() {
        return "AutoGapple";
    }
    this.getDescription = function() {
        return ".";
    }
    this.getCategory = function() {
        return "Combat"; 
    }
    this.onEnable = function() {
       
    }
    this.onDisable = function() {
        
    }
    this.onUpdate = function() {
    	if (mc.thePlayer.getHeldItem().getItem() instanceof ItemAppleGold) {
    		if(mc.thePlayer.getHealth() <= 9) {
    			mc.gameSettings.keyBindUseItem.pressed = true;
    		}else{
    			mc.gameSettings.keyBindUseItem.pressed = false;

    		}

    	}
      
    }
}
var exampleModule = new ExampleModule();
var exampleModuleClient;

function onLoad() {}

function onEnable() {
    exampleModuleClient = moduleManager.registerModule(exampleModule);
}

function onDisable() {
    moduleManager.unregisterModule(exampleModuleClient);
}

Last edited by NoobPlayer3000 (10 October 2019 08:24)

Avatar

By yorik100 10 October 2019 13:27

Member · 839 comments
NoobPlayer3000 wrote
Florasang wrote
NoobPlayer3000 wrote


hello good morning or good night big_smile

Someone knows how to get apples in hand automatically?

There isn‘t a modulle yet, you need a script for that.

someone helps me create an autogapple with ScriptAPI

I saw this


var scriptName = "AutoGapple";
var scriptAuthor = "By Virus";
var scriptVersion = 1.0;

var ItemAppleGold = Java.type('net.minecraft.item.ItemAppleGold');

function ExampleModule() {
    this.getName = function() {
        return "AutoGapple";
    }
    this.getDescription = function() {
        return ".";
    }
    this.getCategory = function() {
        return "Combat"; 
    }
    this.onEnable = function() {
       
    }
    this.onDisable = function() {
        
    }
    this.onUpdate = function() {
    	if (mc.thePlayer.getHeldItem().getItem() instanceof ItemAppleGold) {
    		if(mc.thePlayer.getHealth() <= 9) {
    			mc.gameSettings.keyBindUseItem.pressed = true;
    		}else{
    			mc.gameSettings.keyBindUseItem.pressed = false;

    		}

    	}
      
    }
}
var exampleModule = new ExampleModule();
var exampleModuleClient;

function onLoad() {}

function onEnable() {
    exampleModuleClient = moduleManager.registerModule(exampleModule);
}

function onDisable() {
    moduleManager.unregisterModule(exampleModuleClient);
}

This is so wrong
1. Doesn't take the gapple in hand automatically
2. Will eat them in a row which is a terrible thing to do
3. You can't use a gapple manually with it activated

Last edited by yorik100 (10 October 2019 15:23)

Avatar

By soulplexis 10 October 2019 21:07

Donator · 941 comments

use mc.playerController.sendUseItem(mc.thePlayer, mc.theWorld, mc.thePlayer.getHeldItem()); then you can use right-click even when it isnt going


Official account of Soulplexis
Script creator, LiquidBounce user, developer of Monix client
If you want to contact me please do that on Discord
https://soulplexisofficial.wixsite.com/commecon

Avatar

By soulplexis 10 October 2019 21:29

Donator · 941 comments

here, I tried. it doesn't work but it might be able to be fixed to work:

var scriptName = "AutoGapple";
var scriptAuthor = "soulplexis / virus";
var scriptVersion = 1.1;

var ItemAppleGold = Java.type('net.minecraft.item.ItemAppleGold');

function ExampleModule() {
	var Delay = value.createInteger("Delay", 100, 0, 1000);
    this.getName = function() {
        return "AutoGapple";
    }
    this.getDescription = function() {
        return "Automatically consumes a golden apple when health is low.";
    }
    this.getCategory = function() {
        return "Combat"; 
    }
    this.onEnable = function() {
		var i = 0;
		mc.playerController.sendSlotPacket(mc.thePlayer.getHeldItem(), 2);
		var original = mc.thePlayer.getHeldItem().getSlot();
    }
    this.onDisable = function() {
        
    }
    this.onUpdate = function() {
		i++;
    	if(mc.thePlayer.getHealth() <= 9) {
		for(var x = 0; x <= 8; x++) {
		var slot = mc.thePlayer.inventoryContainer.getSlot(x);
	    }
		if(slot.getItem() instanceof ItemAppleGold && i >= Delay.get()) {
			mc.playerController.sendSlotPacket(mc.thePlayer.getHeldItem(), slot);
			i = -2;
			mc.playerController.sendUseItem(mc.thePlayer, mc.theWorld, mc.thePlayer.getHeldItem());
			
		}
    	}
      
	if(i == -1) {
		mc.playerController.sendSlotPacket(mc.thePlayer.getHeldItem(), original);
	}
    }
	this.addValues = function(soul) {
		soul.add(Delay);
	}
}
var exampleModule = new ExampleModule();
var exampleModuleClient;

function onLoad() {}

function onEnable() {
    exampleModuleClient = moduleManager.registerModule(exampleModule);
}

function onDisable() {
    moduleManager.unregisterModule(exampleModuleClient);
}

Official account of Soulplexis
Script creator, LiquidBounce user, developer of Monix client
If you want to contact me please do that on Discord
https://soulplexisofficial.wixsite.com/commecon

Avatar

By CzechHek 22 October 2019 13:22

Member · 553 comments
for (var i = 36; i < 45; i++) {
	if (mc.thePlayer.inventoryContainer.getSlot(i).getStack() ? mc.thePlayer.inventoryContainer.getSlot(i).getStack().getItem() instanceof Java.type('net.minecraft.item.ItemAppleGold') : false) {
		chat.print(i)
		mc.playerController.sendSlotPacket(mc.thePlayer.inventoryContainer.getSlot(i).getStack(), i - 36);
		mc.playerController.sendUseItem(mc.thePlayer, mc.theWorld, mc.thePlayer.inventoryContainer.getSlot(i).getStack());
		break
		}
}

I tried to do AutoGapple few weeks ago, ended up with this. It only eats the gapple when you for example open mc chat?
It checks if you have gapples in your inventory and tries to eat them.

Last edited by CzechHek (22 October 2019 13:26)


Script Developer
dyskord.cc

Avatar

By Tsikyng Kirisame 3 June 2020 04:22

Member · 68 comments
CzechHek wrote
for (var i = 36; i < 45; i++) {
	if (mc.thePlayer.inventoryContainer.getSlot(i).getStack() ? mc.thePlayer.inventoryContainer.getSlot(i).getStack().getItem() instanceof Java.type('net.minecraft.item.ItemAppleGold') : false) {
		chat.print(i)
		mc.playerController.sendSlotPacket(mc.thePlayer.inventoryContainer.getSlot(i).getStack(), i - 36);
		mc.playerController.sendUseItem(mc.thePlayer, mc.theWorld, mc.thePlayer.inventoryContainer.getSlot(i).getStack());
		break
		}
}

I tried to do AutoGapple few weeks ago, ended up with this. It only eats the gapple when you for example open mc chat?
It checks if you have gapples in your inventory and tries to eat them.

ItemStack stack = mc.thePlayer.inventoryContainer.inventorySlots.subList(36, 45).stream().filter(slot -> slot.getHasStack() && slot.getStack().getItem() instanceof ItemAppleGold).min(mc.thePlayer.inventoryContainer.inventorySlots::indexOf).get();

tongue


天気が良いから、散歩しましょう!

Avatar

By ChocoPie_isme 3 June 2020 04:23

Member · 376 comments

use superheromc's autogapple, it's on the forum


How do i set a rainbow signature?

Avatar

By ChocoPie_isme 3 June 2020 04:32

Member · 376 comments

https://forum.ccbluex.net/thread.php?id=2840


How do i set a rainbow signature?

Avatar

By _SunnyCrafttt 3 June 2020 10:50

Member · 325 comments
ChocoPie_isme wrote

https://forum.ccbluex.net/thread.php?id=2840

some bugs that i found:

1. sometimes it keeps eating gap until theres no more
2. it sometimes doesn't help me to change slots
3. when i block in turns on killaura, which makes me angry


some of them can be fixed


x9NRB1x.gif

嗨,您好

Discord: SoSmart#0315 - YT: https://bit.ly/3dtAOfW

Ms0EFcQ.gif

Avatar

By SuperheroMC 3 June 2020 11:06

Member · 264 comments
_SunnyCrafttt wrote
ChocoPie_isme wrote

https://forum.ccbluex.net/thread.php?id=2840

some bugs that i found:

1. sometimes it keeps eating gap until theres no more
2. it sometimes doesn't help me to change slots
3. when i block in turns on killaura, which makes me angry


some of them can be fixed

iam very lazy
to fix that


Discord:LolMC#9062