Calling playSound inside randomTickUpdateEvent doesn't play sound

Published by ahznb on Sat, 12/07/2019 - 01:58
Upvotes: 0
Issue description

Hi,

I'm trying to call playSound inside my custom block's randomTickUpdateEvent, like this:

screen cap of my proc

But the sound doesn't play at all. The line after it that sends chat will display the text though. Sounds play when called from other procs, such as in onBlockAdded, so is it because it was called inside a tick event?

Uploaded workspace. It contains just one simple mod element.

Attachment Size
Test mod25.91 KB 25.91 KB

Issue comments

Random tick update is client-side only trigger. Use tick update procedure trigger instead.



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.