how to detect what sound a music disc makes?

Started by MelodyAutumn on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to detect what sound a music disc makes?

heya again, so for my mod that i'm working on, i'm adding a new handheld jukebox that has a gui and i wanna know if there's a way to detect what sound is assigned to a music disc so that i don't have to manually add each disc to the procedure and compatibility for modded discs

i can prolly figure out how to do it in java if given some code but since i don't know the language it'd be hard, so a procedure-based solution would be ideal

my mod's in 1.19.2 and i'm using 2022.3.45616 (i still need to update it so sorry if i somehow missed a solution in the changelogs)

thank you!