Hello there! The goal of this document is to teach one how to setup JS Macros Mod.
This setup is targeted towards users:
- using MultiMC, but similar principles should apply to other Minecraft launchers.
- running Minecraft 1.18.2, but the same principles should apply to other Minecraft versions.
If you already have JS Macros installed, and looking for instructions on how to run a script you downloaded, go to the "Running a script" section.
-
Open MultiMC!
- If you haven't already, sign in into your minecraft account.
-
Install Fabric mod loader.
-
Install Fabric API.
- Go to the Fabric API mod page and download the most recent version for the game version you are playing on. For 1.18.2: https://www.curseforge.com/minecraft/mc-mods/fabric-api/files/3891301.
- Now select
Loader mods
and the lefthand side, belowVersion
, and clickAdd
on the righthand side. - Navigate to where you downloaded the Fabric API zip to, and select and open it.
-
Install JS Macros.
- Go to the JS Macros mod page and download the most recent version for the game version you are playing on. Make sure it is the fabric verison! file name should look like
jsmacros-1.XX.X-FABRIC-X.X.X.jar
. For 1.18.2: https://www.curseforge.com/minecraft/mc-mods/jsmacros/files/3904779. - Now add the mod. Click
Add
on the righthand side. - Navigate to where you downloaded the Js Macros zip to, and select and open it.
- Go to the JS Macros mod page and download the most recent version for the game version you are playing on. Make sure it is the fabric verison! file name should look like
The folder to put your scripts is typically Macros/
. The full path will depend on where your MultiMC/launcher is, but generally looks like:
C:/path/to/MultiMC/instances/INSTANCE-NAME/.minecraft/config/jsMacros/Macros/
Drag any scripts you may want to run into that folder. It is fine if you add folders.
In the image below I placed a script I want to run, helloWorld.js
in the Macros/
folder. Note the path.
So you wanna run a script someone else gave you?
First make sure trust the script you are running. If you are able to read JavaScript or whatever language it is written in, give it a read before running it! Always practice some form of OPSEC.
-
Start the game!
-
Open the JS Macros menu.
- Find JS Macros menu key in the key bindings. Default should be
K
. Press it.
- Find JS Macros menu key in the key bindings. Default should be
-
Add the script to a key.
-
Click the
+
next toRun
. -
Select the file to run by clicking the
./
. Navigate to where the script is, click it, and clickSelect
NOTE: IF YOU DON'T SEE THE SCRIPT YOU WANT YOU MAY NEED TO CONSULT THE ABOVE
Finding Where to Put a Script
SECTION -
Set the key binding by clicking on empty box to left of filename and pressing the key you want script to be binded to.
-
Enable the binding by clicking on red
Disabled
button.
In this case I am binding a script,
hellowWorld.js
to they
button: -
-
Run the Scripts!
- Press the button you binded the script to!
If you run into any problems or have other questions feel free to reach out to me
- Via discord: MotokoKusanagi#5346
- Via email: screwthisusernameprocess@gmail.com