1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-26 10:05:10 +00:00

add more mods

This commit is contained in:
zumbiepig
2024-09-04 08:28:29 -07:00
parent d401d604e7
commit 2c3dc69c75
9 changed files with 611 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
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;
}
}
});