how to detect what sound a music disc makes?

Started by MelodyAutumn on Mon, 01/30/2023 - 06:06

Topic category: Help with modding (Java Edition)

Last seen on 11:58, 26. Mar 2023
Joined Apr 2022

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how to detect what sound a music disc makes?
Mon, 01/30/2023 - 06:06

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!