sandstone icon indicating copy to clipboard operation
sandstone copied to clipboard

coordinates in `playsound` command arguments compile incorrectly

Open huckleton opened this issue 2 years ago • 1 comments

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

playsound

huckleton avatar Apr 10 '22 21:04 huckleton

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

huckleton avatar Apr 12 '22 00:04 huckleton