Mojira Archive
MC-148928

Return values from /data get when a scale is specified does not handle types correctly

When using 

/data get... ...[path] (scale)

where a scale is specified, does not return the correct number type.

Here, running the command 

/data get entity @e[type=minecraft:cow,limit=1] Motion[1]

will return the y motion value for the cow, which is stored as a double.

However, here, after running

/data get entity @e[type=minecraft:cow,limit=1] Motion[1] 1

with a return scale of 1 specified, the value returned is -1. I assume this is due to returning the result after the scale factor as an integer, the return value should match the type of the attribute fetched, (i.e this command should return -0.078400...d) 

Unresolved

ahiddenwaffle

2019-04-21, 01:43 AM

2020-09-07, 10:24 AM

4

2

Confirmed

(Unassigned)

Minecraft 1.14 Pre-Release 5, 20w13b

-