PLAYSOUND

PLAYSOUND(<sound>,[volume])

Type: Action

Category: World

Permission: N/A

Since Minecraft Version: v1.2.5

Since Version: v0.8.7

Minor: 8

API: N/A

Patch: 7


Description

Plays the specified sound.

If the <sound> starts with "custom." it looks inside an folder sounds inside the macros config folder.

[volume] has to be betweem 0 and 100

Example
PLAYSOUND("entity.creeper.primed")

// Has to be in .ogg format
PLAYSOUND("custom.sound")

Changelog
  • Added em v0.8.7:
  • Fixed em v0.14.4: Custom sounds not working
  • Fixed em v0.13.2: Can now play sounds with underscores
  • Updated em v0.9.8: Now accepts a second argument to specify the volume