turns out liquidbounce.net hates me and doesn't allow me to login
Vonr
Posts
-
[SCRIPT] BridgeHelper 1.0.0 -
[SCRIPT] BridgeHelper 1.0.0@mems absolutely, the script is kinda outdated though because I've made it too op to release lol.
-
[SCRIPT] BridgeHelper 1.0.0lmao what
-
[Idea] BlockTrapperPlace blocks at enemy players' predicted position so their movement is blocked.
What I've tried:
BlockStopper.js
What it does:
Everything but work properly.
What it uses:
FallingPlayer to predict movement,
LB Scaffold code to place blocks,
My code to break both. -
[SCRIPT] BridgeHelper 1.0.0dont exactly have a suitable image to go with it
-
[SCRIPT] .Rotation 1.0.0.Rotation
aliases: .rotate.Rotation allows you to rotate to any yaw and pitch with much difficulty.
By using reference magic and avoiding the use of return in external functions, I have overengineered a simple script that would normally be accomplished in 10 lines.Syntax
.rotation [get/set <yaw> <pitch>/setYaw <yaw>/setPitch <pitch>]
Thanks for coming to my TED Talk. Here's the download bye.
rotation.js/// api_version=2 var script = registerScript({ name: "Rotation", version: "1.0.0", authors: ["Qther"] }); script.registerCommand({ name: "Rotation", aliases: ["rotation", "rotate"] }, function (command) { command.on("execute", function (args) { var yaw = { angle: mc.thePlayer.rotationYaw } var pitch = { angle: mc.thePlayer.rotationPitch } wrapAngleTo180_float(yaw); wrapAngleTo180_float(pitch); var wasSet = false; if (args.length > 1) { switch (args[1].toLowerCase()) { case undefined: case null: Chat.print("Wrong arguments. (.rotation [get/set/setYaw/setPitch])"); break; case "get": Chat.print("[" + yaw.angle.toFixed(4) + " / " + pitch.angle.toFixed(4) + "] (truncated)"); break; case "set": if (args.length >= 4) { yaw.angle = parseFloat(args[2]); pitch.angle = parseFloat(args[3]); if (yaw.angle.isNaN() || pitch.angle.isNaN()) { Chat.print("Wrong arguments. (.rotation set <yaw> <pitch>)"); return; } wasSet = true; } else { Chat.print("Not enough arguments. (.rotation set <yaw> <pitch>)"); return; } break; case "setyaw": if (args.length >= 3) { yaw.angle = parseFloat(args[2]); if (yaw.angle.isNaN()) { Chat.print("Wrong arguments. (.rotation setYaw <yaw>)"); return; } wasSet = true; } else { Chat.print("Not enough arguments. (.rotation setYaw <yaw>)"); return; } break; case "setpitch": if (args.length >= 3) { pitch.angle = parseFloat(args[2]); if (pitch.angle.isNaN()) { Chat.print("Wrong arguments. (.rotation setPitch <pitch>)"); return; } wasSet = true; } else { Chat.print("Not enough arguments. (.rotation setPitch <pitch>)"); return; } break; } if (wasSet) { unwrapAngleFrom180_float(yaw); unwrapAngleFrom180_float(pitch); mc.thePlayer.rotationYaw = yaw.angle; mc.thePlayer.rotationPitch = pitch.angle; Chat.print("Set rotation to [" + yaw.angle.toFixed(4) + " / " + pitch.angle.toFixed(4) + "] (truncated)"); } } }); }); function wrapAngleTo180_float(angleRef) { angleRef.angle %= 360.0; if (angleRef.angle >= 180.0) angleRef.angle -= 360.0; if (angleRef.angle < -180.0) angleRef.angle += 360.0; } function unwrapAngleFrom180_float(angleRef) { if (angleRef.angle <= 180.0) angleRef.angle += 360.0; if (angleRef.angle > 180.0) angleRef.angle -= 360.0; angleRef.angle %= 360.0; } // public static float wrapAngleTo180_float(float value) { // value %= 360.0f; // if (value >= 180.0f) { // value -= 360.0f; // } // if (value < -180.0f) { // value += 360.0f; // } // return value; // }
-
[SCRIPT] BridgeHelper 1.0.0BridgeHelper
the useless script no one neededUsing too many unneeded imports and avoiding the usage of any utils and packets, I have managed to make BridgeHelper, aka BlockSpammer, TriggerbotScaffold, and RightClickAutoClickerButWorse.
Essentially, BridgeHelper will place blocks if and when possible. That's it.
BridgeHelper Settings:
- Mode <DEFAULT: Both> - Horizontal (TriggerbotScaffold, for flat bridging) - Vertical (TriggerbotTower, for towering with arthritis I guess) - Both (BlockSpammer, for inclined bridging) - Delay <DEFAULT: false> - Ticks <DEFAULT: 0> - Range <DEFAULT: 4.0 blocks> - EnsureAntiGravity <DEFAULT: true>
Download:
bridgehelper.js/// api_version=2 var script = registerScript({ name: "BridgeHelper", version: "1.0.0", authors: ["Qther"] }); "use strict"; var Items = Java.type("net.minecraft.init.Items"); var ItemBlock = Java.type("net.minecraft.item.ItemBlock"); var Blocks = Java.type("net.minecraft.init.Blocks"); var BlockFalling = Java.type("net.minecraft.block.BlockFalling"); var MovingObjectPosition = Java.type("net.minecraft.util.MovingObjectPosition"); var Material = Java.type("net.minecraft.block.material.Material"); var Vec3 = Java.type("net.minecraft.util.Vec3"); var EnumFacing = Java.type("net.minecraft.util.EnumFacing"); var delay = 0; var horizontalFaces = [EnumFacing.NORTH, EnumFacing.SOUTH, EnumFacing.EAST, EnumFacing.WEST]; script.registerModule({ name: "BridgeHelper", description: "Automatically places blocks", category: "World", settings: { Mode: Setting.list({ name: "Mode", default: "Both", values: ["Horizontal", "Vertical", "Both"] }), DelayB: Setting.boolean({ name: "Delay", default: false }), Delay: Setting.integer({ name: "Ticks", min: 0, max: 20, default: 0 }), Range: Setting.float({ name: "Range", min: 0.0, max: 8.0, default: 4.0 }), EnsureNewtonIsNotObeyedByHeldItem: Setting.boolean({ name: "EnsureAntiGravity", default: true }) } }, function (module) { module.on("enable", function () { delay = 0; }); module.on("disable", function () { delay = 0; }); module.on("update", function () { if (module.settings.DelayB.get() && delay != 0) { // DelayB is true and delay is not 0 --delay; } else { var heldItemStack = mc.thePlayer.inventory.getCurrentItem(); var heldItem = heldItemStack.getItem(); var block; if (heldItem instanceof ItemBlock) { var mop = mc.objectMouseOver; if (mop.typeOfHit == MovingObjectPosition.MovingObjectType.BLOCK) { block = heldItem.block; var blockPos = mop.getBlockPos(); var hitSide = mop.sideHit; var blockHit = mc.theWorld.getBlockState(blockPos).getBlock(); var hitVec = mop.hitVec; var eyeVec = mc.thePlayer.getPositionEyes(1.0); var isHorizontalFace = horizontalFaces.indexOf(hitSide) != -1; if (((module.settings.Mode.get() === "Horizontal" && isHorizontalFace) || // Mode is Horizontal and hitSide is horizontal face, or (module.settings.Mode.get() === "Vertical" && !isHorizontalFace) || // Mode is Vertical and hitSide is not horizontal face, or (module.settings.Mode.get() === "Both")) && // Mode is Both. blockHit.getMaterial() != Material.air && // blockHit's material is not air. !(module.settings.EnsureNewtonIsNotObeyedByHeldItem.get() && // If EnsureAntiGravity is true, block instanceof BlockFalling) && // block is not an instance of BlockFalling. eyeVec.distanceTo(hitVec) <= module.settings.Range.get()) { // Distance from hitVec to eyeVec is less than Range. if (mc.playerController.onPlayerRightClick(mc.thePlayer, mc.theWorld, heldItemStack, blockPos, hitSide, hitVec)) { mc.thePlayer.swingItem(); //mc.rightClickDelayTimer = module.settings.Delay.get(); delay = module.settings.Delay.get(); // Reset delay } } delay = module.settings.Delay.get(); // Reset delay } } } }); });
-
[SCRIPT] VoidThrower 1.0.1In many bedwars servers when you fall die to an enemy they get the resources you have in your inventory. one of the most common ways of dying would of course be the void and VoidThrower basically just yeets your resources into the void so they don't get it. Hypixel was smart enough to prevent this though.
-
[SCRIPT] VoidThrower 1.0.1Throws your items into the void when your y position is below the threshold.
Mainly to spite the enemies knocking you into the void on bedwars.Update 1.0.1: Fix formatting
Download:
voidthrower.js/// api_version=2 var script = registerScript({ name: "VoidThrower", version: "1.0.1", authors: ["Qther"] }); "use strict"; var Items = Java.type("net.minecraft.init.Items"); var GuiInventory = Java.type("net.minecraft.client.gui.inventory.GuiInventory"); var C0DPacketCloseWindow = Java.type("net.minecraft.network.play.client.C0DPacketCloseWindow"); var C05PacketPlayerLook = Java.type("net.minecraft.network.play.client.C03PacketPlayer.C05PacketPlayerLook"); var C16PacketClientStatus = Java.type("net.minecraft.network.play.client.C16PacketClientStatus"); var delay = 0; script.registerModule({ name: "VoidThrower", description: "Throws items from inventory when y level below threshold.", category: "Misc", settings: { Threshold: Setting.float({ name: "Threshold", min: -20.0, max: 10.0, default: -5.0 }), Rotate: Setting.boolean({ name: "Rotate", default: true }), DelayB: Setting.boolean({ name: "Delay", default: true }), Delay: Setting.integer({ name: "Ticks", min: 0, max: 20, default: 1 }), Bedwars: Setting.boolean({ name: "Bedwars", default: true }), SimulateInventory: Setting.boolean({ name: "SimulateInventory", default: true }) } }, function (module) { module.on("enable", function () { delay = 0; }); module.on("disable", function () { delay = 0; }); module.on("update", function () { if (module.settings.DelayB.get() && delay < module.settings.Delay.get()) { ++delay; } else if (mc.thePlayer.posY < module.settings.Threshold.get()) { delay = 0; var itemToThrow = -1; if (module.settings.Bedwars.get()) { for (var i = 9; i <= 45; i++) { var stack = mc.thePlayer.inventoryContainer.getSlot(i).getStack(); if (stack != null && [Items.iron_ingot, Items.gold_ingot, Items.diamond, Items.emerald].indexOf(stack.getItem()) != -1) { itemToThrow = i; break; } } } else { for (var j = 9; j <= 45; j++) { if (mc.thePlayer.inventoryContainer.getSlot(j).getStack() != null) { itemToThrow = j; break; } } } if (itemToThrow != -1) { var openInventory = !(mc.currentScreen instanceof GuiInventory) && module.settings.SimulateInventory.get(); if (openInventory) mc.getNetHandler().addToSendQueue(new C16PacketClientStatus(C16PacketClientStatus.EnumState.OPEN_INVENTORY_ACHIEVEMENT)); var yaw = mc.thePlayer.rotationYaw; var pitch = mc.thePlayer.rotationPitch; if (module.settings.Rotate.get()) mc.getNetHandler().addToSendQueue(new C05PacketPlayerLook(yaw, 90, false)); mc.playerController.windowClick(mc.thePlayer.openContainer.windowId, itemToThrow, 4, 4, mc.thePlayer); if (module.settings.Rotate.get()) mc.getNetHandler().addToSendQueue(new C05PacketPlayerLook(yaw, pitch, false)); if (openInventory) mc.getNetHandler().addToSendQueue(new C0DPacketCloseWindow()); } } }); });