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:
12
public/resources/mods/downloads/jump-boost.js
Normal file
12
public/resources/mods/downloads/jump-boost.js
Normal 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;
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user