Data Packs Game Mechanic

Custom Discs Maker

  • Advancements
  • Functions
  • Predicates
  • 12,725 views • 4 today
  • 1,226 downloads • 0 today
  • 26
  • 32
  • 8
KooriKitsune38
Level 47 : Master Artist
36

What it does

Allows players to add custom discs in Minecraft without overwriting current ones.

In case you wanted to rick roll people with a strange disc.



Customization
The download link will redirect you to the github repository, so you can easily just download the zip file and put it into your datapacks folder.


To add songs/sounds etc you just need to go to the file 'sort.ids' under 'Datapack/data/k.music/functions/' and add the three commented lines (tellraw, playsound and stopsound).
The sounds can be whatever you want, either minecraft sounds or resource packs sounds.
In case of the resource packs, the path should be under 'Resource Pack/assets/namespace/sounds/file.obb', and can be called via 'namespace:sound' (in the playsound and stopsound).

The disc should have these two tags {k.Disc:true,SongID:#}.
Quick Tip: to make the disc even more credible, add this {display:{Lore:['{"text":"Author - Song","color":"gray"}']},HideFlags:32}




(If you want to spice things up, you can add custom particles and whatever you want since there's a marker inside the jukebox when the disc is playing! But it disappears after the disc is out or the block is broken)

P.S. The only downside to this is that when you have two custom discs that are playing the same song and you stop one, both of them are gonna stop since there's no easy way (if not at all) to stop the same sound without altering the other. But it works excellently with two different sounds!


.



https://discord.gg/jTDVxgQr3n

CompatibilityMinecraft 1.17
toMinecraft 1.18
Tags

1 Update Logs

Update #1 : by KooriKitsune38 12/08/2021 4:42:57 pmDecember 8, 2021 @ 9:42 pm UTC

Fixed the old disc's actionbar text showing up.

Now you can add a custom one yourself!

  Have something to say?

anonpmc3750024
12/11/2021 7:49 pm
Level 18 : Journeyman Miner
[deleted]
1
KooriKitsune38
12/12/2021 5:04 am
Level 47 : Master Artist
That's actually bound to the resource pack's files format... fancy words aside it's only .ogg since minecraft recognises those as the audio format.

For custom sounds this doesn't add any, I might need to actually link a resource pack template to ease users into setting up the configuration.

Basically this by itself is kinda like a library, a premade code that lets you play a sound with a custom disc, so if you want other sounds except the minecraft sounds you will need the help of resource packs.
2
VidTDM
12/08/2021 9:48 pm
Level 37 : Artisan Geek
Now I can rickroll everyone hehe
3
bobjoerules
12/08/2021 4:13 pm
He/Him • Level 1 : New Miner
this github link is not right "https:\/\/github.com\/KooriKitsune38\/Koori-Discs"
1
bobjoerules
12/08/2021 4:14 pm
He/Him • Level 1 : New Miner
2
KooriKitsune38
12/08/2021 4:22 pm
Level 47 : Master Artist
To me it works just fine but thank you for fixing it in case someone else encountered that problem!
1
AetherSpirit
12/08/2021 3:48 pm
Level 41 : Master Loremaster Mage
Wow, this is realy cool!
2
KooriKitsune38
12/08/2021 4:04 pm
Level 47 : Master Artist
thank you fellow!
2

Welcome