Skip to content

Sound Event

wagyourtail edited this page Aug 10, 2020 · 3 revisions

1.1.2+

this event is fired whenever a sound is played.

This event passes some arguments to javascript which can be accessed by the ArrayList<String, Object> global called args. a list of these properties is:

  • sound: String sound id.
  • volume: 1.2.4+ float volume.
  • pitch: 1.2.4+ float pitch.
  • x: 1.2.4+ double x pos.
  • y: 1.2.4+ double y pos.
  • z: 1.2.4+ double z pos.