MC Mods Manager for Pterodactyl
Sarthak4 min read

MC Mods Manager for Pterodactyl

Welcome

Thank you for purchasing MC Mods Manager for Pterodactyl! If you encounter any issues or have questions, feel free to reach out on our Support Server.

Installation

Using an SFTP client of your choice, upload all of the files from the UploadFiles directory into your Pterodactyl directory (usually located at /var/www/pterodactyl)

Frontend Routes

Open the file: resources/scripts/routers/routes.ts

Find this code:

import ServerActivityLogContainer from '@/components/server/ServerActivityLogContainer';

Add this code below it:

import MCModsRoutes from '@/routers/extensions/mcmods';

Find this code:

{
    path: '/files',
    permission: 'file.*',
    name: 'Files',
    component: FileManagerContainer,
},

Add this code below it:

...MCModsRoutes,

MC Mods Help-1

Admin Sidebar

Open the file: resources/views/layouts/admin.blade.php

Find this code:

<li class="{{ ! starts_with(Route::currentRouteName(), 'admin.nests') ?: 'active' }}">
    <a href="{{ route('admin.nests') }}">
        <i class="fa fa-th-large"></i> <span>Nests</span>
    </a>
</li>

Add this code below it:

@include('layouts.extensions.mcmods')

MC Mods Help-2

Client API Routes

Open the file: routes/api-client.php

Add this code at the end of the file:

Route::prefix('/extensions/mcmods')->group(base_path('routes/mcmods/api-client.php'));

MC Mods Help-3

Admin Routes

Open the file: routes/admin.php

Add this code at the end of the file:

include 'mcmods/admin.php';

MC Mods Help-4

Install Node.js

If you're using Debian-based or Ubuntu-based distributions, run the following commands:

curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
apt-get install -y nodejs
corepack enable

On other distributions, install Node.js using the distribution's package manager.

Build panel assets

Now, it's time to clean caches, download Node dependencies, and build the panel assets:

php artisan optimize:clear
yarn install
NODE_OPTIONS=--openssl-legacy-provider yarn build:production

Configure CurseForge

MC Mods Manager uses CurseForge API to provide access to a large library of Minecraft mods. To obtain your key follow the steps below:

Create a account at CurseForge Console

Generate an API key and paste it in the extension's settings.

Wings Modification

Wings modification is optional and only required if you want to use the Manage Mods feature (view installed mods, update mods, and remove mods).

These steps apply only to nodes running Pterodactyl Wings and must be completed on each node. If you are using Calagopus Wings, you can skip this section entirely — everything will work without any additional modifications.

Make sure you don't run the commands below inside your Pterodactyl directory (usually located at /var/www/pterodactyl)

Install GoLang

Pterodactyl Wings is written in Go, and Go is required in order to build a Wings binary. If you are using a Debian-based or Ubuntu-based distribution, install Go by running:

apt-get install -y golang

On other distributions, install Go using the distribution's package manager.

Apply patch

Start by cloning the Pterodactyl Wings repository:

git clone https://github.com/pterodactyl/wings.git pterodactyl-wings
cd pterodactyl-wings

Next, using an SFTP client of your choice, upload the WingsModification.patch file into the cloned pterodactyl-wings directory.

Once uploaded, apply the patch by running:

patch -Np1 -i WingsModification.patch

Build Wings Binary

After the patch has been applied, build the Wings binary by running:

make build

Replace Wings Binary

Once the build is complete, stop the currently running Wings service, replace the binary with the newly built one, and start Wings again:

systemctl stop wings
cp "build/wings_linux_$(uname -m | sed -e 's/x86_64/amd64/' -e 's/aarch64/arm64/')" /usr/local/bin/wings
systemctl start wings

Need help?

If you have any questions or need assistance with the installation, feel free to contact us through: