Coder Social home page Coder Social logo

cephalonrho / silent-gear Goto Github PK

View Code? Open in Web Editor NEW

This project forked from silentchaos512/silent-gear

0.0 0.0 0.0 6.1 MB

Modular tool/armor mod (formerly part of Silent's Gems)

Home Page: https://www.curseforge.com/minecraft/mc-mods/silent-gear

License: MIT License

Java 99.58% Python 0.42%

silent-gear's Introduction

Silent-Gear

Modular tool/armor mod for Minecraft. Crafting is handled with blueprints, which eliminate all recipe conflicts. Materials and parts can be added with JSON files via data packs. Gear crafting recipes (number of required materials, required parts, etc.) can also be changed with data packs.

This is based on and completely replaced the tool/armor system from Silent's Gems, but has various changes and improvements.

Add-on mods can add new part types, gear types, and trait types, as well as anything a data pack can do.

Links and Downloads

Note on Downloads

I only upload builds to Minecraft CurseForge. If you downloaded the mod from somewhere other than Curse/CurseForge or the Twitch launcher (or as part of a modpack in some cases), I cannot make any guarantees about the file or its contents, as it was uploaded without my permission.


Making an Add-on

To use Silent Gear in your project, you need to add dependencies for Silent Gear, Silent Lib, and silent-utils. Add the following to your build.gradle.

You alse need to generate a GitHub token and add it along with your GitHub username to your personal gradle.properties file in C:\Users\YOUR_USERNAME\.gradle or ~/.gradle/gradle.properties. This file may not exist, and you would have to create it yourself.

GitHub tokens can be generated here. Click Generate New Token and click the checkmark for read:packages

Example of gradle.properties file in C:\Users\YOUR_USERNAME\.gradle or ~/.gradle/gradle.properties

//Your GitHub username
gpr.username=SilentChaos512

// Your GitHub generated token (bunch of hex digits) with read permission
gpr.token=paste_your_token_here

Code to add to build.gradle. Note that "silentlib" is not hyphenated. I was following a different naming convention when the repo was created.

I prefer to assign my authentication details to a variable to reduce duplication and make the build file look cleaner.

// Authentication details for GitHub packages
// This can also go in the `repositories` block or you can inline it if you prefer
def gpr_creds = {
    username = property('gpr.username')
    password = property('gpr.token')
}

Add all the necessary repositories...

repositories {
    maven {
        url = uri("https://maven.pkg.github.com/silentchaos512/silent-gear")
        credentials gpr_creds
    }
    maven {
        url = uri("https://maven.pkg.github.com/silentchaos512/silentlib")
        credentials gpr_creds
    }
    maven {
        url = uri("https://maven.pkg.github.com/silentchaos512/silent-utils")
        credentials gpr_creds
    }
}

And finally, add dependencies for Silent Gear and Silent Lib (which will include silent-utils for you).

dependencies {
    // Replace VERSION with the version you need, in the form of "MC_VERSION-MOD_VERSION"
    // Example: compile fg.deobf("net.silentchaos512:silent-gear:1.16.3-2.+")
    // Available builds can be found here: https://github.com/SilentChaos512/silent-gear/packages
    // The "exclude module" lines will prevent import errors in some cases
    compile fg.deobf("net.silentchaos512:silent-gear:VERSION") {
        exclude module: 'forge'
        exclude module: 'jei-1.16.3'
        exclude module: 'silent-lib-1.16.3'
        exclude module: 'curios-forge'
    }

    // Same as before, VERSION is in the form "MC_VERSION-MOD_VERSION" (eg, 1.16.3-4.+)
    // https://github.com/SilentChaos512/silentlib/packages
    compile fg.deobf("net.silentchaos512:silent-lib:VERSION") {
        exclude module: "forge"
    }
}

silent-gear's People

Contributors

12emin34 avatar 27rogi avatar cech12 avatar gmoney2123 avatar pandory-network avatar partonetrain avatar samuelpv avatar secret-rabbit avatar silentchaos512 avatar tomasborsje avatar tomodachi94 avatar xuyuere avatar zorangebandit avatar

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.