// gimhook: {"name":"Enhanced Movement","description":"A mod to easily move in bigger jumps around the map, and through walls.","version":"1.0.0","author":"Coder_Gage","license":"MIT"}(() => {// src/index.tsgimhook.addHook("join", () => {console.log("Game joined!");console.log("Thanks for Using My Mod!")console.log("-Coder_Gage") x =0 y =0 xy =0 moveValue =100window.addEventListener("keydown",function(event) {if(event.code =='KeyA'&&event.shiftKey) {if(x >100) {gimhook.graphics.player.setPosition(x-moveValue, y) } else {console.log("To Far Left!") } }if(event.code =='KeyD'&&event.shiftKey) {if(x <31900) {gimhook.graphics.player.setPosition(x+moveValue, y) } else {console.log("To Far Right!") } }if(event.code =='KeyW'&&event.shiftKey) {if(y <31900) {gimhook.graphics.player.setPosition(x, y-moveValue) } else {console.log("To Far Up!") } }if(event.code =='KeyS'&&event.shiftKey) {if(y >100) {gimhook.graphics.player.setPosition(x, y+moveValue) } else {console.log("To Far Down!") } }if(event.code =='KeyR'&&event.shiftKey) {gimhook.graphics.player.setPosition(16000,16000) } }); setInterval(functiongetpos() { xy =gimhook.graphics.player.getPosition(); x = xy['x']; y = xy['y']; },2) });})();
How to Use It
After installing the mod, hold the shift key while using WASD to move around in bigger jumps. View the customizability section to learn how you can customize this mod to your liking.
Customizability
This mod has multiple customizable options.
This is a variable defined at the beginning of the code. Customize it to change how far you move each time you jump around. The default value is 100, but you can change it to 250 if you want to move around in bigger jumps.
Holding shift while using WASD activates the jumps. I recommend keeping the shift required but feel free to change WASD to other keys. You can use this website to figure out each key value. For example, if you prefer to use the arrow keys to move around, you can change KeyA to ArrowLeft, and repeat for each key.
Changelog
Version
Changes
v1.0.0
Created the actual mod with WASD "jumped" movement.