An open API service indexing awesome lists of open source software.

https://github.com/eclipseisoffline/jukeboxcustomdiscfix

This mod fixes bug MC-260346, which causes custom music discs, when played in a jukebox, to be cut off when the vanilla disc would normally end.
https://github.com/eclipseisoffline/jukeboxcustomdiscfix

minecraft minecraft-mod minecraft-resourcepack

Last synced: about 2 months ago
JSON representation

This mod fixes bug MC-260346, which causes custom music discs, when played in a jukebox, to be cut off when the vanilla disc would normally end.

Awesome Lists containing this project

README

        

# Jukebox Custom Disc Fix

[![Modrinth Version](https://img.shields.io/modrinth/v/NtPNF0D7?logo=modrinth&color=008800)](https://modrinth.com/mod/jukebox-custom-disc-fix)
[![Modrinth Game Versions](https://img.shields.io/modrinth/game-versions/NtPNF0D7?logo=modrinth&color=008800)](https://modrinth.com/mod/jukebox-custom-disc-fix)
[![Modrinth Downloads](https://img.shields.io/modrinth/dt/NtPNF0D7?logo=modrinth&color=008800)](https://modrinth.com/mod/jukebox-custom-disc-fix)
[![Discord Badge](https://img.shields.io/badge/chat-discord-%235865f2)](https://discord.gg/CNNkyWRkqm)
[![Github Badge](https://img.shields.io/badge/github-jukeboxcustomdiscfix-white?logo=github)](https://github.com/eclipseisoffline/jukeboxcustomdiscfix)
![GitHub License](https://img.shields.io/github/license/eclipseisoffline/jukeboxcustomdiscfix)

## Minecraft 1.21 notice

The bug report for the bug this mod fixes has been marked as resolved as of Minecraft 1.21.

This mod will continue to be updated and has a 1.21 version, however as of Minecraft 1.21 it is
strongly recommended to use the vanilla Minecraft way of adding custom discs, which is through datapacks.
Information about how to do so can be found [here](https://minecraft.wiki/w/Jukebox_song_definition).

If you still wish to listen to custom discs through just the use of a resource pack though, you will need this mod.
As of 1.21 this mod now fixes the bug client-side as well, meaning you can join every server with a custom disc resource pack, without the disc being cut off.

## README

This mod fixes bug [MC-260346](https://bugs.mojang.com/browse/MC-260346), which causes custom music
discs, when played in a jukebox, to be cut off when the vanilla disc would normally end.

The fix is implemented server-side by only telling the client to stop playing a disc sound when the disc item is removed
from the jukebox (either by a hopper or by a player clicking on the jukebox), whereas in vanilla
Minecraft the client is told to stop playing a disc sound as soon as the vanilla disc would end.

As of Minecraft 1.21 (mod version 0.1.4-1.21), this mod has a client-side fix as well. This is implemented
by ignoring all packets the server sends to the client that tell the client to stop playing a song,
and instead have the client only stop playing a song when the `has_record` block state for the jukebox
playing the song has been set to `false`.

When installed on servers, this mod does not have to be installed on clients connecting.

Feel free to report any bugs, at the issue tracker.

## License

This mod is licensed under GNU LGPLv3.

## Donating

If you like this mod, consider [donating](https://buymeacoffee.com/eclipseisoffline).

## Discord

For support and/or any questions you may have, feel free to join [my discord](https://discord.gg/CNNkyWRkqm).

## Version support

| Minecraft Version | Fabric | Quilt | NeoForge | Forge |
|-------------------|-------------------------------|-------------------------------|-------------------------------------|-------------------------------------|
| 1.21.5 | ✅ Current | ✔️ Use Fabric version | ❌ Unavailable | ❌ Unavailable |
| 1.21.4 | ✅ Current | ✔️ Use Fabric version | ❌ Unavailable | ❌ Unavailable |
| 1.21.2+3 | ✅ Current | ✔️ Use Fabric version | ❌ Unavailable | ❌ Unavailable |
| 1.21+1 | ✅ Current | ✔️ Use Fabric version | ❌ Unavailable | ❌ Unavailable |
| 1.20.5+6 | ✅ Current, no client side fix | ✅ Current, no client side fix | ✔️ Available, won't receive support | ❌ Unavailable |
| 1.20.4 | ✅ Current, no client side fix | ✅ Current, no client side fix | ✔️ Available, won't receive support | ❌ Unavailable |
| 1.20.2 | ✅ Current, no client side fix | ✔️ Use Fabric version | ❌ Unavailable | ❌ Unavailable |
| 1.20.1 | ✅ Current, no client side fix | ✔️ Use Fabric version | ✔️ Available, won't receive support | ✔️ Available, won't receive support |

I try to keep support up for the latest major and latest minor release of Minecraft. Updates to newer Minecraft
versions may be delayed from time to time, as I do not always have the time to immediately update my mods.

Unsupported mods are still available to download, but they won't receive new features or bugfixes.

Ports for modloaders other than Fabric are available for 1.20.x versions, but supporting other modloaders is quite a hassle and I decided
it wouldn't be worth the effort anymore for 1.21.x versions and above.

## Usage

Mod builds can be found on the releases page, as well as on [Modrinth](https://modrinth.com/mod/jukebox-custom-disc-fix).

The Fabric API is not required. This mod is not required on clients when playing multiplayer and the mod is installed server-side.