Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. Scripts
  3. AutoGapple(re-upload) (Legacy)

AutoGapple(re-upload) (Legacy)

Scheduled Pinned Locked Moved Scripts
19 Posts 8 Posters 2.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aftery
    replied to ChocoPie_isme on last edited by
    #8
    This post is deleted!
    1 Reply Last reply
    0
    • C Offline
      C Offline
      commandblock2
      replied to LolMC on last edited by
      #9

      @LolMC said in AutoGapple(re-upload):

      thanks
      you have teach me how to use InventoryUtils
      i have try that before but not work 😄

      It was kind of skidded from AutoSoup xDDDDDD

      @ChocoPie_isme said in AutoGapple(re-upload):

      you can send C09 packet for changing the slot silently, and maybe use C08 for eating, C07 for stop eating (didn't test C08 and C07)

      Indeed you are correct, C07/C08/C09 packets should work. It would take more time for me to code a silent yet legit and working one. But most importantly the none silent one is naturally compatible to the FastEat(conditionally C03 packet sender), a silent one could take extra work.

      1 Reply Last reply
      0
      • AzureA Offline
        AzureA Offline
        Azure
        wrote on last edited by
        #10

        pzo and I dont know why I wrote this because the limit is 8 characters

        1 Reply Last reply
        0
        • LolMCL Offline
          LolMCL Offline
          LolMC
          wrote on last edited by
          #11

          new 1.3 update

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Cu6eSu9ar.
            wrote on last edited by
            #12

            Bro,you know since me attack other player eat Gapple.I died

            1 Reply Last reply
            0
            • LolMCL Offline
              LolMCL Offline
              LolMC
              wrote on last edited by
              #13

              just turn on fastuse instant 🙂
              but it not work on hypixel and some server

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Aftery
                wrote on last edited by
                #14
                This post is deleted!
                1 Reply Last reply
                0
                • LolMCL Offline
                  LolMCL Offline
                  LolMC
                  wrote on last edited by
                  #15
                  This post is deleted!
                  1 Reply Last reply
                  0
                  • LolMCL Offline
                    LolMCL Offline
                    LolMC
                    wrote on last edited by
                    #16

                    ok
                    i have done autogapple slient
                    i will release the code after add it to main code

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #17

                      I think it's better to avoid nullable variables.

                      //Copyright 2020 commandblock2 distributed under AGPL-3.0-or-later
                      GuiInventory = Java.type("net.minecraft.client.gui.inventory.GuiInventory");
                      Potion = Java.type('net.minecraft.potion.Potion');
                      
                      var originalIndex = -1;
                      
                      module = {
                          name: "AutoGapple",
                          description: "Eat gapple when your health is low",
                          author: "commandblock2 && Lolmc",
                          category: "combat",
                          values: [
                              health = value.createFloat("Health", 10, 1, 20),
                              itemSwitchDelay = value.createInteger("SwitchDelayms", 100, 0, 1000)
                          ],
                          onDisable: function() {
                              originalIndex = -1;
                          },
                          onUpdate: function () {
                              if (mc.thePlayer.getHealth() <= health.get() && !mc.thePlayer.isPotionActive(Potion.regeneration)) {
                                  var gAppleIndex = InventoryUtils.findItem(9, 36, Items.golden_apple);
                      
                                  if ((gAppleIndex - 9 | 35 - gAppleIndex) >= 0 && InventoryUtils.hasSpaceHotbar()) {
                                      if (!(mc.currentScreen instanceof GuiInventory))
                                          mc.getNetHandler().addToSendQueue(new C16PacketClientStatus(C16PacketClientStatus.EnumState.OPEN_INVENTORY_ACHIEVEMENT));
                                      
                                      mc.playerController.windowClick(0, gAppleIndex, 0, 1, mc.thePlayer);//Shift + left mouse click
                      
                                      if (!(mc.currentScreen instanceof GuiInventory))
                                          mc.getNetHandler().addToSendQueue(new C0DPacketCloseWindow());
                      
                                      return;
                                  } else if ((gAppleIndex - 36 | 44 - gAppleIndex) >= 0 && gAppleIndex != mc.thePlayer.inventory.currentItem) {
                                      if (!~originalIndex) 
                                          originalIndex = mc.thePlayer.inventory.currentItem;
                                      mc.thePlayer.inventory.currentItem = gAppleIndex - 36;
                                  }
                      
                                  if (!~gAppleIndex)// fix block when no gapple
                                      mc.gameSettings.keyBindUseItem.pressed = true;
                      
                              } else if (!~originalIndex) {
                                  mc.gameSettings.keyBindUseItem.pressed = false;
                                  mc.thePlayer.inventory.currentItem = originalIndex;
                                  originalIndex = -1;
                              }
                          }
                      }
                      
                      script.import("Core.lib")
                      
                      1 Reply Last reply
                      0
                      • LolMCL Offline
                        LolMCL Offline
                        LolMC
                        wrote on last edited by
                        #18

                        -1.4:update eat slient mode(i learn it from jigsaw src),iam lazy to covert 1.3 to 1.4(someone can do that help me)

                        1 Reply Last reply
                        0
                        • FacundoF Offline
                          FacundoF Offline
                          Facundo
                          wrote on last edited by
                          #19

                          when i use it i always eat 2 apple is there any way i can eat only 1?

                          1 Reply Last reply
                          0

                          About
                          • Terms of Service
                          • Privacy Policy
                          • Status
                          • Contact Us
                          Downloads
                          • Releases
                          • Source code
                          • License
                          Docs
                          • Tutorials
                          • CustomHUD
                          • AutoSettings
                          • ScriptAPI
                          Community
                          • Forum
                          • Guilded
                          • YouTube
                          • Twitter
                          • D.Tube
                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups