Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-155130

Loot command doesn´t work on gametest

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.19.0.29 Preview, 1.19.0.28 Beta
    • None
    • Confirmed
    • Multiple
    • 868829

      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}

            Aletropy Aletropy
            Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: