Minecraft Data Packs / Quality of Life

Hoppers work on Jukebox! (AutoTrack [1.19x])

  • check_circle Advancements
  • check_circle Functions
  • check_circle Predicates
  • 10,424 views, 4 today
  • 1,381 downloads, 0 today
  • 44
  • 38
  • 16
TheDiamondPlayables's Avatar TheDiamondPlayables
Level 82 : Elite Programmer
847
This datapack added something that Mojang made official as of 1.19.4.
You don't need to install this if you're playing on that version or higher!

Introducing: AutoTrack!


Features:

- Jukeboxes now work with Hoppers!
  • Hoppers pointing at a Jukebox can insert a Music Disc into it.
  • A hopper below the Jukebox takes the Music Disc out of it when it's stopped playing.
  • Default Jukebox behavior remains unchanged.
- Jukeboxes now emit note particles when playing music. (Bedrock/1.19.4 Parity)
- Works well with my other datapacks!
- Works in Multiplayer!

Notes:

- Once installed, whenever you place a Jukebox, there'll be a ding sound to confirm that AutoTrack works on this Jukebox.
  • If you don't hear this ding sound, break the Jukebox and try again.
  • If this still happens after many attempts: let me know on Discord, I'll see what I can do.

Special thanks to all my Patrons for supporting my work:
Hoppers work on Jukebox! (AutoTrack [1.19x]) Minecraft Data Pack

Download for older versions:

Do note that if you have problems running these older versions of the datapack, I won't be able to provide much support.
List of all available versions:
Available Version:
Download Link:
Minecraft 1.18x:
Note: Note particle feature doesn't exist yet!
1.18



TheDiamondDiscord:


Post your achievements, report bugs, send me suggestions, or chat with the community in our new Discord Server:
Join the Discord!

License Agreement:

By installing any datapack that I made, you agree to the terms set by this license:

Some Exceptions:
You can make a video using my datapack, which can be monetized.
However, you need to leave a PlanetMinecraft download link of the pack
in the description of your video.




Final words: I spent far too long editing this than I'd like to admit.
Support me on Patreon so I can make more stuff like this!
CompatibilityMinecraft 1.18
toMinecraft 1.19
Tags

1 Update Logs

The Final Update - Mission Completed. : by TheDiamondPlayables 02/26/2023 5:21:21 amFeb 26th, 2023

Sup lads! Here's the final update for AutoTrack!
I'm glad to see this finally be in the game, updating it is now Mojang's problem, not mine.
Anyways, here's the changelog for this final release, I hope you enjoyed it!

v19-1: The Final Update
- Now works on Minecraft 1.19.3, the final version before
Minecraft officially implemented this into vanilla.
- Added support for Music Disc "5".
- Added a function for v18 users to upgrade to v19's format.
+ To upgrade, run this command: "/function tdp.514:upgrade_v19"
+ Note that not upgrading means that there'll be unused trackers left in the world.
These won't do much anymore, but it's good to keep it clean and update them all.
- 1.19.4 parity: Jukeboxes now emit note particles while it's playing music.
- Jukeboxes no longer causes a block update once the music ends.
+ The feature was removed because it's not really necessary.
+ The purpose behind this mechanic - to detect when a music ends for redstone stuff,
can easily be done using other means added by this pack too, so it's not really necessary.
+ Plus, it's a parity change to match 1.19.4's upcoming behaviour.
- Hopper disc insertion now simulates more accurately when there are more hoppers feeding into the Jukebox.
+ This will rarely be used, I know, but it should still be accurate in case it does get used.
- Reworked the entire codebase, one last time.
+ I had to do it anyway, you'll know why if you've been following on Discord.
(Something to do with me hard drive)
- Code format now allows easy soundtrack timing modification.
+ I left the details for how to do this in the Notes at the end of this Update Log.
+ I know it won't be as useful when 1.19.4 gets rolled out,
but I promised this on one of the help threads on my Discord, so here it is.
- Removed the uninstallation feedback link for AutoTrack.

