Range
The range condition controls how far away from the source the mechanic can occur. This can be used by WeaponMechanics to control sound dropoff, so sounds further from the source sound further away.
Argument
Description
Default Value
min
The minimum distance (in blocks).
0
max
The maximum distance (in blocks).
None
This example plays the shoot.ak47 sound from the resource pack's sounds.json. The sound can be heard from the range [0, 40)
blocks. For players [40, 80)
blocks away, they hear the shoot.ak47far
sound instead. For players more than 80 blocks away, they hear the shoot.ak47veryfar
sound.
Last updated