Small change in how often lava popping can be heard + default just recipe

master
Wynd 2025-06-30 13:15:50 +03:00
parent 8c3eb9063e
commit 4375bb0c10
2 changed files with 18 additions and 15 deletions

View File

@ -3,6 +3,15 @@ set export
modName := "finalbeta"
modVersion := "1.4.0"
build:
# Delete previous builds
fd . './builds' -e .zip --exec rm
just create-patches
./recompile.sh
./reobfuscate.sh
for file in $(fd . ./lib -e "jar"); do unzip -qo "$file" -d "./reobf/minecraft/"; done
(cd ./reobf/minecraft && zip -qr "../../builds/${modName}-${modVersion}-modloader.zip" ./*)
setup:
./cleanup.sh
./decompile.sh
@ -50,11 +59,3 @@ create-patches:
diff -Nau "$file" "$core" > "$patch" || true
done)
build:
# Delete previous builds
fd . './builds' -e .zip --exec rm
just create-patches
./recompile.sh
./reobfuscate.sh
for file in $(fd . ./lib -e "jar"); do unzip -qo "$file" -d "./reobf/minecraft/"; done
(cd ./reobf/minecraft && zip -qr "../../builds/${modName}-${modVersion}-modloader.zip" ./*)

View File

@ -1,14 +1,16 @@
--- src/BlockStationary.java.bak 2025-04-06 23:16:22.506060418 +0300
+++ src/BlockStationary.java 2025-04-06 23:17:28.160290908 +0300
@@ -46,6 +46,13 @@
+++ src/BlockStationary.java 2025-06-30 13:01:04.686946445 +0300
@@ -46,6 +46,15 @@
{
if(blockMaterial == Material.lava)
{
+ if (world.rand.nextInt(10) == 1) {
+ world.playSoundEffect(i, j, k, "sound3.liquid.lava", 0.5f, 1.0f);
+ }
+ else {
+ world.playSoundEffect(i, j, k, "sound3.liquid.lavapop", 0.5f, 1.0f);
+ if (world.rand.nextInt(16) == 1) {
+ if (world.rand.nextInt(3) == 1) {
+ world.playSoundEffect(i, j, k, "sound3.liquid.lava", 0.5f, 1.0f);
+ }
+ else {
+ world.playSoundEffect(i, j, k, "sound3.liquid.lavapop", 0.5f, 1.0f);
+ }
+ }
+
int l = random.nextInt(3);