Skip to content

Commit

Permalink
v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
radmanplays committed Feb 17, 2024
1 parent bdb5acf commit ca27ffe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 3 additions & 7 deletions docs/example.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
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
ModAPI.addEventListener("update", () => {
ModAPI.displayToChat({msg: ModAPI.uwuify({string:"hello this is a example mod!"})})
});
10 changes: 3 additions & 7 deletions docs/guide/how-to-install-mods.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ url : https://raw.githubusercontent.com/eaglerforge/eaglerforge.github.io/main/d

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
ModAPI.addEventListener("update", () => {
ModAPI.displayToChat({msg: ModAPI.uwuify({string:"hello this is a example mod!"})})
});
```

0 comments on commit ca27ffe

Please sign in to comment.