File tree Expand file tree Collapse file tree
java/one/clownless/blockify/mixin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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+
1316Fork of original [ Blockify] ( https://github.com/BuffMage/Blockify ) , allows users to passthrough their Spotify information into Minecraft
1417
1518### Spotify Premium is required
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ processResources {
3434
3535tasks. withType(JavaCompile ). configureEach {
3636 // Minecraft 1.17 (21w19a) upwards uses Java 16.
37- it. options. release = 17
37+ it. options. release = 21
3838}
3939
4040java {
@@ -66,17 +66,18 @@ publishing {
6666 // retrieving dependencies.
6767 }
6868}
69- /*
69+
7070import com.modrinth.minotaur.dependencies.ModDependency
7171modrinth {
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+ }
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1111import org .spongepowered .asm .mixin .Final ;
1212import org .spongepowered .asm .mixin .Mixin ;
1313import org .spongepowered .asm .mixin .Shadow ;
14+ import net .minecraft .client .gl .GlDebug ;
1415import org .spongepowered .asm .mixin .injection .At ;
1516import org .spongepowered .asm .mixin .injection .Inject ;
1617import 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}
Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments