Mojira Archive
MCPE-155130

Loot command doesn´t work on gametest

Hello, im testing some things with the GameTest framework and i found this

 

If you try to use /loot command throught GameTest then return an error status code, look:

world.events.itemUse.subscribe(data => {
    const { item, source } = data;

    if(item.id !== "minecraft:stick") return;

    source.runCommand(`loot spawn ~ ~ ~ loot "entities/chicken"`); //=> Returning: [Scripting][error]-{"statusCode":-2147352576}});

 

Error: [Scripting][error]-{"statusCode":-2147352576}

Fixed

Aletropy

2022-04-30, 06:25 PM

2024-08-14, 02:13 AM

2024-08-14, 02:13 AM

3

0

Confirmed

868829

1.19.0.29 Preview, 1.19.0.28 Beta

-