BadZombie
New member
Hi all,
Just wondering if this is possible at all.
Ideally what I am trying to get is when a player opens a workbench a sound plays - maybe on a loop - although for now just a sound would be a good starting point.
The sound then stops playing when a player exits the workbench.
If the player opens the workbench again the sound starts over from the beginning.
I have tried it using the 'OpenSound' property in blocks.xml but I've found in testing the problem is if I quickly open and close the workbench lets says 10 times in 5 seconds the sound plays 10 times so it's an unpleasant cacophony of noise. Also, for example a 30 second sound plays in it's entirety even if the player exits the workbench after 10 seconds.
I'm just wondering if the request is possible or if there are any mods with similar functionality I could take a look at and adapt?
Cheers!
Just wondering if this is possible at all.
Ideally what I am trying to get is when a player opens a workbench a sound plays - maybe on a loop - although for now just a sound would be a good starting point.
The sound then stops playing when a player exits the workbench.
If the player opens the workbench again the sound starts over from the beginning.
I have tried it using the 'OpenSound' property in blocks.xml but I've found in testing the problem is if I quickly open and close the workbench lets says 10 times in 5 seconds the sound plays 10 times so it's an unpleasant cacophony of noise. Also, for example a 30 second sound plays in it's entirety even if the player exits the workbench after 10 seconds.
I'm just wondering if the request is possible or if there are any mods with similar functionality I could take a look at and adapt?
Cheers!