Skip to content

Commit

Permalink
Update minigame to Minecraft 1.20.1
Browse files Browse the repository at this point in the history
  • Loading branch information
haykam821 committed Nov 24, 2024
1 parent fc02f66 commit 485056e
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 28 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.gradle/loom-cache
~/.gradle/caches
key: gradle-${{hashFiles('**/*.gradle*')}}
restore-keys: gradle-
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
cache: gradle
distribution: microsoft
java-version: 17
- name: Build with Gradle
run: gradle build
- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: artifacts
path: build/libs
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
plugins {
id "fabric-loom" version "1.3.8"
id "fabric-loom" version "1.8.12"
id "maven-publish"
}

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group
Expand Down Expand Up @@ -46,7 +43,13 @@ processResources {
}
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

tasks.withType(JavaCompile) {
options.release = 17
options.encoding = "UTF-8"
}

Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ mod_version = 1.0.0
org.gradle.jvmargs = -Xmx1G

# Versions
minecraft_version = 1.19.4
yarn_mappings = 1.19.4+build.2
loader_version = 0.14.21
fabric_version = 0.85.0+1.19.4
minecraft_version = 1.20.1
yarn_mappings = 1.20.1+build.10
loader_version = 0.16.9
fabric_version = 0.92.2+1.20.1

plasmid_version = 0.5+1.19.4-SNAPSHOT
plasmid_version = 0.5.102-SNAPSHOT+1.20.1
10 changes: 7 additions & 3 deletions src/main/java/io/github/haykam821/parkourrun/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,20 @@
import xyz.nucleoid.plasmid.game.GameType;

public class Main implements ModInitializer {
public static final String MOD_ID = "parkourrun";
private static final String MOD_ID = "parkourrun";

private static final Identifier ENDING_PLATFORMS_ID = new Identifier(MOD_ID, "ending_platforms");
private static final Identifier ENDING_PLATFORMS_ID = Main.identifier("ending_platforms");
public static final TagKey<Block> ENDING_PLATFORMS = TagKey.of(RegistryKeys.BLOCK, ENDING_PLATFORMS_ID);

private static final Identifier PARKOUR_RUN_ID = new Identifier(MOD_ID, "parkour_run");
private static final Identifier PARKOUR_RUN_ID = Main.identifier("parkour_run");
public static final GameType<ParkourRunConfig> PARKOUR_RUN_TYPE = GameType.register(PARKOUR_RUN_ID, ParkourRunConfig.CODEC, ParkourRunWaitingPhase::open);

@Override
public void onInitialize() {
return;
}

public static Identifier identifier(String path) {
return new Identifier(MOD_ID, path);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
import xyz.nucleoid.plasmid.game.world.generator.GameChunkGenerator;

public class ParkourRunChunkGenerator extends GameChunkGenerator {
private static final Identifier STARTS_ID = new Identifier(Main.MOD_ID, "starts");
private static final Identifier AREAS_ID = new Identifier(Main.MOD_ID, "areas");
private static final Identifier CONNECTORS_ID = new Identifier(Main.MOD_ID, "connectors");
private static final Identifier ENDINGS_ID = new Identifier(Main.MOD_ID, "endings");
private static final Identifier STARTS_ID = Main.identifier("starts");
private static final Identifier AREAS_ID = Main.identifier("areas");
private static final Identifier CONNECTORS_ID = Main.identifier("connectors");
private static final Identifier ENDINGS_ID = Main.identifier("endings");

private final ParkourRunMap map;
private final StructureTemplateManager structureTemplateManager;
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"license": "MIT",
"icon": "assets/parkourrun/icon.png",
"depends": {
"fabricloader": ">=0.5.0"
"fabricloader": ">=0.5.0",
"java": ">=17",
"plasmid": ">=0.5.0"
}
}

0 comments on commit 485056e

Please sign in to comment.