npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

modpack-pack

v1.1.5

Published

Unofficial tool to create server and client modpack folders for CurseForge Minecraft Modpacks

Downloads

28

Readme

modpack-pack

Unofficial tool to create server and client modpack folders for CurseForge Minecraft Modpacks.

Install by running npm i -g modpack-pack.

Step 1: Make your modpack

Create a custom Minecraft Forge modpack using the Curse launcher. Test your modpack thoroughly.

modpack-pack uses the minecraftinstance.json file generated when you play modded Minecraft to create its listings and files.

Step 2: Initialise modpack-pack

Open your modpack's directory in a terminal window and run mod-pack init. This will create a mod-pack.conf.json file based on the Minecraft instance.

Step 3: Configure modpack-pack

Open the mod-pack.conf.json file and check that all the information you need is included and correct.

{
  "name": "Modpack Name", // Name of the modpack
  "mp_version": "1.0.0", // Modpack version
  "server_version": "1.0.0", // Modpack serverpack version
  "minecraft_version": "1.0.0", // Vanilla Minecraft version
  "forge_version": "1.0.0", // Forge version
  "includes": [
    "/config"
  ],
  "modlist": [],
  "resourcepacks": []
}

includes

This is the list of directories that you would like copying to the compressed modpack.

{//...
"includes": [
  "/config",
  "/kubejs"
]
//...
}

modlist and resourcepacks

This is the list of mods you have installed in your modpack. modlist.mod.installType is the only value you should manually change, as it tells mod-pack which versions of the modpack to include the mod in. It should be set to "both" by default, but can be changed to "server" or "client".

{//...
  "modlist": [
    {
      {
        "name": "Just Enough Items (JEI)", // Name of the mod
        "author": "mezz", // Registered author of the mod
        "url": "https://www.curseforge.com/minecraft/mc-mods/jei", // CurseForge URL of the mod
        "projectId": 238222, // CurseForge project ID
        "filename": "jei-1.18.2-forge-10.2.1.1002.jar", // The installed file
        "fileId": 4352925, // The ID of the file
        "installType": "both" // Whether the mod should be installed on the "client", the "server", or "both"
      }
    }
  ]
//...
}

resourcepacks is the same but for Minecraft resource packs. The format is the same as in modlist, but without an installtype: All resource packs are installed on the client and the server.

{//...
  "resourcepacks": [
    {
      "name": "Health Indications", // Resource pack name
      "author": "DanMizu", // Registered author
      "url": "https://www.curseforge.com/minecraft/texture-packs/health-indications", // Curseforge URL
      "projectId": 585361, // CurseForge project id
      "filename": "Health Indications v2.2 1.18.zip", // Installed filename
      "fileId": 3735943 // CurseForge file ID
    }
  ]
//...
}

Step 4: Update modpack-pack

Let's say you have played your modpack a little more before deciding to build it and publish it on CurseForge. You've removed some mods, updated a few, and added a couple more. Run mod-pack update to update the config file on your modpack.

Step 5: Build modpack-pack

Run mod-pack build to compress your modpack. The result will be 2 directories and 2 zip files, one of each for the client version that will be installed by the CurseForge Client and for the serverpack version that can also be uploaded to CurseForge.