Mojira Archive
MC-130043

Unexpected error when giving '/data get' a negative index

The bug

When I use /data get with a path of an array with a negative index, it says An unexpected error occurred trying to execute that command. There isn't any further information in the logs.

How to reproduce

Type in that command for example:

/data get entity @s Inventory[-1]

Invalid

Maximilian Herczegh

2018-05-22, 12:44 AM

2018-10-24, 11:52 PM

2018-10-24, 11:52 PM

4

1

Confirmed

Minecraft 18w20c - Minecraft 1.13.1Minecraft 18w20c, Minecraft 1.13-pre3, Minecraft 1.13-pre5, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13-pre9, Minecraft 1.13-pre10, Minecraft 1.13, Minecraft 18w31a, Minecraft 1.13.1-pre1, Minecraft 1.13.1

-