1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-26 10:05:10 +00:00
Files
MineXLauncher/resources/addons/jump-boost.js
2025-01-10 01:27:56 +00:00

1 line
343 B
JavaScript

let height = 0; let maxJumpHeight = 3; document.addEventListener('keydown', function(event) { if (event.code == 'Space' && ModAPI.mcinstance.$currentScreen === null) { if (height < maxJumpHeight) { ModAPI.mcinstance.$thePlayer.$motionY = 1; height += 1; } else if (ModAPI.mcinstance.$thePlayer.$isCollidedVertically === 1){ height = 0; } } });