Topic category: Help with modding (Java Edition)
I am trying to make a procedure that will (when an entity is spawned) play a song on loop UNTIL the entity dies. I just put the procedure into "on entity initial spawn," so I don't need help with that, but when I tried my hand at making the rest, here is what I put: (trigger) play sound at xyz, repeat 100000 times: wait 1200 ticks: if: (not) is entity alive do: break out of loop else: play sound at xyz. And other than just ASSUMING I did something wrong, I also got the "your workspace contains mod elements that don't compile properly" error. Can anyone tell me how to make what I'm trying to do?