sandstone
sandstone copied to clipboard
coordinates in `playsound` command arguments compile incorrectly
Javascript Code:
playsound('minecraft:entity.chicken.egg', 'neutral', '@p', ['~', '~', '~'], 0.5)
Compiled Output:
playsound minecraft:entity.chicken.egg neutral @p ~,~,~ 0.5
^error
which is actually incorrect, because playsound wants spaces and not commas for coordinates. note: version 1.18.2, though i don't know if this format actually changed at any point
declaring the position as a VectorClass
works, e.g.
playsound('minecraft:entity.chicken.egg', 'neutral', '@p', new VectorClass(['~','~','~']), 0.5)
however, i'm not sure if the behavior described in the OP is intended behavior