Skip to content

Commit

Permalink
Potato PC Version
Browse files Browse the repository at this point in the history
  • Loading branch information
AwesomeKalin committed Jun 29, 2024
1 parent dcd469c commit 7d95dff
Show file tree
Hide file tree
Showing 102 changed files with 72 additions and 17 deletions.
50 changes: 35 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,43 @@ jobs:
with:
name: Fabric and Forge ${{ matrix.minecraft }}
path: build/release/
crowdin:
potato:
strategy:
fail-fast: false
matrix:
minecraft: [ 1.16.5, 1.17.1, 1.18.2, 1.19.2, 1.19.4, 1.20.1, 1.20.4 ]

runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Upload Translations to Crowdin
env:
MY_KEY: ${{ secrets.CROWDIN_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: crowdin/github-action@master

- name: Validate gradle wrapper
uses: gradle/actions/wrapper-validation@main

- name: Setup JDK 17
uses: actions/setup-java@main
with:
java-version: 17
distribution: 'zulu'

- name: Make gradle wrapper executable
run: chmod +x ./gradlew

- name: Setup Fabric files
run: ./gradlew fabric:setupFiles -PminecraftVersion="${{ matrix.minecraft }}"

- name: Setup Potato PC Textures
run: ./gradlew fabric:setupPotato -PminecraftVersion="${{ matrix.minecraft }}"

- name: Setup Forge files
run: ./gradlew forge:setupFiles -PminecraftVersion="${{ matrix.minecraft }}"

- name: Build ${{ matrix.minecraft }}
run: ./gradlew build -PminecraftVersion="${{ matrix.minecraft }}"

- name: Capture release artifacts
uses: actions/upload-artifact@main
with:
upload_sources: true
upload_translations: false
download_translations: true
push_translations: true
create_pull_request: true
project_id: '685566'
token: ${{ secrets.CROWDIN_API_KEY }}
config: 'crowdin.yml'
name: Fabric and Forge ${{ matrix.minecraft }} Potato PC Version
path: build/release/
25 changes: 25 additions & 0 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Crowdin
on: push

jobs:
crowdin:
runs-on: ubuntu-latest
permissions: write-all
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Upload Translations to Crowdin
env:
MY_KEY: ${{ secrets.CROWDIN_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: crowdin/github-action@master
with:
upload_sources: true
upload_translations: false
download_translations: true
push_translations: true
create_pull_request: true
project_id: '685566'
token: ${{ secrets.CROWDIN_API_KEY }}
config: 'crowdin.yml'
10 changes: 10 additions & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ tasks.register("setupFiles") {
}
}

tasks.register("setupPotato") {
delete fileTree("src/main/resources/assets/jta/textures")

copy {
outputs.upToDateWhen { true }
from "../potatoTex"
into "src/main/resources/assets/jta/textures"
}
}

build {
doLast {
buildTools.copyBuildFile()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"textures": {
"1": "jta:block/british_trash_bin/base",
"2": "jta:block/british_trash_bin/bee",
"3": "jta:block/british_trash_bin/iron_trapdoor",
"3": "minecraft:block/iron_trapdoor",
"4": "jta:block/british_trash_bin/basefood",
"5": "jta:block/british_trash_bin/cig"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"textures": {
"1": "jta:block/british_trash_bin/base",
"2": "jta:block/british_trash_bin/bee",
"3": "jta:block/british_trash_bin/iron_trapdoor",
"3": "minecraft:block/iron_trapdoor",
"4": "jta:block/british_trash_bin/basefood",
"5": "jta:block/british_trash_bin/cig"
},
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/24_hour_cctv_in_operation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/24hourcctv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/ahead_only.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/avanti_west_coast_sign.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/be_careful.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/british_rail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/british_rail_platforms/platform.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/british_railway_grout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/british_trash_bin/base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/british_trash_bin/basefood.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/british_trash_bin/bee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/british_trash_bin/cig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/british_trash_bin/cig2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/caution_no_hurt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/cctv_in_operation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/contactless.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/danger_electric_shock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/danger_high_voltage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added potatoTex/block/do_not_cross.png
Binary file added potatoTex/block/do_not_trespass.png
Binary file added potatoTex/block/emr_sign.png
Binary file added potatoTex/block/emr_ticket_machine/block.png
Binary file added potatoTex/block/emr_ticket_machine/ticket.png
Binary file added potatoTex/block/explore_less.png
Binary file added potatoTex/block/fly_the_tube.png
Binary file added potatoTex/block/free_the_night.png
Binary file added potatoTex/block/going_to_heathrow.png
Binary file added potatoTex/block/gray_plastic.png
Binary file added potatoTex/block/greek_platform_end.png
Binary file added potatoTex/block/lane_control_cross_red_arrow.png
Binary file added potatoTex/block/lane_control_empty.png
Binary file added potatoTex/block/left_bag_unattended.png
Binary file added potatoTex/block/level_crossing.png
Binary file added potatoTex/block/lime_bricks.png
Binary file added potatoTex/block/merseyrail_sign.png
Binary file added potatoTex/block/metrolink_ticket_machine/block.png
Binary file added potatoTex/block/night_tube_info.png
Binary file added potatoTex/block/no-entry.png
Binary file added potatoTex/block/no_access.png
Binary file added potatoTex/block/no_littering.png
Binary file added potatoTex/block/no_parking.png
Binary file added potatoTex/block/no_pavement_parking.png
Binary file added potatoTex/block/no_sitting.png
Binary file added potatoTex/block/northern_sign.png
Binary file added potatoTex/block/northern_ticket_machine/block.png
Binary file added potatoTex/block/nosmokingvaping.png
Binary file added potatoTex/block/only.png
Binary file added potatoTex/block/penalty_fare.png
Binary file added potatoTex/block/permissible_speed_30.png
Binary file added potatoTex/block/permissible_speed_40.png
Binary file added potatoTex/block/permissible_speed_50.png
Binary file added potatoTex/block/play_fare.png
Binary file added potatoTex/block/poster_somewhere_shouldnt.png
Binary file added potatoTex/block/reduce_speed_now.png
Binary file added potatoTex/block/residents_parking_only.png
Binary file added potatoTex/block/rusty_pole.png
Binary file added potatoTex/block/speed_10.png
Binary file added potatoTex/block/speed_15.png
Binary file added potatoTex/block/speed_20.png
Binary file added potatoTex/block/speed_20_zone.png
Binary file added potatoTex/block/speed_30.png
Binary file added potatoTex/block/speed_40.png
Binary file added potatoTex/block/speed_5.png
Binary file added potatoTex/block/speed_50.png
Binary file added potatoTex/block/speed_60.png
Binary file added potatoTex/block/speed_70.png
Binary file added potatoTex/block/standcleardoors.png
Binary file added potatoTex/block/steel.png
Binary file added potatoTex/block/stop.png
Binary file added potatoTex/block/stop_look_listen.png
Binary file added potatoTex/block/train_crossing.png
Binary file added potatoTex/block/tram.png
Binary file added potatoTex/block/tram_crossing.png
Binary file added potatoTex/block/tramway.png
Binary file added potatoTex/block/turn_left.png
Binary file added potatoTex/block/turn_left_ahead.png
Binary file added potatoTex/block/turn_right.png
Binary file added potatoTex/block/turn_right_ahead.png
Binary file added potatoTex/block/use_caution.png
Binary file added potatoTex/block/yellow.png

0 comments on commit 7d95dff

Please sign in to comment.