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. ScriptAPI
  3. Help

Help

Scheduled Pinned Locked Moved ScriptAPI
9 Posts 5 Posters 410 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.
  • G Offline
    G Offline
    Gabriel
    wrote on last edited by
    #1

    Some scriptapi v1 scripts are not working on b72 / b73 help

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

      post your script here
      to get help

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Gabriel
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • G Offline
          G Offline
          Gabriel
          wrote on last edited by
          #4
          var scriptName = "TargetStrafe"
          var scriptAuthor = "Scorpion3013"
          var scriptVersion = 1.0
          
          var EntityPlayer = Java.type('net.minecraft.entity.player.EntityPlayer');
          var AntiBot = Java.type("net.ccbluex.liquidbounce.features.module.modules.misc.AntiBot")
          var LiquidBounce = Java.type("net.ccbluex.liquidbounce.LiquidBounce");
          var Teams = Java.type("net.ccbluex.liquidbounce.features.module.modules.misc.Teams");//Thank Nvaros
          
          
          
          function getClosestEntity() {  //Function by Scorpion3013
          	var filteredEntites = []
          	for (var i in mc.theWorld.loadedEntityList) {
          		var entity = mc.theWorld.loadedEntityList[i]
          		if (entity instanceof EntityPlayer && entity != mc.thePlayer) {
          			filteredEntites.push(entity)
          		}
          	}
          	filteredEntites.sort(function (a, b) {
          		var distanceA = mc.thePlayer.getDistanceToEntity(a)
          		var distanceB = mc.thePlayer.getDistanceToEntity(b)
          		return distanceB - distanceA;
          	})
          	return filteredEntites[filteredEntites.length - 1]
          }
          
          function TargetStrafe() {
          	var distance0 = value.createFloat("Distance", 2.5, 1.0, 4.00)
          	var motionXZ = value.createFloat("MotionXZ" , 0.28, 0.01, 0.60)
          	
              this.getName = function() {
                  return "GayStrafe"
              }
              this.getDescription = function() {
                  return "Fart Sex"
              }
              this.getCategory = function() {
                  return "Fun"
              }
              this.onEnable = function() {
              }
              this.onDisable = function() {
               
              }
          	this.addValues = function(values) {
          		values.add(distance0)
          		values.add(motionXZ)
          	}	
          	this.onUpdate = function() {
                  var player = getClosestEntity()
          		if(Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2)) != 0) {
          		var c1 = (mc.thePlayer.posX - player.posX)/(Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2)))
          		var s1 = (mc.thePlayer.posZ - player.posZ)/(Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2)))
          		if(Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2)) <= distance0.get() && !AntiBot.isBot(player) && !player.isDead && !LiquidBounce.moduleManager.getModule(Teams.class).isInYourTeam(player)) {
          			if(mc.gameSettings.keyBindLeft.pressed) {
          			    mc.thePlayer.motionX = -motionXZ.get()*s1 - 0.18*motionXZ.get()*c1
          			    mc.thePlayer.motionZ = motionXZ.get()*c1 - 0.18*motionXZ.get()*s1
          			}else {
                          mc.thePlayer.motionX = motionXZ.get()*s1 - 0.18*motionXZ.get()*c1
          			    mc.thePlayer.motionZ = -motionXZ.get()*c1 - 0.18*motionXZ.get()*s1
          			}
          		}
          		}
          	}
          }
          var Module = new Module()
          var ModuleClient
          
          function onLoad() {}
          
          function onEnable() {
              ModuleClient = moduleManager.registerModule(TargetStrafe)
          }
          
          function onDisable() {
              moduleManager.unregisterModule(ModuleClient)
          }
          
          ChocoPie_ismeC 1 Reply Last reply
          0
          • ChocoPie_ismeC Offline
            ChocoPie_ismeC Offline
            ChocoPie_isme Banned
            replied to Gabriel on last edited by
            #5

            @gabrielvicenteYT said in Help:

            var scriptName = "TargetStrafe"
            var scriptAuthor = "Scorpion3013"
            var scriptVersion = 1.0
            
            var EntityPlayer = Java.type('net.minecraft.entity.player.EntityPlayer');
            var AntiBot = Java.type("net.ccbluex.liquidbounce.features.module.modules.misc.AntiBot")
            var LiquidBounce = Java.type("net.ccbluex.liquidbounce.LiquidBounce");
            var Teams = Java.type("net.ccbluex.liquidbounce.features.module.modules.misc.Teams");//Thank Nvaros
            
            
            
            function getClosestEntity() {  //Function by Scorpion3013
            	var filteredEntites = []
            	for (var i in mc.theWorld.loadedEntityList) {
            		var entity = mc.theWorld.loadedEntityList[i]
            		if (entity instanceof EntityPlayer && entity != mc.thePlayer) {
            			filteredEntites.push(entity)
            		}
            	}
            	filteredEntites.sort(function (a, b) {
            		var distanceA = mc.thePlayer.getDistanceToEntity(a)
            		var distanceB = mc.thePlayer.getDistanceToEntity(b)
            		return distanceB - distanceA;
            	})
            	return filteredEntites[filteredEntites.length - 1]
            }
            
            function TargetStrafe() {
            	var distance0 = value.createFloat("Distance", 2.5, 1.0, 4.00)
            	var motionXZ = value.createFloat("MotionXZ" , 0.28, 0.01, 0.60)
            	
                this.getName = function() {
                    return "GayStrafe"
                }
                this.getDescription = function() {
                    return "Fart Sex"
                }
                this.getCategory = function() {
                    return "Fun"
                }
                this.onEnable = function() {
                }
                this.onDisable = function() {
                 
                }
            	this.addValues = function(values) {
            		values.add(distance0)
            		values.add(motionXZ)
            	}	
            	this.onUpdate = function() {
                    var player = getClosestEntity()
            		if(Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2)) != 0) {
            		var c1 = (mc.thePlayer.posX - player.posX)/(Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2)))
            		var s1 = (mc.thePlayer.posZ - player.posZ)/(Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2)))
            		if(Math.sqrt(Math.pow(mc.thePlayer.posX - player.posX,2) + Math.pow(mc.thePlayer.posZ - player.posZ,2)) <= distance0.get() && !AntiBot.isBot(player) && !player.isDead && !LiquidBounce.moduleManager.getModule(Teams.class).isInYourTeam(player)) {
            			if(mc.gameSettings.keyBindLeft.pressed) {
            			    mc.thePlayer.motionX = -motionXZ.get()*s1 - 0.18*motionXZ.get()*c1
            			    mc.thePlayer.motionZ = motionXZ.get()*c1 - 0.18*motionXZ.get()*s1
            			}else {
                            mc.thePlayer.motionX = motionXZ.get()*s1 - 0.18*motionXZ.get()*c1
            			    mc.thePlayer.motionZ = -motionXZ.get()*c1 - 0.18*motionXZ.get()*s1
            			}
            		}
            		}
            	}
            }
            var Module = new Module()
            var ModuleClient
            
            function onLoad() {}
            
            function onEnable() {
                ModuleClient = moduleManager.registerModule(TargetStrafe)
            }
            
            function onDisable() {
                moduleManager.unregisterModule(ModuleClient)
            }
            

            var Module = new Module()
            change it to var TargetStrafe = new TargetStrafe() or else it won't register the script

            1 Reply Last reply
            0
            • scorpion3013S Offline
              scorpion3013S Offline
              scorpion3013 Moderator
              wrote on last edited by
              #6

              why am i the script author????

              1 Reply Last reply
              0
              • G Offline
                G Offline
                Gabriel
                wrote on last edited by
                #7

                //Function by Scorpion3013

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Aftery
                  wrote on last edited by
                  #8
                  This post is deleted!
                  ChocoPie_ismeC 1 Reply Last reply
                  0
                  • ChocoPie_ismeC Offline
                    ChocoPie_ismeC Offline
                    ChocoPie_isme Banned
                    replied to Aftery on last edited by Temm
                    #9

                    @Aftery said in Help:

                    does it work on b71 then

                    no

                    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