Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
radmanplays committed Feb 18, 2024
1 parent 9081bdd commit 51df806
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export default defineConfig({
items: [
{ text: 'Compiling EaglerForge', link: '/guide/' },
{ text: 'How to Install Mods', link: '/guide/how-to-install-mods' },
{ text: 'Loading mods from eaglercraftxopts', link: '/guide/Loading-mods-from-eaglercraftxopts' },
{ text: 'Loading mods from the search bar', link: '/guide/Loading-mods-from-search-bar' },
],
},
{
Expand Down
18 changes: 18 additions & 0 deletions docs/guide/Loading-mods-from-eaglercraftxopts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Loading mods from eaglercraftxopts
you can load mods from eaglercraftxopts by simply adding `Mods: ["your mod.js"],` to eaglercraftxopts like this example :
```javascript
// %%%%%%%%% launch options %%%%%%%%%%%%

window.eaglercraftXOpts = {
container: "game_frame",
worldsDB: "worlds",
Mods: ["example.js", "an other mod.js"],
relays: [
{ addr: "wss://relay.deev.is/", comment: "lax1dude relay #1", primary: relayId == 0 },
{ addr: "wss://relay.lax1dude.net/", comment: "lax1dude relay #2", primary: relayId == 1 },
{ addr: "wss://relay.shhnowisnottheti.me/", comment: "ayunami relay #1", primary: relayId == 2 }
]
};

// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
```
11 changes: 11 additions & 0 deletions docs/guide/Loading-mods-from-search-bar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Loading mods from the search bar
you can load mods from the search bar by simply adding `?Mod=example.js` at the end of the url of offline download/website like this example :
```
myeaglercraftwebsite.com/index.html/?Mod=example.js
```

or

```
file:///C:/Users/ligma/Downloads/EaglerForge_1.8_Offline_International.html.html/?Mod=example.js
```

0 comments on commit 51df806

Please sign in to comment.