Note: As this is the (almost) exact method Mojang's using in their implementation
(I'm cooler cause I did it first haha), it's possible that when 1.19.4 comes,
there will be item duplication issues if you keep using AutoTrack.
To make sure this is not the case for you, I'd recommend uninstalling AutoTrack when 1.19.4
officially gets released - it's job will have been finished by then anyway.

How to run custom tracks with AutoTrack:
Note: This only supports Custom Tracks made by replacing vanilla tracks with custom ones.
- But regardless: All the custom music timers are set in the "play_music_disc_<disc>" function files.
- Once the file is opened, find this command: scoreboard players set :length: tdp.514.op <seconds*20>
+ If your song lasts for 213 seconds, multiply that by 20,
and set that as the edit the <seconds*20> to match that.
+ Also, everyone in your server must be using the resourcepack that modifies that sound
in order for it to sync up properly. If you want to know why, feel free to ask about it on my Discord.
- Why 213 seconds? You know the rules, and so do I ...

Final Notes:
- So yeah, this is it for AutoTrack.
+ One thing I regret not doing for other datapacks that have met its end like this in the past,
is that I never really gave it the proper sendoff it deserves.
+ So for this one I spent some extra time polishing the project, and also included some final lines in
the update log, as after this update, AutoTrack's mission is over, and there won't be any more updates.
- Now that it's all done though, I do have to say that I'll miss working on this.
+ The concept wasn't even mine to begin with, but I had a blast testing out all the cases needed to get
it working, all the while learning more about music disc sounds in the game and how it actually worked.
+ I'll also miss the sound it makes to let you know it'll be working.
Found it annoying that I had to implement that, but it kinda grew on me.
I'll probably find it weird not hearing that confirmation sound
when I place a Jukebox moving forward, but I'll get used to it again.
- So yeah, thank you all for using AutoTrack, and I'll see you in my next projects.

Create an account or sign in to comment.

1
09/07/2023 6:44 am
Level 5 : Apprentice Miner
Lentejas Con Marichuelas
Lentejas Con Marichuelas's Avatar
Friend, could you please update this datapack to 1.20 pls?
1
09/07/2023 6:46 am
Level 82 : Elite Programmer
TheDiamondPlayables
TheDiamondPlayables's Avatar
This is already a Minecraft feature after 1.19.4, hence it won't be updated any further.
1
09/07/2023 8:50 am
Level 5 : Apprentice Miner
Lentejas Con Marichuelas
Lentejas Con Marichuelas's Avatar
Well that's fine, thank you
1
05/10/2023 3:35 pm
Level 4 : Apprentice Explorer
TheScientifreakPlays
TheScientifreakPlays's Avatar
Hey dude, is is possible to make a version of this for 1.17.1?
1
02/26/2023 12:27 pm
Level 10 : Journeyman Waffle
6ProUp4
6ProUp4's Avatar
In case you didn't know, in 1.19.4 hoppers and dispensers will be able to insert discs in and take out music disks from jukeboxes, so this datapack is kinda useless...
2
02/26/2023 12:52 pmhistory
Level 82 : Elite Programmer
TheDiamondPlayables
TheDiamondPlayables's Avatar
You did read the description of this pack before writing this, right?
(This is the final update for this project because of that, just saying)
1
12/21/2022 8:40 am
Level 4 : Apprentice Miner
DebenTorba
DebenTorba's Avatar
Helllo! Is there any links for 1.16.5?
1
07/29/2022 7:11 am
Level 1 : New Miner
TerryTheCat
TerryTheCat's Avatar
Hey there! I am terrible at redstone and I was wondering how to make it actually loop, are there any tutorials out there that could help me? Thanks



- Terry
1
10/18/2022 9:47 pmhistory
Level 82 : Elite Programmer
TheDiamondPlayables
TheDiamondPlayables's Avatar
I prefer solving problems by myself (it's what I'm used to), so I'm just going to give you some little hints:
- Music Discs are taken out of hoppers when the music's done playing.
- You can add music discs from the top or sides with hoppers.
- You want the Music Disc that came from the bottom to go back up and feed into that Jukebox.
Alright, have fun problem-solving!
(Redstone is all about trying and messing around, and solving problems like this. Showing you hinders your own problem solving skills, which wouldn't be any fun if you're trying something bigger in the future.)
1
07/01/2022 11:45 pm
Level 1 : New Miner
Arziro
Arziro's Avatar
Will it be updated to 1.19? 🪐
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome