Skip to content

Commit

Permalink
feat: Update to Minecraft 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Jun 8, 2024
1 parent a6fd42a commit 1012926
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 21 deletions.
File renamed without changes.
7 changes: 4 additions & 3 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: publish-snapshot
on:
push:
tags:
- '*'
branches:
- '**'

jobs:
publish-snapshot:
Expand All @@ -12,6 +12,7 @@ jobs:
strategy:
matrix:
loader: [common, fabric, forge, neoforge]
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -32,7 +33,7 @@ jobs:
uses: TwelveIterationMods/bump-version@v1
with:
version: ${{ steps.extract-version.outputs.version }}
bump: minor
bump: patch
id: bump-version
- name: Publish
run: ./gradlew :${{ matrix.loader }}:publish '-Pversion=${{ steps.bump-version.outputs.version }}-SNAPSHOT' '-PtwelveIterationsNexusUsername=${{ secrets.NEXUS_USER }}' '-PtwelveIterationsNexusPassword=${{ secrets.NEXUS_PASSWORD }}'
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ build
eclipse
run
runs
runserver
logs

common/src/generated/resources/.cache
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Updated to Minecraft 1.21

- Updated to Minecraft 1.20.6
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static void initialize() {

ModNetworking.initialize(Balm.getNetworking());

Balm.addServerReloadListener(new ResourceLocation(MOD_ID, "json_registry"), new JsonCompatLoader());
Balm.addServerReloadListener(ResourceLocation.fromNamespaceAndPath(MOD_ID, "json_registry"), new JsonCompatLoader());

Balm.getEvents().onEvent(ServerStartedEvent.class, SlabDumpHandler::onServerStarted);
Balm.getEvents().onEvent(PlayerLoginEvent.class, LoginSyncHandler::onPlayerLogin);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

public class KleeSlabsRegistryMessage implements CustomPacketPayload {

public static CustomPacketPayload.Type<KleeSlabsRegistryMessage> TYPE = new CustomPacketPayload.Type<>(new ResourceLocation(KleeSlabs.MOD_ID, "registry"));
public static CustomPacketPayload.Type<KleeSlabsRegistryMessage> TYPE = new CustomPacketPayload.Type<>(ResourceLocation.fromNamespaceAndPath(KleeSlabs.MOD_ID, "registry"));

private final boolean isFirst;
private final List<SlabRegistryData> data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private static Block parseBlock(String modId, String name) {
name = name.substring(colon + 1);
}

Block block = Balm.getRegistries().getBlock(new ResourceLocation(modId, name));
Block block = Balm.getRegistries().getBlock(ResourceLocation.fromNamespaceAndPath(modId, name));
return block != null ? block : Blocks.AIR;
}

Expand Down
2 changes: 1 addition & 1 deletion fabric/dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ dependencies {
modImplementation("net.blay09.mods:balm-fabric:${balm_version}") {
changing = balm_version.contains("SNAPSHOT")
}
modImplementation "com.terraformersmc:modmenu:$modmenu_version"
modCompileOnly "com.terraformersmc:modmenu:$modmenu_version"
}
6 changes: 3 additions & 3 deletions fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
],

"depends": {
"fabricloader": ">=0.14",
"fabricloader": ">=${fabric_loader_version}",
"fabric-api": "*",
"balm-fabric": "*",
"minecraft": ">=1.20.2",
"java": ">=17"
"minecraft": "${minecraft_version_range}",
"java": ">=${java_version}"
},
"suggests": {
},
Expand Down
2 changes: 1 addition & 1 deletion forge/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id 'multiloader-loader'
id 'net.minecraftforge.gradle' version '[6.0,6.2)'
id 'net.minecraftforge.gradle' version '[6.0.25,6.2)'
id 'org.spongepowered.mixin'
id 'net.darkhax.curseforgegradle'
id "com.modrinth.minotaur"
Expand Down
17 changes: 9 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod_id = kleeslabs
mod_name = KleeSlabs
mod_main=KleeSlabs
description=Break only the half of a double slab that you're looking at.
version = 17.0.1
version = 21.0.0
group = net.blay09.mods
homepage=https://mods.twelveiterations.com/mc/kleeslabs
sources=https://github.com/TwelveIterationMods/KleeSlabs
Expand All @@ -18,15 +18,15 @@ modrinth_release_type = release
modrinth_project_id = 7uh75ruZ

# Minecraft
minecraft_version = 1.20.6
minecraft_versions = 1.20.6
minecraft_version_range = [1.20.6,1.21)
minecraft_version = 1.21-pre4
minecraft_versions = 1.21-pre4
minecraft_version_range = 1.21-beta.4
pack_format_number = 18
java_version = 21

# Balm
balm_version = 10.1.0-SNAPSHOT
balm_version_range = [10.0.0,)
balm_version = 21.0.1-SNAPSHOT
balm_version_range = [21.0.0,)

# Forge
forge_version = 50.0.22
Expand All @@ -39,7 +39,7 @@ neoforge_version_range = [20.6,)
neoforge_loader_version_range = [1,)

# Fabric
fabric_version = 0.98.0+1.20.6
fabric_version = 0.100.0+1.21
fabric_loader_version = 0.15.11

# Dependencies
Expand All @@ -50,4 +50,5 @@ modmenu_version=9.0.0
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
mod_author = BlayTheNinth
credits = BlayTheNinth
credits = BlayTheNinth
kuma_version = [21.0,22)
8 changes: 8 additions & 0 deletions repositories.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ repositories {
url = "https://maven.terraformersmc.com/releases"
content {
includeGroup "com.terraformersmc"
includeGroup "dev.emi"
}
}

Expand All @@ -56,4 +57,11 @@ repositories {
includeGroup "us.dynmap"
}
}

maven {
url "https://maven.siphalor.de/"
content {
includeGroup "de.siphalor"
}
}
}
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ plugins {

include("common")
include("fabric")
include("forge")
include("neoforge")
// include("forge")
// include("neoforge")

0 comments on commit 1012926

Please sign in to comment.