Skip to content

Commit e551faa

Browse files
committed
1.20.6
1 parent b429a48 commit e551faa

6 files changed

Lines changed: 23 additions & 18 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Version for 1.20.6 may be unstable
2+
13
<img src="./src/main/resources/assets/blockify/icon.png" width="150" align="left"/>
24

35
## Blockify Mod
@@ -10,6 +12,7 @@
1012
![Environment](https://img.shields.io/badge/environment-client-1976d2?style=flat-square)
1113
[![Discord](https://img.shields.io/discord/837540892411691008?label=discord&style=flat-square)](https://discord.gg/bSgZxY3rQm)
1214

15+
1316
Fork of original [Blockify](https://github.com/BuffMage/Blockify), allows users to passthrough their Spotify information into Minecraft
1417

1518
### Spotify Premium is required

build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ processResources {
3434

3535
tasks.withType(JavaCompile).configureEach {
3636
// Minecraft 1.17 (21w19a) upwards uses Java 16.
37-
it.options.release = 17
37+
it.options.release = 21
3838
}
3939

4040
java {
@@ -66,17 +66,18 @@ publishing {
6666
// retrieving dependencies.
6767
}
6868
}
69-
/*
69+
7070
import com.modrinth.minotaur.dependencies.ModDependency
7171
modrinth {
7272
token = System.getenv('MODRINTH_TOKEN')
7373
projectId = project.modrinth_projectid
7474
versionNumber = project.mod_version
7575
versionType = 'release'
7676
uploadFile = remapJar
77-
gameVersions = ['1.19.3', '1.19.4']
78-
loaders = ['fabric', 'quilt']
77+
gameVersions = ['1.20.6']
78+
loaders = ['fabric']
79+
syncBodyFrom = rootProject.file("README.md").text
7980
dependencies = [
8081
new ModDependency('P7dR8mSH', 'required')
8182
]
82-
}*/
83+
}

gradle.properties

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33

44
# Fabric Properties
55
# check these on https://fabricmc.net/use
6-
minecraft_version=1.20
7-
yarn_mappings=1.20+build.1
6+
minecraft_version=1.20.6
7+
yarn_mappings=1.20.6+build.3
88
loader_version=0.15.11
99

1010
# Mod Properties
11-
mod_version = 1.2.4.2
11+
mod_version = 1.2.5-unstable
1212
maven_group = one.clownless.blockify
1313
archives_base_name = blockify
1414
modrinth_projectid = X5aijFqA
1515

1616
# Dependencies
17-
fabric_version=0.83.0+1.20
18-
midnightlib_version=1.4.1-fabric
17+
fabric_version=0.100.0+1.20.6
18+
midnightlib_version=1.5.5-fabric

src/main/java/one/clownless/blockify/mixin/BlockifyMixin.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import org.spongepowered.asm.mixin.Final;
1212
import org.spongepowered.asm.mixin.Mixin;
1313
import org.spongepowered.asm.mixin.Shadow;
14+
import net.minecraft.client.gl.GlDebug;
1415
import org.spongepowered.asm.mixin.injection.At;
1516
import org.spongepowered.asm.mixin.injection.Inject;
1617
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@@ -27,16 +28,16 @@ public abstract class BlockifyMixin {
2728
@Final
2829
private MinecraftClient client;
2930

30-
@Inject(method = "<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/render/item/ItemRenderer;)V", at = @At(value = "RETURN"))
31-
private void onInit(MinecraftClient client, ItemRenderer itemRenderer, CallbackInfo ci) throws IOException
31+
@Inject(at = @At("RETURN"), method = "<init>(Lnet/minecraft/client/MinecraftClient;)V")
32+
private void onInit(MinecraftClient client, CallbackInfo ci) throws IOException
3233
{
3334
this.blockifyHUD = new BlockifyHUD(client);
3435
}
3536

3637
@Inject(method = "render", at = @At("HEAD"))
3738
private void onDraw(DrawContext context, float tickDelta, CallbackInfo ci)
3839
{
39-
if (!MinecraftClient.getInstance().options.debugEnabled)
40+
if (!GlDebug.isDebugMessageEnabled())
4041
BlockifyHUD.draw(context);
4142
}
4243
}

src/main/resources/blockify.mixins.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"required": true,
33
"minVersion": "0.8",
44
"package": "one.clownless.blockify.mixin",
5-
"compatibilityLevel": "JAVA_17",
5+
"compatibilityLevel": "JAVA_21",
66
"mixins": [
77
],
88
"client": [

src/main/resources/fabric.mod.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
"blockify.mixins.json"
3232
],
3333
"depends": {
34-
"fabricloader": ">=0.14.6",
34+
"fabricloader": ">=0.15.11",
3535
"fabric": "*",
36-
"minecraft": ">=1.19",
37-
"java": ">=17",
38-
"midnightlib": ">=0.5.2"
36+
"minecraft": ">=1.20.6",
37+
"java": ">=21",
38+
"midnightlib": ">=1.5.5"
3939
},
4040
"custom": {
4141
"modmenu": {

0 commit comments

Comments
 (0)