Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Gradle CI

on:
push:
branches:
- '**'
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
pull_request:
branches:
- '**'
paths-ignore:
- 'README.md'
- 'LICENSE'
- '.gitignore'
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
name: Build with gradle
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Java 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Set up Java 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
./.gradle/loom-cache
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build --no-daemon
- uses: actions/upload-artifact@v4
with:
name: artifact-${{ matrix.os }}
path: |
**/build/libs/
44 changes: 44 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Release

on:
push:
branches:
- '*/prod'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
name: Publish with gradle

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Java 17
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
- name: Set up Java 21
uses: actions/setup-java@v4
with:
java-version: 21
distribution: temurin
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
./.gradle/loom-cache
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Publish
run: ./gradlew publish publishMods
env:
CURSEFORGE_TOKEN: ${{secrets.CURSEFORGE}}
MODRINTH_TOKEN: ${{secrets.MODRINTH}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
DISCORD_WEBHOOK: ${{secrets.DISCORD_WEBHOOK}}
44 changes: 44 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
run
logs

### IntelliJ IDEA ###
.idea/
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### Kotlin ###
.kotlin

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Beta 1.2

## What’s New
- **Supports Minecraft 1.20.1 → 1.21.8**
- **Works on NeoForge and Fabric** (Forge coming later)
- **Rewritten in Kotlin** for smoother performance and fewer bugs
- **Built‑in widget system** for better stability without extra libraries
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 CalculatorsTeam

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
63 changes: 63 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# DynamicPack
A mod that will monitor the current version of your resource pack and download automatically!

![https://img.shields.io/badge/Enviroment-Client-purple](https://img.shields.io/badge/Enviroment-Client-purple)
[![Static Badge](https://img.shields.io/badge/Github-gray?logo=github)
](https://github.com/CalculatorsTeam/DynamicPack)

[![Java CI with Gradle](https://github.com/CalculatorsTeamAdamCalculator/DynamicPack/actions/workflows/gradle.yml/badge.svg)](https://github.com/AdamCalculator/DynamicPack/actions/workflows/gradle.yml)

[![Banner](https://api.mcbanners.com/banner/saved/wveMrFfPsqwXbV.png)](https://modrinth.com/mod/dynamicpack)

## Documentation
[**Available here**](https://github.com/CalculatorsTeam/DynamicPack/wiki)

## Packs using it mod
* [Better Tables](https://modrinth.com/resourcepack/bettertables)
* [CursedEveryday (github)](https://github.com/AdamCalculator/CursedEveryday/releases/tag/day4)
* [ModsRU](https://modrinth.com/resourcepack/mods-ru)
* [zelda-music](https://modrinth.com/resourcepack/zelda-music)
* [PawTotems (smp) (github)](https://github.com/1NFERR/PawTotems/)
* [SPPack (smp) (github)](https://github.com/aladairmaxwell/SP)
* [Essentially Tweaked](https://modrinth.com/resourcepack/essentially-tweaked)
* [Vanilla Leaves](https://modrinth.com/resourcepack/vanilla-leaves)

## Plans
The mod is planned to support **any bootloader** and any version, but I don't have enough time right now. **I'm always happy to see new contributors!**

## How it works
Resource pack developers need to create a `dynamicmcpack.json` file inside the resource pack, which will save some information, and the mod will update when the game starts if resource pack files are required.

## For users
Install and it will automatically update supported resource packs.

⚠️ Since the mod is being actively developed, it is not yet possible to check resource packs for updates, but this will be added in the future.


## For developers
If you want your package to update itself from **Modrinth**, you need to add the `dynamicmcpack.json` file to the following content:
```json5
{
"current": {
"version_number": "7.1" // version of the current pack
},
"remote": {
"game_version": "1.21.1", // game version
"modrinth_project_id": "better-leaves", // your project identifier
"type": "modrinth"
},
"formatVersion": 1
}
```
**⚠️⚠️⚠️ JSON Specification not support //comments! Delete it before use.**

You can validate your JSON [here](https://jsonformatter.curiousconcept.com/#)


For other features (dynamic repos) visit [github wiki!](https://github.com/CalculatorsTeam/DynamicPack/wiki)


## Donate
The project is completely free and open under the MIT licence. You can help original author by donating ❤️

**Bitcoin:** `bc1qpc0q9ym7rnfatdh43c4jyf68znj8x2jae5j4cz`
Loading