Started by
Artistmonster24
on
Topic category: Help with Minecraft modding (Java Edition)
I made a post in the past about "how to sense if a jukebox is playing music" and learned that I would need to do some custom coding. The problem is, I don't know where to begin! I am trying to make it where on my mob's update tick, if it senses a jukebox playing music, it plays a custom animation. How would I do this with custom code? Thanks for your time.
The jukebox has an NBT tag called RecordItem.
RecordItem has mostly 2 sub-tags: id and Count.
You could check for these NBT tags.
I hope I could help you even a little bit :)