Started by
softmushroombaby
on
Topic category: Help with Minecraft modding (Java Edition)
I want to make it so my entity says a random voice line when I right-click on it, but the randomizer I found online makes it so it plays all the voice lines at once? I could use some help, this has been driving me crazy for two hours straight and I need to go to bed
My guess is that you need to put the entire procedure in an if block with the condition [not[is provided world client-side]] That fixes a lot of bugs related to randomization.
IT DID NOT WORK, I FEAR... </3
Oh, then I don't know what to do.
Do you know any working randomizers?
See https://mcreator.net/wiki/developing-multiplayer-compatible-mods#toc-in…
This is how I do all my randoms and it works for me:
IF: (random 1 to 2) = (1)
DO: thing
ELSE IF: (1 to 2) = 1
DO: thing 2
ELSE IF: (1 to 2) = 1
DO: thing 3
ELSE: thing 4
I have no idea why yours is playing all at once but this one shouldn't. If it does then it's likely MCreator itself being its usual buggy mess and you may just have to delete and recreate the procedure, that tends to fix a lot of issues... sometimes...
???This somehow worked?? even though I've already tried it before??? god.. Im just happy to be out of that ceaseless cycle of madness... thank you so much for your help!