Giter Site home page Giter Site logo

nishant1500 / bee-mod-parser Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 85 KB

A Node.js Package To Get Metadata Of Fabric/Forge/Liteloader Mods. Used By Bee Launcher.

Home Page: https://npmjs.org/package/bee-mod-parser

JavaScript 100.00%
bee-launcher metadata minecraft minecraft-launcher launcher-module

bee-mod-parser's Issues

Suggestion: Checking which mod is compatible with what loader

Make a command like const types = BeeModParser.readModType(path) in which it outputs in console.log(types) a JSON (or array) like:

{
    "forge": {
        "count":"2",
        "contents":{
            "mods":["Optifine.jar","LabyMod.jar"],
            //corresponding position of mc version of mods as in modnames
            "mcversion":["1.16.5", "1.12"]
        }
    },
    "fabric": {
        "count":"2",
        "contents":{
            "mods":["Sodium.jar","Litematica.jar"],
            //corresponding position of mc version of mods as in modnames
            "mcversion":["1.16.2", "1.16.4"]
        }
    },
    "liteloader": {
        "count":"2",
        "contents":{
            "mods":["mod1.jar","mod2.jar"],
            //corresponding position of mc version of mods as in modnames
            "mcversion":["1.16.5", "1.12"]
        }
    }
}

It can be very useful like if we want to do:

console.log(`${types.forge.count} mods for forge:`);
for (i=0;i<types.forge.mods.length;i++) {
    console.log(`${types.forge.mods[i]} of MC version: ${types.forge.mods.mcversion[i]}`);
}

console.log(`${types.fabric.count} mods for fabric:`);
for (i=0;i<types.fabric.mods.length;i++) {
    console.log(`${types.fabric.mods[i]} of MC version: ${types.fabric.mods.mcversion[i]}`);
}

console.log(`${types.liteloader.count} mods for LiteLoader:`);
for (i=0;i<types.liteloader.mods.length;i++) {
    console.log(`${types.liteloader.mods[i]} of MC version: ${types.liteloader.mods.mcversion[i]}`);
}

``` and alot more stuff is possible by it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.