Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Generate the datapack in a .jar file #104

Open
1 task done
andre-carbajal opened this issue Oct 30, 2024 · 3 comments
Open
1 task done

[FEATURE] Generate the datapack in a .jar file #104

andre-carbajal opened this issue Oct 30, 2024 · 3 comments
Assignees
Labels
dsl Work on the main DSL module feature New feature or request

Comments

@andre-carbajal
Copy link

What module does this feature apply to?

Generation

Feature description

Add the option to generate the datapack in a .jar file. The file would contain the same data as the zip file, but some files would have to be added so that the Mod Loaders can detect them

  • fabric.mod.json
  • quilt.mod.json
  • mods.toml

My issue is not duplicated

  • This is not a duplicate
@andre-carbajal andre-carbajal added the feature New feature or request label Oct 30, 2024
@Ayfri
Copy link
Owner

Ayfri commented Oct 30, 2024

So that you would be able to use them like mods, like what they do on Modrinth. I'll see how I can do it, if you have big knowledge on this feature, could you list each file to include for each modloader and what variables they need?

@Ayfri Ayfri added the dsl Work on the main DSL module label Oct 30, 2024
@andre-carbajal
Copy link
Author

  • Fabric (fabric.mod.json)

    • schemaVersion : 1
    • id
    • version
    • name
    • description
    • license
    • icon
    • authors
    • environment : "*"
    • depends : { "fabric-resource-loader-v0": "*" }
  • Quilt (quilt.mod.json)

    • schemaVersion : 1
    • quilt_loader
      • group
      • id
      • version
      • metadata
        • name
        • description
        • icon
      • intermediate_mappings : "net.fabricmc:intermediary"
      • depends : [{"id": "quilt_resource_loader","versions": "*","unless": "fabric-resource-loader-v0"}]
  • Forge (META-INF/mods.toml)

    • modLoader = 'lowcodefml'
    • loaderVersion = '[0,)'
    • license
    • showAsResourcePack = false
    • mods
      • modId
      • version
      • displayName
      • description
      • logoFile
  • NeoForge (META-INF/neoforge.mods.toml)

    • modLoader = 'lowcodefml'
    • loaderVersion = '[0,)'
    • license
    • showAsResourcePack = false
    • mods
      • modId
      • version
      • displayName
      • description
      • logoFile

@Ayfri
Copy link
Owner

Ayfri commented Oct 30, 2024

Thank you very much! Most of the variables could be reused from the current datapack you're building, I'll see if I can also add a new global variable CURRENT_MINECRAFT_VERSION that you can access anywhere, for other ones I'll create a DSL for setting them up.
Example:

dp.generateJar {
    fabric {
        authors = listOf("Me", "You")
        license = File("./my_licence")
    }
    forge {
        ...
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dsl Work on the main DSL module feature New feature or request
Projects
Status: 🏗 In progress
Development

No branches or pull requests

2 participants