Files
minecraft-data-generator/.github/workflows/build.yml
T
2c423f77f8 1.21 (#25)
* 1.20.5 recipes: null over -1

* add 1.21

* 1.21 (#26)

* update classname

* update moved class

* updated to equivelant method since gettranslatekey removed

* added isCursed list as bandaid alternative for now since isCursed() removed

* added isTreasure list as bandaid alternative for now since isTreasure() removed

* found alternative method to canCombine() since removed

* modified getEnchantmentTarget name to handle registryEntryList since getApplicableItems dosnt return tagKey anymore

* bandaid list solution for "tradeable" property since isTradeable removed and no alternative in mappings

* bandaid solution for discoverable property since removed and no alternative to isAvailiableForRandomSelection in 1.21 mappings

* removed .toPath since apparently it dosnt exist

* no longer outputs in tagkey format

* fixed not adding enchantcategories for items properly

* added SuperGamerTron tag solution

* Update build.yml

---------

Co-authored-by: Madlykeanu <96554689+Madlykeanu@users.noreply.github.com>
Co-authored-by: Romain Beaumont <romain.rom1@gmail.com>
2024-10-27 11:34:53 +01:00

65 lines
1.3 KiB
YAML

name: Java CI with Gradle
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
version: [
"1.7",
"1.8.9",
"1.9.4",
"1.10.2",
"1.11.2",
"1.12.2",
"1.13",
"1.14",
"1.15",
"1.16",
"1.17",
"1.18",
"22w19a",
"1.19",
"1.19.2",
"1.20",
"1.20.4",
"1.20.5",
"1.21"
]
name: Build ${{ matrix.version }}
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Generate ${{ matrix.version }}
uses: gradle/gradle-build-action@v2
with:
arguments: :${{ matrix.version }}:runServer
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: data-${{ matrix.version }}
path: ${{ matrix.version }}/run/server/minecraft-data
if-no-files-found: error