Topic category: Help with Minecraft modding (Java Edition)
Sorry if the forum section is wrong, this is my first post
So I have made an entity and a small procedure that were going to be a trigger for the entity. I do not know anything about procedures or how you make them, but i tried.
So I want the trigger to play a sound randomly for everyone in the world, when the entity has spawned. I have made so the entity has a low spawn weight and it can only spawn 1 in the spawn groups, so it is only coming from one entity.
I want one sound to play when the entity has spawned, and 2 sounds to play just randomly anytime for anyone in the world, like the Cartoon Cat mod, where you can hear sounds even if the Cartoon Cat has not spawned.
When i have tried to do these procedures myself, it have ended up very bad. The sound repeats over and over again. I wanted it to say "i see you" but now it says "IIIIIIIIIIIIIIIIIIIIII" and just starts the sound all over again.
So in summary i want help making a trigger for sounds that plays randomly in the world, like Cartoon Cat, and one sound to play whent the entity has spawned.
Thanks for any help, im new to procedures!
NeoForge 1.21.4. Mcreator 2025.1
I was using the execute command/ block with the sound i wanted to play in the textholder.