📖
Gimhook Wiki
  • 👋Introduction
  • Installation
    • 🍎Mac
    • 🪟Windows & Linux
  • Creating Mods
    • 📑Gimhook Documentation
    • 🪝Hooks
    • ⌨️API
    • 📦SDK Documentation
  • GimForge Mods
    • ⏩Enhanced Movement
    • 🖱️ClickTP
    • 🔍Better Zoom
Powered by GitBook
On this page
  • Source Code (V1.0.0)
  • How to Use It
  • Customizability
  • Changelog
  1. GimForge Mods

Enhanced Movement

This mod was created by @Coder_Gage.

PreviousSDK DocumentationNextClickTP

Last updated 1 year ago

Source Code (V1.0.0)

(Click Link to Download)
// 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.ts
    gimhook.addHook("join", () => {
      console.log("Game joined!");
      console.log("Thanks for Using My Mod!")
      console.log("-Coder_Gage")
  
      x = 0
      y = 0
      xy = 0

      moveValue = 100

      window.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(function getpos() {
        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 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 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.

⏩
EnhancedMovement.js
this
website
customizability