Packet NCP 0.6-2.5 blocks step
-
I like it, it's quite good, it should work without any problems or random flags
var scriptName = "NCPStep"; var scriptVersion = 1.0; var scriptAuthor = "york"; var C04PacketPlayerPosition = Java.type('net.minecraft.network.play.client.C03PacketPlayer.C04PacketPlayerPosition') function NCPStep() { var StepHeight = value.createFloat("StepHeight", 2.5, 1, 2.5); this.addValues = function(values) { values.add(StepHeight); }; this.getTag = function() { return "" + (Math.round(StepHeight.get() * 100) / 100); }; this.getName = function() { return "NCPStep"; }; this.getDescription = function() { return "Step for NCP"; }; this.getCategory = function() { return "Movement"; }; this.onEnable = function() { groundtick = false; }; this.onUpdate = function() { if (groundtick && !mc.thePlayer.isOnLadder() && !mc.thePlayer.isInWeb && !mc.thePlayer.isInWater() && !mc.thePlayer.isInLava()) { mc.thePlayer.stepHeight = StepHeight.get(); } else if (groundtick && !mc.thePlayer.isInWeb) { mc.thePlayer.stepHeight = 1.0; } else { mc.thePlayer.stepHeight = 0.6; } groundtick = (mc.thePlayer.onGround && mc.thePlayer.isCollidedVertically); }; this.onDisable = function() { mc.thePlayer.stepHeight = 0.6; }; this.onStepConfirm = function(event) { rheight = mc.thePlayer.getEntityBoundingBox().minY - mc.thePlayer.posY; switch (true) { case (rheight > 2.019): mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.425, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.821, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.699, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.599, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.022, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.372, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.652, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.869, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 2.019, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.919, mc.thePlayer.posZ, false)); mc.thePlayer.motionX = mc.thePlayer.motionZ = 0; break; case (rheight > 1.869): mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.425, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.821, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.699, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.599, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.022, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.372, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.652, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.869, mc.thePlayer.posZ, false)); mc.thePlayer.motionX = mc.thePlayer.motionZ = 0; break; case (rheight > 1.5): mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.425, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.821, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.699, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.599, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.022, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.372, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.652, mc.thePlayer.posZ, false)); mc.thePlayer.motionX = mc.thePlayer.motionZ = 0; break; case (rheight > 1.015): mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.42, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.7532, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.01, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.093, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 1.015, mc.thePlayer.posZ, false)); mc.thePlayer.motionX = mc.thePlayer.motionZ = 0; break; case (rheight > 0.875): mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.41999998688698, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.7531999805212, mc.thePlayer.posZ, false)); break; case (rheight > 0.6): mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.39, mc.thePlayer.posZ, false)); mc.thePlayer.sendQueue.addToSendQueue(new C04PacketPlayerPosition(mc.thePlayer.posX, mc.thePlayer.posY + 0.6938, mc.thePlayer.posZ, false)); break; } }; }; var NCPStep = new NCPStep(); var NCPStepClient; function onEnable() { NCPStepClient = moduleManager.registerModule(NCPStep); }; function onDisable() { moduleManager.unregisterModule(NCPStepClient); };
-
@icewormy3 said in Packet NCP 0.6-2.5 blocks step:
so basically sigma paste
but without loopsI guess you can say that
But I mean he prob just ported it to a lb script because he likes itNah, it's different for some stuff, like 1 block, 1.5 blocks and 0.875 blocks are diff
-
so basically sigma paste
but without loopsI guess you can say that
But I mean he prob just ported it to a lb script because he likes itNah, it's different for some stuff, like 1 block, 1.5 blocks and 0.875 blocks are diff
if u say so
-
Would it be possible to increase the limit from 2.5 to 4.5 or 6.5?
-
-
@jackforlife101 said in Packet NCP 0.6-2.5 blocks step:
@yorik100 can u add a timer mode
Wtf is that, you mean motion? Not really, it is planned but not now
-
@idkmyname maybe
-
@leaked-pvp 4 months necropost nice