- check_circle Functions
- check_circle Loot Tables
- 2,996 views, 4 today
- 148 downloads, 0 today
267
This datapack and resroucepack lets you easily add your own custom music discs to vanilla Minecraft! This API also includes a dynamic way to obtain the discs. The downloaded zip contains the API resources and data. It also contains an example pack that you are free to reference to create your own pack.
Click on the above image, select plan (at least 4GB), use code legopitstop to get 25% off your first month and enjoy playing with your friends!
Other packs that use this API, If you create a pack that uses this API feel free to drop a comment below.
The downloaded API zip contains an example datapack and resource pack. This example adds one custom disc.
The custom disc has a chance to drop (along with all vanilla discs) when a Skeleton shoot and kills a Creeper.
With cheats, you can run the below command to obtain the item.
You are free to distribute your custom pack under the following terms;
Note that this pack is licensed under Legopitstop's Common License v2 which prohibits the distribution of this API pack.
This datapack and resroucepack lets you easily add your own custom music discs to vanilla Minecraft! This API also includes a dynamic way to obtain the discs. The downloaded zip contains the API resources and data. It also contains an example pack that you are free to reference to create your own pack.
Click on the above image, select plan (at least 4GB), use code legopitstop to get 25% off your first month and enjoy playing with your friends!
Features
- Easily add an unlimited (6500 total) number of music discs! That's a lot!
- Lag friendly! This pack was built with server-side performance in mind so no worries about sacrificing performance.
- Doesn't replace any already existing discs!
- Download the Music Disc Creator [Coming Soon] app to create your own music disc pack using this API without having any coding knowledge! COMING SOON!
Dependent packs
Other packs that use this API, If you create a pack that uses this API feel free to drop a comment below.
- More Music Disc [Coming Soon]
Example Pack
The downloaded API zip contains an example datapack and resource pack. This example adds one custom disc.
Obtain
The custom disc has a chance to drop (along with all vanilla discs) when a Skeleton shoot and kills a Creeper.
With cheats, you can run the below command to obtain the item.
/function example:music_disc_5
Distributing
Your Pack
You are free to distribute your custom pack under the following terms;
- Your pack must not contain this API pack, your users must download the API from this page.
- If your pack contains copyrighted music Legopitstop is not responsible for any consequences for disturbing this music.
- You must add the following to your pack (submission description)
<username> is not affiliated with Legopitstop
This Pack
Note that this pack is licensed under Legopitstop's Common License v2 which prohibits the distribution of this API pack.
- If you plan on sharing your custom pack you must have your users download the API from this page!
Compatibility | Minecraft 1.18 |
to | Minecraft 1.19 |
Tags |
2 Update Logs
v1.2.0 : by legopitstop 08/21/2023 3:39:37 pmAug 21st, 2023
[1.2.0]
General
- - Updated for 1.20.2 (Snapshot 23w23a)
- - Added support for Music Disc Relic
- - Otherside and Pigstep will no longer drop from a creeper.
- - Updated API. Read the docs for more.
- - Vanilla sound should now be stopped.
Known Issues
The following can't be fixed due to them being hard-coded into the game. [Jukebox Duration NBT data](feedback.minecraft.net/hc/en-us/community/posts/18734778809741)- - Disc will keep displaying particles even when the track is over.
- - Disc will not eject into hopper even when the track is over.
LOAD MORE LOGS
tools/tracking
5391239
119
record-api-datapack
Create an account or sign in to comment.
- Sometimes the vanilla music isn't stopped when a custom music disc is played. There seems to be a strange race condition between minecraft vanilla tick that plays the vanilla music disc and the custom function that stops the sound. It seems sometimes the vanilla sound is called to be stopped, before the normal music disc sound is played by minecraft itself. I was unable to get this result consistently (which is why I think it might be race condition)
- When using the datapack on a multiplayer server and multiple people are playing a custom disc in different jukeboxes (at different locations, which can be arbitrarily far away) all jukebox sounds are stopped when one of the songs ends or the disc is removed. This could be fixed by having each marker on a jukebox be unique, but I am not sure how to do this.
Just wanted to let you know if you weren't aware :)
I removed my previous comment in favor of this rephrasing. The list is located here in the API datapack:
data/record/tags/functions/creeper.json
If you run this on a server, make sure command blocks are enabled in your server.properties file!
If you encounter an issue where music discs infinitely drop from when a creeper dies from a skeleton do the following:
In the record api datapack, add this line to main_tick (position doesnt matter):
kill @e[type=item,nbt={Item:{id:"minecraft:paper",tag:{DropCreeperDisc:1b}}}]
This will destroy the paper at which every tick all records are spawned.
Additionally, if you do not wish to have the music discs 5, otherside and pigstep added to the loot pool of creeper music drops do the following in the Record API datapack:
- Remove music_disc_5.mcfunction from data/record/functions/minecraft
- Remove music_disc_pigstep.mcfunction from data/record/functions/minecraft
- Remove music_disc_otherside.mcfunction from data/record/functions/minecraft
- Remove the lines "record:minecraft/music_disc_pigstep" and "record:minecraft/music_disc_otherside" from data/record/tags/functions/creeper.json
(this will likely mess with custom music discs made for these particular discs so avoid them to be safe, untested)
Tested and working for 1.19.4
Enjoy your music!
Here's an example of the JSONURL: https://raw.githubusercontent.com/legopitstop/Record_API/main/update.json
Read more via the README in the repo: https://github.com/legopitstop/Update_Checker#readme