diff --git a/README.md b/README.md new file mode 100644 index 0000000..8ad42fa --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Final Beta + +A rewrite from the [original (Cursed) Fabric mod](https://git.pixelatedw.xyz/wynd/finalbeta) for Minecraft Beta 1.7.3 that adds some quality of life changes and fixes some issues. diff --git a/justfile b/justfile index 82a7aad..a549d75 100644 --- a/justfile +++ b/justfile @@ -1,11 +1,22 @@ +set export + +modName := "finalbeta" +modVersion := "1.4.0" + setup: ./cleanup.sh ./decompile.sh - (cd ./src/minecraft/net/minecraft/src && git init && git add . && git commit -m "Setup") [working-directory: './src/minecraft/net/minecraft/src/'] apply-patch: - git apply ./finalbeta/mod.patch + #!/usr/bin/env bash + (for file in $(fd --no-ignore ".java.bak"); do + core="${file/.bak/}" + patch="${core}.patch" + rm "$core" + cp "$file" "$core" + patch < "$patch" + done) [working-directory: './src/minecraft/net/minecraft/src/'] create-patch: @@ -18,7 +29,9 @@ create-patch: done) build: + # Delete previous builds + fd . './builds' -e .zip --exec rm just create-patch ./recompile.sh ./reobfuscate.sh - (cd ./reobf/minecraft && zip -r "../../builds/finalbeta-1.4.0-modloader.zip" ./*) + (cd ./reobf/minecraft && zip -r "../../builds/${modName}-${modVersion}-modloader.zip" ./*) diff --git a/src/minecraft/net/minecraft/src/BlockBed.java.patch b/src/minecraft/net/minecraft/src/BlockBed.java.patch index 7f970c2..0e6deeb 100644 --- a/src/minecraft/net/minecraft/src/BlockBed.java.patch +++ b/src/minecraft/net/minecraft/src/BlockBed.java.patch @@ -1,5 +1,5 @@ ---- BlockBed.java.bak 2025-04-04 22:37:36.783594425 +0300 -+++ BlockBed.java 2025-04-04 22:37:07.542945648 +0300 +--- BlockBed.java.bak 2025-04-04 22:37:36.783594000 +0300 ++++ BlockBed.java 2025-04-04 23:36:32.041452482 +0300 @@ -22,6 +22,9 @@ public boolean blockActivated(World world, int i, int j, int k, EntityPlayer entityplayer) diff --git a/src/minecraft/net/minecraft/src/BlockReed.java.patch b/src/minecraft/net/minecraft/src/BlockReed.java.patch index c6f622c..cc62fd4 100644 --- a/src/minecraft/net/minecraft/src/BlockReed.java.patch +++ b/src/minecraft/net/minecraft/src/BlockReed.java.patch @@ -1,5 +1,5 @@ --- BlockReed.java.bak 2025-04-04 22:55:28.995768000 +0300 -+++ BlockReed.java 2025-04-04 22:56:15.585222322 +0300 ++++ BlockReed.java 2025-04-04 23:43:43.870642705 +0300 @@ -50,7 +50,7 @@ { return true;