If you wish to use this project:
plasmo CommandPlay or stop audio via Denizen scripts.
plasmo [action:<action>] [path:<file_path>] [bytes:<base64_audio>] [location:<location>] [distance:<radius>] [entity:<entity>] [id:<uuid>] [source:<source_name>]
| Action | Description |
|---|---|
send |
Plays direct audio to the current player. |
stop |
Stops a previously played audio source. |
playonloc |
Plays audio at a world location. |
playonentity |
Plays audio attached to a specific entity. |
| Argument | Required? | Description |
|---|---|---|
action |
✅ Yes | One of send, stop, playonloc, playonentity. |
path |
❌ No | File path (relative to config default path). |
bytes |
❌ No | Base64-encoded audio. |
location |
✅ for playonloc |
World location. |
distance |
✅ for playonloc/playonentity |
Audible radius. |
entity |
✅ for playonentity |
Entity target. |
id |
✅ for stop |
Audio UUID to stop. |
source |
❌ No | Optional named source to reuse. |
# Play at a location
- plasmo action:playonloc path:sound.wav location:<player.location> distance:15
# Direct audio to player
- plasmo action:send path:voice_line.wav
# Stop audio
- plasmo action:stop id:<entry[audio_id]>
path and bytes are given, bytes takes priority.audio_id is available via <entry[audio_id].result>.source: allows reusing a named audio source.