Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
LLytho committed Jun 11, 2024
1 parent 8bf3d6d commit 69ebbe3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 125 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
branches:
- '1.20.1'
- '1.20.4'
tags-ignore:
- '**'
paths:
Expand Down
103 changes: 1 addition & 102 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
tags:
- 'v1.20.1-*.*.*'
- 'v1.20.4-*.*.*'

env:
JAVA_DIST: 'zulu'
Expand Down Expand Up @@ -105,107 +105,6 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
cat output/changelog.md >> $GITHUB_STEP_SUMMARY
mr-fabric-release:
name: Modrinth Fabric Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: build-artifacts

- name: Extract build artifacts
run: tar -zxvf build.tar.gz

- name: Release Fabric on Modrinth
uses: Kir-Antipov/mc-publish@v3.3
with:
modrinth-id: ${{ env.MODRINTH_ID }}
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

files: output/*fabric*.jar
name: ${{ env.MOD_NAME }}-Fabric-${{ needs.build.outputs.MINECRAFT_VERSION }}-${{ needs.build.outputs.MOD_VERSION }}
version: ${{ needs.build.outputs.MINECRAFT_VERSION }}-${{ needs.build.outputs.MOD_VERSION }}+fabric
version-type: ${{ needs.build.outputs.RELEASE_TYPE }}
changelog-file: output/changelog.md

loaders: fabric
game-versions: ${{ needs.build.outputs.MINECRAFT_VERSION }}
java: ${{ env.JAVA_VERSION }}

dependencies: |
jei(optional){curseforge:238222}{modrinth:u6dRKJwZ}
rei(optional){curseforge:310111}{modrinth:nfn13YXA}
cf-fabric-release:
name: CurseForge Fabric Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: build-artifacts

- name: Extract build artifacts
run: tar -zxvf build.tar.gz

- name: Release Fabric on CurseForge
uses: Kir-Antipov/mc-publish@v3.3
with:
curseforge-id: ${{ env.CURSEFORGE_ID }}
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

files: output/*fabric*.jar
name: ${{ env.MOD_NAME }}-Fabric-${{ needs.build.outputs.MINECRAFT_VERSION }}-${{ needs.build.outputs.MOD_VERSION }}
version: ${{ needs.build.outputs.MINECRAFT_VERSION }}-${{ needs.build.outputs.MOD_VERSION }}+fabric
version-type: ${{ needs.build.outputs.RELEASE_TYPE }}
changelog-file: output/changelog.md

loaders: fabric
game-versions: ${{ needs.build.outputs.MINECRAFT_VERSION }}
java: ${{ env.JAVA_VERSION }}

dependencies: |
jei(optional){curseforge:238222}{modrinth:u6dRKJwZ}
rei(optional){curseforge:310111}{modrinth:nfn13YXA}
mr-forge-release:
name: Modrinth Forge Release
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: build-artifacts

- name: Extract build artifacts
run: tar -zxvf build.tar.gz

- name: Release Forge on Modrinth
uses: Kir-Antipov/mc-publish@v3.3
with:
modrinth-id: ${{ env.MODRINTH_ID }}
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

files: output/*forge*.jar
name: ${{ env.MOD_NAME }}-Forge-${{ needs.build.outputs.MINECRAFT_VERSION }}-${{ needs.build.outputs.MOD_VERSION }}
version: ${{ needs.build.outputs.MINECRAFT_VERSION }}-${{ needs.build.outputs.MOD_VERSION }}+forge
version-type: ${{ needs.build.outputs.RELEASE_TYPE }}
changelog-file: output/changelog.md

loaders: |
forge
neoforge
game-versions: ${{ needs.build.outputs.MINECRAFT_VERSION }}
java: ${{ env.JAVA_VERSION }}

dependencies: |
jei(optional){curseforge:238222}{modrinth:u6dRKJwZ}
rei(optional){curseforge:310111}{modrinth:nfn13YXA}
cf-forge-release:
name: CurseForge Forge Release
needs: build
Expand Down
26 changes: 4 additions & 22 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,10 @@ and this project adheres to [Semantic Versioning].
## [Unreleased]
- /

## [3.0.0] -
### Changes
- Now on `neoforge`
- Added `LootJS.loot_tables` event for direct loot table modification
- Add `LootBucket` as wrapper class for loot for easier execute some helper functions
- `LootEntry` does not only represent single items anymore. It now represents all different loot entries vanilla minecraft has.
- `LootEntry.of(item)`: Single item
- `LootEntry.empty()`: Empty entry
- `LootEntry.tag(tag)`: Tag entry
- `LootEntry.reference(lootTable)`: Reference to another loot table. For example, `LootEntry.reference("minecraft:chests/abandoned_mineshaft")`
- `LootEntry.alternative(lootEntries...)`: Alternative loot
- `LootEntry.sequence(lootEntries...)`: Sequence loot
- `LootEntry.group(lootEntries...)`: Grouped loot
- Changes to `LootJS.modifiers` event:
- `addLootTableModifier`, `addLootTypeModifier`, `addBlockLootModifier`, `addEntityLootModifier` renamed into `addTableModifier`, `addTypeModifier`, `addBlockModifier`, `addEntityModifier`
- `.pool((pool) => {...})` removed. Instead, now use `.group((group) => {...})` or `.group(itemFilter, (item) => {...})`. Second one will pre-filter current loot for further modifications.
- `.group()` can use `.repeat(numberprovider)` to execute the group multiple times
- `.functions(itemFilter, (f) => {})` removed. Better to just use `group` now
- `LootContextJS` wrapper removed. Using `LootContext` instead but added all helper methods from `LootContextJS` too
- Changes to `Loot Functions`:
- `smeltLoot` renamed to `smelt`
- `customFunction` renamed to `jsonFunction`
## [3.0.0] - 2024-06-11

- Alpha Release for FTB modpack. I wanted to skip 1.20.4 lol. LootJS 3.0 is not compatible with the current wiki. Read
the source if you want to use it. Wiki will be available for Minecraft 1.21, when LootJS 3.0 is fully released.

## [2.10.3] - 2023-09-27
### Fixed
Expand Down

0 comments on commit 69ebbe3

Please sign in to comment.