For the Love of God Would You Shut Up

For the Love of God Would You Shut Up

Reverts the change made in 22w13a where noteblocks make sound even when there is a block ontop of them.

by
208 Downloads
fabricutility
Rent Server with this Mod

About this Mod

the change that prompted the creation of this mod has been reverted

Changes in 22w15a

A previous change to Noteblocks that only Wool and Wool Carpets would block the sounds has been reverted

icon

For the Love of God Would You Shut Up

Reverts the change made in 22w13a where noteblocks make sound even when there is a block ontop of them.

This mod seeks to make redstone less annoying, it disables sounds from noteblocks when there is something ontop of them.

Note Blocks will still notify allay/sculk despite not making a sound.

Video

Code Change explained

Originally, the code for playing a note looked like this:

private void playNote(World world, BlockPos pos) {
    if (world.getBlockState(pos.up()).isAir()) {
        world.addSyncedBlockEvent(pos, this, 0, 0); // plays sound
    }
}

22w13a added a GameEvent for noteblocks being played and made it so noteblocks are only disabled if they have wool or carpet ontop of them

private void playNote(@Nullable Entity entity, World world, BlockPos pos) {
    BlockState blockState = world.getBlockState(pos.up());
    if (blockState.isIn(BlockTags.WOOL) || blockState.isIn(BlockTags.WOOL_CARPETS)) {
        return;
    }
    world.addSyncedBlockEvent(pos, this, 0, 0); // plays sound
    world.emitGameEvent(entity, GameEvent.NOTE_BLOCK_PLAY, pos); // notifies allay, warden, and skulk sensors
}

This mod makes the following changes to that code*
*it actually turns world.addSyncedBlockEvent into a method that has the if statement

private void playNote(@Nullable Entity entity, World world, BlockPos pos) {
    BlockState blockState = world.getBlockState(pos.up());
    if (blockState.isIn(BlockTags.WOOL) || blockState.isIn(BlockTags.WOOL_CARPETS)) {
        return;
    }
+   if (world.getBlockState(pos.up()).isAir()) {
+       world.addSyncedBlockEvent(pos, this, 0, 0); // plays sound
+   }
-   world.addSyncedBlockEvent(pos, this, 0, 0);
    world.emitGameEvent(entity, GameEvent.NOTE_BLOCK_PLAY, pos); // notifies allay, warden, and skulk sensors
}

Because this mod only seeks to make redstone less annoying, it just disables sounds from noteblocks when there is something ontop of them.

The functionality for notifying allay/sculk remains intact.

License

This project is under the Unlicense

Available Versions

FtLoGWYSU V1.0.0release
MC 22w13a, 22w14afabric
April 11, 2022

How to Install For the Love of God Would You Shut Up on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (22w14a).

3

Install Mod

Open the mod browser in the dashboard and search for "For the Love of God Would You Shut Up". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

22w14a, 22w13a

Server-side

Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

For the Love of God Would You Shut Up server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (22w14a). You can switch loaders with one click in the panel.

Is For the Love of God Would You Shut Up compatible with fabric?

For the Love of God Would You Shut Up officially supports fabric for Minecraft 22w14a, 22w13a. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with For the Love of God Would You Shut Up – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if For the Love of God Would You Shut Up consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install For the Love of God Would You Shut Up with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
The Unlicense
Server-side
Unsupported

Supported Versions

22w14a22w13a