Redesky LongJump
-
This is a Redesky LongJump originally made by Arcane using CzechHek's Core.
Here are the changes that i made and the code:
1.0: Arcane created the script.
1.1: Added timer option.
1.2: Made timer reset to 1 when it disables.
Code:///api_version=2 (script = registerScript({ name: "Redesky LongJump", version: "1.2", authors: ["Arcane, CH / Gabriel / Coccocoa's Helper"] })).import("Core.lib"); var ticks = 0; module = { name: "RedeskyLongJump", category: "Movement", values: [ ticksValue = value.createInteger("Ticks", 21, 1, 25), timerValue = value.createInteger("Timer", 1.5, 0.1, 3.5), xzMultiplier = value.createFloat("XZ-Multiplier", 0.9, 0.1, 1), yMultiplier = value.createFloat("Y-Multiplier", 0.77, 0.1, 1), glide = value.createBoolean("Glide", true) ], onEnable: function() { ticks = 0; }, onDisable: function() { mc.timer.timerSpeed = 1; }, onUpdate: function() { if (ticks < ticksValue.get()) { mc.timer.timerSpeed = timerValue.get(); mc.thePlayer.motionY *= yMultiplier.get(); mc.thePlayer.motionX *= xzMultiplier.get(); mc.thePlayer.motionZ *= xzMultiplier.get(); mc.thePlayer.jump(); } if (glide.get()) { mc.thePlayer.motionY += 0.03; } ticks++; } }