@czechhek nice work
T
Tim 0
@Tim 0
Posts
-
BlinkFall 5.1 -
[Script] Simple Packet VelocityPacket Velocity
by Tim/// api_version=2 var S12 = Java.type('net.minecraft.network.play.server.S12PacketEntityVelocity'); var script = registerScript({ name: "VelocityScript", version: "1.0", authors: ["Tim"] }); script.registerModule({ name: "PacketVelocity", category: "Combat", description: "Basic script that cancelles Velocity Packets.", tag: "", settings: { xVel: Setting.float({ name: "X-Percentage", default: 0, min: -100, max: 100 }), yVel: Setting.float({ name: "Y-Percantage", default: 0, min: -100, max: 100 }), zVel: Setting.float({ name: "Z-Percentage", default: 0, min: -100, max: 100 }), cancelled: Setting.boolean({ name: "Cancelled", default: false }), } }, function(module) { module.on("update", function() { if(module.settings.cancelled.get()) { module.tag = "Cancel"; }else{ module.tag = "Percentage"; } }); module.on("packet", function(eventData) { var packetLocal = eventData.getPacket(); if (packetLocal instanceof S12) { if(module.settings.cancelled.get()) { eventData.cancelEvent(); }else{ packetLocal.motionX = packetLocal.getMotionX() * (module.settings.xVel.get() / 100); packetLocal.motionY = packetLocal.getMotionY() * (module.settings.yVel.get() / 100); packetLocal.motionZ = packetLocal.getMotionZ() * (module.settings.zVel.get() / 100); } } }); });
This is an Simple Packet based Velocity for Liquidbounce based on forge 1.8.9.
What this Velocity includes:
-
Modifying the Players X, Y and Z Velocity
-
Values are managed in Percantages
-
100% Reverse Velocity
-
Cancelling the Velocity Packet in general
For the lazy people
velocity.jsThe cancel mode also bypasses AAC4
(tested on poke.sexy)Note: Have fun but do not pretend like its coded by yourself.
-