Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • 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. ScriptAPI
  3. I need help on a fly script

I need help on a fly script

Scheduled Pinned Locked Moved Unsolved ScriptAPI
scriptapiflyvanillaflyhelpfirstscript
6 Posts 3 Posters 2.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SomeHax
    wrote on last edited by SomeHax
    #1

    Here is my script
    I was aiming for a damage vanilla fly to bypass verus AC but I cant go upwards on pressing space bar[the base script is at the bottom of the page its based on core why I don't know how to remove the core restriction]

    ///api_version=2
    (script = registerScript({
    name: "VerusVanillaFly",
    authors: ["SomeHax"],
    version: "1.0"
    })).import("Core.lib");

    var boostTicks = 0;

    module = {
    category: "Fun",
    values: [
    boostMode = value.createList("BoostMode", ["None", "Static", "Gradual"], "Gradual"),
    boostTicksValue = value.createInteger("BoostTicks", 20, 1, 10000),
    boostMotion = value.createFloat("BoostMotion", 9, 1, 9.87)
    ],
    onEnable: function() {
    boostTicks = 0;
    if (boostMode.get() != "None" && mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 3.0001, 0).expand(0, 0, 0)).isEmpty()) {
    mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 3.0001, mc.thePlayer.posZ, false));
    mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false));
    mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
    }
    mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.42, mc.thePlayer.posZ);
    },
    onDisable: function() {
    if (boostTicks > 0) {
    mc.thePlayer.motionX = 0;
    mc.thePlayer.motionY = 0;
    mc.thePlayer.motionZ = 0;
    }
    },
    onUpdate: function() {
    mc.thePlayer.motionX = 0;
    mc.thePlayer.motionY = 0;
    mc.thePlayer.motionZ = 0;

        if (!boostTicks && mc.thePlayer.hurtTime > 0) {
            boostTicks = boostMode.get() != "None" ? boostTicksValue.get() : 0;
        }
    
        var motion;
        if (boostTicks > 0) {
            switch (boostMode.get()) {
                case "Static":
                    motion = boostMotion.get();
                    break;
                case "Gradual":
                    motion = boostTicks / boostTicksValue.get() * boostMotion.get();
                    break;
            }
            boostTicks--;
        } else {
            motion = 0.25;
        }
    
        MovementUtils.strafe(motion);
    },
    onPacket: function(event) {
        var packet = event.getPacket();
        if (packet instanceof C03PacketPlayer) {
            packet.onGround = true;
        }
    },
    onJump: function() {
    mc.thePlayer.motionX = 0;
        mc.thePlayer.motionY = 0;
    mc.thePlayer.motionZ = 0;
    	}
    

    }

    BASE SCRIPT:
    ///api_version=2
    (script = registerScript({
    name: "VerusDmgFly",
    authors: ["Arcane"],
    version: "2.2"
    })).import("Core.lib");

    var boostTicks = 0;

    module = {
    category: "Movement",
    values: [
    boostMode = value.createList("BoostMode", ["None", "Static", "Gradual"], "Gradual"),
    boostTicksValue = value.createInteger("BoostTicks", 20, 1, 30),
    boostMotion = value.createFloat("BoostMotion", 9, 1, 9.87)
    ],
    onEnable: function() {
    boostTicks = 0;
    if (boostMode.get() != "None" && mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 3.0001, 0).expand(0, 0, 0)).isEmpty()) {
    mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 3.0001, mc.thePlayer.posZ, false));
    mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false));
    mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
    }
    mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.42, mc.thePlayer.posZ);
    },
    onDisable: function() {
    if (boostTicks > 0) {
    mc.thePlayer.motionX = 0;
    mc.thePlayer.motionZ = 0;
    }
    },
    onUpdate: function() {
    mc.thePlayer.motionX = 0;
    mc.thePlayer.motionY = 0;
    mc.thePlayer.motionZ = 0;

        if (!boostTicks && mc.thePlayer.hurtTime > 0) {
            boostTicks = boostMode.get() != "None" ? boostTicksValue.get() : 0;
        }
    
        var motion;
        if (boostTicks > 0) {
            switch (boostMode.get()) {
                case "Static":
                    motion = boostMotion.get();
                    break;
                case "Gradual":
                    motion = boostTicks / boostTicksValue.get() * boostMotion.get();
                    break;
            }
            boostTicks--;
        } else {
            motion = 0.25;
        }
    
        MovementUtils.strafe(motion);
    },
    onPacket: function(event) {
        var packet = event.getPacket();
        if (packet instanceof C03PacketPlayer) {
            packet.onGround = true;
        }
    },
    onJump: function(event) {
        event.cancelEvent();
    }
    

    }

    1 Reply Last reply
    0
    • skiddermaster412S Offline
      skiddermaster412S Offline
      skiddermaster412
      wrote on last edited by
      #2

      5480103f-c84e-4eab-a08c-8da53d008c43-imagen.png
      can't paste

      S 1 Reply Last reply
      0
      • skiddermaster412S skiddermaster412

        5480103f-c84e-4eab-a08c-8da53d008c43-imagen.png
        can't paste

        S Offline
        S Offline
        SomeHax
        wrote on last edited by
        #3

        @skiddermaster412
        ///api_version=2
        (script = registerScript({
        name: "VerusVanillaFly",
        authors: ["SomeHax"],
        version: "1.0"
        })).import("Core.lib");

        var boostTicks = 0;

        module = {
        category: "Fun",
        values: [
        boostMode = value.createList("BoostMode", ["None", "Static", "Gradual"], "Gradual"),
        boostTicksValue = value.createInteger("BoostTicks", 20, 1, 10000),
        boostMotion = value.createFloat("BoostMotion", 9, 1, 9.87)
        ],
        onEnable: function() {
        boostTicks = 0;
        if (boostMode.get() != "None" && mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 3.0001, 0).expand(0, 0, 0)).isEmpty()) {
        mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 3.0001, mc.thePlayer.posZ, false));
        mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false));
        mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
        }
        mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.42, mc.thePlayer.posZ);
        },
        onDisable: function() {
        if (boostTicks > 0) {
        mc.thePlayer.motionX = 0;
        mc.thePlayer.motionY = 0;
        mc.thePlayer.motionZ = 0;
        }
        },
        onUpdate: function() {
        mc.thePlayer.motionX = 0;
        mc.thePlayer.motionY = 0;
        mc.thePlayer.motionZ = 0;

            if (!boostTicks && mc.thePlayer.hurtTime > 0) {
                boostTicks = boostMode.get() != "None" ? boostTicksValue.get() : 0;
            }
        
            var motion;
            if (boostTicks > 0) {
                switch (boostMode.get()) {
                    case "Static":
                        motion = boostMotion.get();
                        break;
                    case "Gradual":
                        motion = boostTicks / boostTicksValue.get() * boostMotion.get();
                        break;
                }
                boostTicks--;
            } else {
                motion = 0.25;
            }
        
            MovementUtils.strafe(motion);
        },
        onPacket: function(event) {
            var packet = event.getPacket();
            if (packet instanceof C03PacketPlayer) {
                packet.onGround = true;
            }
        },
        onJump: function() {
            mc.thePlayer.motionX = 0;
            mc.thePlayer.motionY = 1;
            mc.thePlayer.motionZ = 0;
        	}
        

        }

        skiddermaster412S 1 Reply Last reply
        0
        • S SomeHax

          @skiddermaster412
          ///api_version=2
          (script = registerScript({
          name: "VerusVanillaFly",
          authors: ["SomeHax"],
          version: "1.0"
          })).import("Core.lib");

          var boostTicks = 0;

          module = {
          category: "Fun",
          values: [
          boostMode = value.createList("BoostMode", ["None", "Static", "Gradual"], "Gradual"),
          boostTicksValue = value.createInteger("BoostTicks", 20, 1, 10000),
          boostMotion = value.createFloat("BoostMotion", 9, 1, 9.87)
          ],
          onEnable: function() {
          boostTicks = 0;
          if (boostMode.get() != "None" && mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 3.0001, 0).expand(0, 0, 0)).isEmpty()) {
          mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 3.0001, mc.thePlayer.posZ, false));
          mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false));
          mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
          }
          mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.42, mc.thePlayer.posZ);
          },
          onDisable: function() {
          if (boostTicks > 0) {
          mc.thePlayer.motionX = 0;
          mc.thePlayer.motionY = 0;
          mc.thePlayer.motionZ = 0;
          }
          },
          onUpdate: function() {
          mc.thePlayer.motionX = 0;
          mc.thePlayer.motionY = 0;
          mc.thePlayer.motionZ = 0;

              if (!boostTicks && mc.thePlayer.hurtTime > 0) {
                  boostTicks = boostMode.get() != "None" ? boostTicksValue.get() : 0;
              }
          
              var motion;
              if (boostTicks > 0) {
                  switch (boostMode.get()) {
                      case "Static":
                          motion = boostMotion.get();
                          break;
                      case "Gradual":
                          motion = boostTicks / boostTicksValue.get() * boostMotion.get();
                          break;
                  }
                  boostTicks--;
              } else {
                  motion = 0.25;
              }
          
              MovementUtils.strafe(motion);
          },
          onPacket: function(event) {
              var packet = event.getPacket();
              if (packet instanceof C03PacketPlayer) {
                  packet.onGround = true;
              }
          },
          onJump: function() {
              mc.thePlayer.motionX = 0;
              mc.thePlayer.motionY = 1;
              mc.thePlayer.motionZ = 0;
          	}
          

          }

          skiddermaster412S Offline
          skiddermaster412S Offline
          skiddermaster412
          wrote on last edited by
          #4

          @somehax
          ///api_version=2
          (script = registerScript({
          name: "VerusVanillaFly",
          authors: ["SomeHax"],
          version: "1.0"
          })).import("Core.lib");

          var boostTicks = 0;

          module = {
          category: "Fun",
          values: [
          boostMode = value.createList("BoostMode", ["None", "Static", "Gradual"], "Gradual"),
          boostTicksValue = value.createInteger("BoostTicks", 20, 1, 10000),
          boostMotion = value.createFloat("BoostMotion", 9, 1, 9.87)
          ],
          onEnable: function() {
          boostTicks = 0;
          if (boostMode.get() != "None" && mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 3.0001, 0).expand(0, 0, 0)).isEmpty()) {
          mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 3.0001, mc.thePlayer.posZ, false));
          mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false));
          mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
          }
          mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.42, mc.thePlayer.posZ);
          },
          onDisable: function() {
          if (boostTicks > 0) {
          mc.thePlayer.motionX = 0;
          mc.thePlayer.motionY = 0;
          mc.thePlayer.motionZ = 0;
          }
          },
          onUpdate: function() {
          mc.thePlayer.motionX = 0;
          mc.thePlayer.motionY = 0;
          mc.thePlayer.motionZ = 0;

          if (!boostTicks && mc.thePlayer.hurtTime > 0) {
              boostTicks = boostMode.get() != "None" ? boostTicksValue.get() : 0;
          }
          
          var motion;
          if (boostTicks > 0) {
              switch (boostMode.get()) {
                  case "Static":
                      motion = boostMotion.get();
                      break;
                  case "Gradual":
                      motion = boostTicks / boostTicksValue.get() * boostMotion.get();
                      break;
              }
              boostTicks--;
          } else {
              motion = 0.25;
          }
          
          MovementUtils.strafe(motion);
          

          },
          onPacket: function(event) {
          var packet = event.getPacket();
          if (packet instanceof C03PacketPlayer) {
          packet.onGround = true;
          }
          },
          onJump: function() {
          mc.thePlayer.motionX = 0;
          mc.thePlayer.motionY = 1;
          mc.thePlayer.motionZ = 0;
          }

          }

          S 1 Reply Last reply
          0
          • skiddermaster412S skiddermaster412

            @somehax
            ///api_version=2
            (script = registerScript({
            name: "VerusVanillaFly",
            authors: ["SomeHax"],
            version: "1.0"
            })).import("Core.lib");

            var boostTicks = 0;

            module = {
            category: "Fun",
            values: [
            boostMode = value.createList("BoostMode", ["None", "Static", "Gradual"], "Gradual"),
            boostTicksValue = value.createInteger("BoostTicks", 20, 1, 10000),
            boostMotion = value.createFloat("BoostMotion", 9, 1, 9.87)
            ],
            onEnable: function() {
            boostTicks = 0;
            if (boostMode.get() != "None" && mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 3.0001, 0).expand(0, 0, 0)).isEmpty()) {
            mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 3.0001, mc.thePlayer.posZ, false));
            mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false));
            mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
            }
            mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.42, mc.thePlayer.posZ);
            },
            onDisable: function() {
            if (boostTicks > 0) {
            mc.thePlayer.motionX = 0;
            mc.thePlayer.motionY = 0;
            mc.thePlayer.motionZ = 0;
            }
            },
            onUpdate: function() {
            mc.thePlayer.motionX = 0;
            mc.thePlayer.motionY = 0;
            mc.thePlayer.motionZ = 0;

            if (!boostTicks && mc.thePlayer.hurtTime > 0) {
                boostTicks = boostMode.get() != "None" ? boostTicksValue.get() : 0;
            }
            
            var motion;
            if (boostTicks > 0) {
                switch (boostMode.get()) {
                    case "Static":
                        motion = boostMotion.get();
                        break;
                    case "Gradual":
                        motion = boostTicks / boostTicksValue.get() * boostMotion.get();
                        break;
                }
                boostTicks--;
            } else {
                motion = 0.25;
            }
            
            MovementUtils.strafe(motion);
            

            },
            onPacket: function(event) {
            var packet = event.getPacket();
            if (packet instanceof C03PacketPlayer) {
            packet.onGround = true;
            }
            },
            onJump: function() {
            mc.thePlayer.motionX = 0;
            mc.thePlayer.motionY = 1;
            mc.thePlayer.motionZ = 0;
            }

            }

            S Offline
            S Offline
            SomeHax
            wrote on last edited by
            #5

            @skiddermaster412
            that didn't change anything except the fact that I go slower than a slowness 255 effect

            DreamWasFuckedD 1 Reply Last reply
            0
            • S SomeHax

              @skiddermaster412
              that didn't change anything except the fact that I go slower than a slowness 255 effect

              DreamWasFuckedD Offline
              DreamWasFuckedD Offline
              DreamWasFucked
              wrote on last edited by
              #6

              //api_version=2
              (script = registerScript({
              name: "VerusVanillaFly",
              authors: ["SomeHax"],
              version: "1.0"
              })).import("Core.lib");

              module = {
              category: "Fun",
              values: [
              boostMode = value.createList("BoostMode", ["None", "Static", "Gradual"], "Gradual"),
              boostTicksValue = value.createInteger("BoostTicks", 20, 1, 10000),
              boostMotion = value.createFloat("BoostMotion", 9, 1, 9.87)
              ],
              onEnable: function() {
              boostTicks = 0;
              if (boostMode.get() != "None" && mc.theWorld.getCollidingBoundingBoxes(mc.thePlayer, mc.thePlayer.getEntityBoundingBox().offset(0, 3.0001, 0).expand(0, 0, 0)).isEmpty()) {
              mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 3.0001, mc.thePlayer.posZ, false));
              mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, false));
              mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY, mc.thePlayer.posZ, true));
              }
              mc.thePlayer.setPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.42, mc.thePlayer.posZ);
              },
              onDisable: function() {
              if (boostTicks > 0) {
              mc.thePlayer.motionX = 0;
              mc.thePlayer.motionY = 0;
              mc.thePlayer.motionZ = 0;
              }
              },
              onUpdate: function() {
              mc.thePlayer.motionX = 0;
              mc.thePlayer.motionY = 0;
              mc.thePlayer.motionZ = 0;

              if (!boostTicks && mc.thePlayer.hurtTime > 0) {
              boostTicks = boostMode.get() != "None" ? boostTicksValue.get() : 0;
              }

              var motion;
              if (boostTicks > 0) {
              switch (boostMode.get()) {
              case "Static":
              motion = boostMotion.get();
              break;
              case "Gradual":
              motion = boostTicks / boostTicksValue.get() * boostMotion.get();
              break;
              }
              boostTicks--;
              } else {
              motion = 0.25;
              }

              MovementUtils.strafe(motion);
              },
              onPacket: function(event) {
              var packet = event.getPacket();
              if (packet instanceof C03PacketPlayer) {
              packet.onGround = true;
              }
              },
              onJump: function() {
              mc.thePlayer.motionX = 0;
              mc.thePlayer.motionY = 1;
              mc.thePlayer.motionZ = 0;
              }

              }

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              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