[SCRIPTAPI] Will this work? (Core)
-
Here is the code so it can be fixed if its broken, if its not broken, tell me
///api_version=2 (script = registerScript({ name: "Redesky LongJump", version: "1.1", authors: ["Arcane, CH"] })).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; }, 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++; } }
-