-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
61ef9cf
commit fd2d29a
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# How to install mods | ||
|
||
1. Open the compiled client | ||
2. click the "Mods" button in the main menu or the pause menu | ||
3. click "Add New" to install a mod from a url or click "Upload" to upload a Mod | ||
|
||
heres a example mod to test this out with: | ||
|
||
url : https://raw.githubusercontent.com/eaglerforge/eaglerforge.github.io/main/docs/example.js | ||
|
||
the code inside of the example mod : | ||
``` | ||
function runCode() { | ||
if (document.pointerLockElement != null){//if pointerlock is enabled (the player is in game) | ||
ModAPI.displayToChat({msg: "hello"}) | ||
ModAPI.displayToChat({msg: "welcome to eaglerforge!"}) | ||
} | ||
} | ||
var intervalId = setInterval(runCode, 50);//run the code in a loop | ||
``` |