Skip to content

Commit

Permalink
1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
erruqie committed Jun 9, 2024
1 parent b429a48 commit e551faa
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 18 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Version for 1.20.6 may be unstable

<img src="./src/main/resources/assets/blockify/icon.png" width="150" align="left"/>

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


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

### Spotify Premium is required
Expand Down
11 changes: 6 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ processResources {

tasks.withType(JavaCompile).configureEach {
// Minecraft 1.17 (21w19a) upwards uses Java 16.
it.options.release = 17
it.options.release = 21
}

java {
Expand Down Expand Up @@ -66,17 +66,18 @@ publishing {
// retrieving dependencies.
}
}
/*

import com.modrinth.minotaur.dependencies.ModDependency
modrinth {
token = System.getenv('MODRINTH_TOKEN')
projectId = project.modrinth_projectid
versionNumber = project.mod_version
versionType = 'release'
uploadFile = remapJar
gameVersions = ['1.19.3', '1.19.4']
loaders = ['fabric', 'quilt']
gameVersions = ['1.20.6']
loaders = ['fabric']
syncBodyFrom = rootProject.file("README.md").text
dependencies = [
new ModDependency('P7dR8mSH', 'required')
]
}*/
}
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@

# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.20
yarn_mappings=1.20+build.1
minecraft_version=1.20.6
yarn_mappings=1.20.6+build.3
loader_version=0.15.11

# Mod Properties
mod_version = 1.2.4.2
mod_version = 1.2.5-unstable
maven_group = one.clownless.blockify
archives_base_name = blockify
modrinth_projectid = X5aijFqA

# Dependencies
fabric_version=0.83.0+1.20
midnightlib_version=1.4.1-fabric
fabric_version=0.100.0+1.20.6
midnightlib_version=1.5.5-fabric
7 changes: 4 additions & 3 deletions src/main/java/one/clownless/blockify/mixin/BlockifyMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import org.spongepowered.asm.mixin.Final;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
import net.minecraft.client.gl.GlDebug;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
Expand All @@ -27,16 +28,16 @@ public abstract class BlockifyMixin {
@Final
private MinecraftClient client;

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

@Inject(method = "render", at = @At("HEAD"))
private void onDraw(DrawContext context, float tickDelta, CallbackInfo ci)
{
if (!MinecraftClient.getInstance().options.debugEnabled)
if (!GlDebug.isDebugMessageEnabled())
BlockifyHUD.draw(context);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/blockify.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"required": true,
"minVersion": "0.8",
"package": "one.clownless.blockify.mixin",
"compatibilityLevel": "JAVA_17",
"compatibilityLevel": "JAVA_21",
"mixins": [
],
"client": [
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@
"blockify.mixins.json"
],
"depends": {
"fabricloader": ">=0.14.6",
"fabricloader": ">=0.15.11",
"fabric": "*",
"minecraft": ">=1.19",
"java": ">=17",
"midnightlib": ">=0.5.2"
"minecraft": ">=1.20.6",
"java": ">=21",
"midnightlib": ">=1.5.5"
},
"custom": {
"modmenu": {
Expand Down

0 comments on commit e551faa

Please sign in to comment.